[7d1f411c] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY yasm-download-http "http://www.tortall.net/projects/yasm/releases/yasm-&yasm-version;.tar.gz">
|
---|
| 8 | <!ENTITY yasm-download-ftp " ">
|
---|
[7be3636] | 9 | <!ENTITY yasm-md5sum "fc9e586751ff789b34b1f21d572d96af">
|
---|
| 10 | <!ENTITY yasm-size "1.5 MB">
|
---|
| 11 | <!ENTITY yasm-buildsize "27 MB (additional 12 MB for the tests)">
|
---|
| 12 | <!ENTITY yasm-time "0.1 SBU (additional 0.1 SBU for the tests)">
|
---|
[7d1f411c] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="yasm" xreflabel="yasm-&yasm-version;">
|
---|
| 16 | <?dbhtml filename="yasm.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
[4949485e] | 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
[7d1f411c] | 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>yasm-&yasm-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="yasm">
|
---|
| 26 | <primary sortas="a-yasm">yasm</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to yasm</title>
|
---|
| 31 |
|
---|
| 32 | <para><application>Yasm</application> is a complete rewrite of the
|
---|
[efdd9de] | 33 | <xref linkend="nasm"/> assembler. It supports the x86 and AMD64 instruction
|
---|
[7d1f411c] | 34 | sets, accepts NASM and GAS assembler syntaxes and outputs binary, ELF32 and
|
---|
| 35 | ELF64 object formats.</para>
|
---|
| 36 |
|
---|
[383a1cd0] | 37 | &lfs79_checked;
|
---|
[7d1f411c] | 38 |
|
---|
| 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 40 | <itemizedlist spacing="compact">
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>Download (HTTP): <ulink url="&yasm-download-http;"/></para>
|
---|
| 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download (FTP): <ulink url="&yasm-download-ftp;"/></para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download MD5 sum: &yasm-md5sum;</para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Download size: &yasm-size;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Estimated disk space required: &yasm-buildsize;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>Estimated build time: &yasm-time;</para>
|
---|
| 58 | </listitem>
|
---|
| 59 | </itemizedlist>
|
---|
| 60 |
|
---|
[fa3b9b3] | 61 | <bridgehead renderas="sect3">yasm Dependencies</bridgehead>
|
---|
| 62 |
|
---|
| 63 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 64 | <para role="optional">
|
---|
| 65 | <xref linkend="python2"/> or <xref linkend="python3"/>, and
|
---|
| 66 | <ulink url="http://cython.org/">Cython</ulink>
|
---|
| 67 | </para>
|
---|
| 68 |
|
---|
[7d1f411c] | 69 | <para condition="html" role="usernotes">User Notes:
|
---|
| 70 | <ulink url="&blfs-wiki;/yasm"/></para>
|
---|
| 71 |
|
---|
| 72 | </sect2>
|
---|
| 73 |
|
---|
| 74 | <sect2 role="installation">
|
---|
| 75 | <title>Installation of yasm</title>
|
---|
| 76 |
|
---|
| 77 | <para>Install <application>yasm</application> by running the following
|
---|
| 78 | commands:</para>
|
---|
| 79 |
|
---|
| 80 | <screen><userinput>sed -i 's#) ytasm.*#)#' Makefile.in &&
|
---|
[ac38e9dc] | 81 |
|
---|
[7d1f411c] | 82 | ./configure --prefix=/usr &&
|
---|
| 83 | make</userinput></screen>
|
---|
| 84 |
|
---|
| 85 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
| 86 |
|
---|
| 87 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 88 |
|
---|
| 89 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 90 |
|
---|
| 91 | </sect2>
|
---|
| 92 |
|
---|
| 93 | <sect2 role="commands">
|
---|
| 94 | <title>Command Explanations</title>
|
---|
| 95 |
|
---|
| 96 | <para><command>sed -i 's#) ytasm.*#)#' Makefile.in</command>: This sed
|
---|
| 97 | prevents it compiling 2 programs (vsyasm and ytasm) that are only of use
|
---|
| 98 | on Microsoft Windows.</para>
|
---|
| 99 |
|
---|
| 100 | </sect2>
|
---|
| 101 |
|
---|
| 102 | <sect2 role="content">
|
---|
| 103 | <title>Contents</title>
|
---|
| 104 |
|
---|
| 105 | <segmentedlist>
|
---|
| 106 | <segtitle>Installed Program</segtitle>
|
---|
| 107 | <segtitle>Installed Library</segtitle>
|
---|
| 108 | <segtitle>Installed Directory</segtitle>
|
---|
| 109 |
|
---|
| 110 | <seglistitem>
|
---|
| 111 | <seg>yasm</seg>
|
---|
| 112 | <seg>libyasm.a</seg>
|
---|
| 113 | <seg>/usr/include/libyasm</seg>
|
---|
| 114 | </seglistitem>
|
---|
| 115 | </segmentedlist>
|
---|
| 116 |
|
---|
| 117 | <variablelist>
|
---|
| 118 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 119 | <?dbfo list-presentation="list"?>
|
---|
| 120 | <?dbhtml list-presentation="table"?>
|
---|
| 121 |
|
---|
| 122 | <varlistentry id="yasm-prog">
|
---|
| 123 | <term><command>yasm</command></term>
|
---|
| 124 | <listitem>
|
---|
| 125 | <para>is a portable, retargetable assembler that supports the x86 and
|
---|
| 126 | AMD64 instruction sets, accepts NASM and GAS assembler syntaxes and
|
---|
| 127 | outputs binaries in ELF32 and ELF64 object formats.</para>
|
---|
| 128 | <indexterm zone="yasm yasm">
|
---|
| 129 | <primary sortas="b-yasm">yasm</primary>
|
---|
| 130 | </indexterm>
|
---|
| 131 | </listitem>
|
---|
| 132 | </varlistentry>
|
---|
| 133 |
|
---|
| 134 | <varlistentry id="libyasm">
|
---|
| 135 | <term><filename class='libraryfile'>libyasm.a</filename></term>
|
---|
| 136 | <listitem>
|
---|
| 137 | <para>provides all of the core functionality of
|
---|
| 138 | <command>yasm</command>, for manipulating machine instructions and
|
---|
| 139 | object file constructs.</para>
|
---|
| 140 | <indexterm zone="yasm libyasm">
|
---|
| 141 | <primary sortas="c-libyasm">libyasm.a</primary>
|
---|
| 142 | </indexterm>
|
---|
| 143 | </listitem>
|
---|
| 144 | </varlistentry>
|
---|
| 145 |
|
---|
| 146 | </variablelist>
|
---|
| 147 |
|
---|
| 148 | </sect2>
|
---|
| 149 |
|
---|
| 150 | </sect1>
|
---|