[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 |
|
---|
[c6b192c] | 7 | <!ENTITY yasm-download-http "https://www.tortall.net/projects/yasm/releases/yasm-&yasm-version;.tar.gz">
|
---|
[7d1f411c] | 8 | <!ENTITY yasm-download-ftp " ">
|
---|
[42d6d3b] | 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 | <date>$Date$</date>
|
---|
[7d1f411c] | 20 | </sect1info>
|
---|
| 21 |
|
---|
| 22 | <title>yasm-&yasm-version;</title>
|
---|
| 23 |
|
---|
| 24 | <indexterm zone="yasm">
|
---|
| 25 | <primary sortas="a-yasm">yasm</primary>
|
---|
| 26 | </indexterm>
|
---|
| 27 |
|
---|
| 28 | <sect2 role="package">
|
---|
| 29 | <title>Introduction to yasm</title>
|
---|
| 30 |
|
---|
[de33b2a] | 31 | <para>
|
---|
| 32 | <application>Yasm</application> is a complete rewrite of the
|
---|
| 33 | <xref linkend="nasm"/> assembler. It supports the x86 and AMD64
|
---|
| 34 | instruction sets, accepts NASM and GAS assembler syntaxes and outputs
|
---|
| 35 | binary, ELF32 and ELF64 object formats.
|
---|
| 36 | </para>
|
---|
[7d1f411c] | 37 |
|
---|
[c2f9a33] | 38 | &lfs111_checked;
|
---|
[7d1f411c] | 39 |
|
---|
| 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
[de33b2a] | 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&yasm-download-http;"/>
|
---|
| 45 | </para>
|
---|
[7d1f411c] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[de33b2a] | 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&yasm-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
[7d1f411c] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[de33b2a] | 53 | <para>
|
---|
| 54 | Download MD5 sum: &yasm-md5sum;
|
---|
| 55 | </para>
|
---|
[7d1f411c] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[de33b2a] | 58 | <para>
|
---|
| 59 | Download size: &yasm-size;
|
---|
| 60 | </para>
|
---|
[7d1f411c] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[de33b2a] | 63 | <para>
|
---|
| 64 | Estimated disk space required: &yasm-buildsize;
|
---|
| 65 | </para>
|
---|
[7d1f411c] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[de33b2a] | 68 | <para>
|
---|
| 69 | Estimated build time: &yasm-time;
|
---|
| 70 | </para>
|
---|
[7d1f411c] | 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
[fa3b9b3] | 74 | <bridgehead renderas="sect3">yasm Dependencies</bridgehead>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 77 | <para role="optional">
|
---|
[60ddbaf] | 78 | <xref linkend="python2"/> and
|
---|
[fa3b9b3] | 79 | <ulink url="http://cython.org/">Cython</ulink>
|
---|
| 80 | </para>
|
---|
| 81 |
|
---|
[7d1f411c] | 82 | <para condition="html" role="usernotes">User Notes:
|
---|
| 83 | <ulink url="&blfs-wiki;/yasm"/></para>
|
---|
| 84 |
|
---|
| 85 | </sect2>
|
---|
| 86 |
|
---|
| 87 | <sect2 role="installation">
|
---|
| 88 | <title>Installation of yasm</title>
|
---|
| 89 |
|
---|
[de33b2a] | 90 | <para>
|
---|
| 91 | Install <application>yasm</application> by running the following
|
---|
| 92 | commands:
|
---|
| 93 | </para>
|
---|
[7d1f411c] | 94 |
|
---|
| 95 | <screen><userinput>sed -i 's#) ytasm.*#)#' Makefile.in &&
|
---|
[39187f1e] | 96 |
|
---|
[7d1f411c] | 97 | ./configure --prefix=/usr &&
|
---|
| 98 | make</userinput></screen>
|
---|
| 99 |
|
---|
[de33b2a] | 100 | <para>
|
---|
| 101 | To test the results, issue: <command>make check</command>.
|
---|
| 102 | </para>
|
---|
[7d1f411c] | 103 |
|
---|
[de33b2a] | 104 | <para>
|
---|
| 105 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 106 | </para>
|
---|
[7d1f411c] | 107 |
|
---|
| 108 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 109 |
|
---|
| 110 | </sect2>
|
---|
| 111 |
|
---|
| 112 | <sect2 role="commands">
|
---|
| 113 | <title>Command Explanations</title>
|
---|
| 114 |
|
---|
[de33b2a] | 115 | <para>
|
---|
| 116 | <command>sed -i 's#) ytasm.*#)#' Makefile.in</command>: This sed
|
---|
| 117 | prevents it compiling 2 programs (vsyasm and ytasm) that are only of use
|
---|
| 118 | on Microsoft Windows.
|
---|
| 119 | </para>
|
---|
[7d1f411c] | 120 |
|
---|
| 121 | </sect2>
|
---|
| 122 |
|
---|
| 123 | <sect2 role="content">
|
---|
| 124 | <title>Contents</title>
|
---|
| 125 |
|
---|
| 126 | <segmentedlist>
|
---|
| 127 | <segtitle>Installed Program</segtitle>
|
---|
| 128 | <segtitle>Installed Library</segtitle>
|
---|
| 129 | <segtitle>Installed Directory</segtitle>
|
---|
| 130 |
|
---|
| 131 | <seglistitem>
|
---|
| 132 | <seg>yasm</seg>
|
---|
| 133 | <seg>libyasm.a</seg>
|
---|
| 134 | <seg>/usr/include/libyasm</seg>
|
---|
| 135 | </seglistitem>
|
---|
| 136 | </segmentedlist>
|
---|
| 137 |
|
---|
| 138 | <variablelist>
|
---|
| 139 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 140 | <?dbfo list-presentation="list"?>
|
---|
| 141 | <?dbhtml list-presentation="table"?>
|
---|
| 142 |
|
---|
| 143 | <varlistentry id="yasm-prog">
|
---|
| 144 | <term><command>yasm</command></term>
|
---|
| 145 | <listitem>
|
---|
[de33b2a] | 146 | <para>
|
---|
| 147 | is a portable, retargetable assembler that supports the x86 and
|
---|
| 148 | AMD64 instruction sets, accepts NASM and GAS assembler syntaxes and
|
---|
[4c24eb0a] | 149 | outputs binaries in ELF32 and ELF64 object formats
|
---|
[de33b2a] | 150 | </para>
|
---|
[7d1f411c] | 151 | <indexterm zone="yasm yasm">
|
---|
| 152 | <primary sortas="b-yasm">yasm</primary>
|
---|
| 153 | </indexterm>
|
---|
| 154 | </listitem>
|
---|
| 155 | </varlistentry>
|
---|
| 156 |
|
---|
| 157 | <varlistentry id="libyasm">
|
---|
[4c24eb0a] | 158 | <term><filename class="libraryfile">libyasm.a</filename></term>
|
---|
[7d1f411c] | 159 | <listitem>
|
---|
[de33b2a] | 160 | <para>
|
---|
| 161 | provides all of the core functionality of <command>yasm</command>,
|
---|
[4c24eb0a] | 162 | for manipulating machine instructions and object file constructs
|
---|
[de33b2a] | 163 | </para>
|
---|
[7d1f411c] | 164 | <indexterm zone="yasm libyasm">
|
---|
| 165 | <primary sortas="c-libyasm">libyasm.a</primary>
|
---|
| 166 | </indexterm>
|
---|
| 167 | </listitem>
|
---|
| 168 | </varlistentry>
|
---|
| 169 |
|
---|
| 170 | </variablelist>
|
---|
| 171 |
|
---|
| 172 | </sect2>
|
---|
| 173 |
|
---|
| 174 | </sect1>
|
---|