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