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