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 " ">
|
---|
9 | <!ENTITY yasm-md5sum "4cfc0686cf5350dd1305c4d905eb55a6">
|
---|
10 | <!ENTITY yasm-size "1.4 MB">
|
---|
11 | <!ENTITY yasm-buildsize "41 MB">
|
---|
12 | <!ENTITY yasm-time "0.2 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="yasm" xreflabel="yasm-&yasm-version;">
|
---|
16 | <?dbhtml filename="yasm.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
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
|
---|
33 | <xref linkend="nasm"/> assembler. It supports the x86 and AMD64 instruction
|
---|
34 | sets, accepts NASM and GAS assembler syntaxes and outputs binary, ELF32 and
|
---|
35 | ELF64 object formats.</para>
|
---|
36 |
|
---|
37 | &lfs75_checked;
|
---|
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 |
|
---|
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 |
|
---|
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 &&
|
---|
81 | ./configure --prefix=/usr &&
|
---|
82 | make</userinput></screen>
|
---|
83 |
|
---|
84 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
85 |
|
---|
86 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
87 |
|
---|
88 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
89 |
|
---|
90 | </sect2>
|
---|
91 |
|
---|
92 | <sect2 role="commands">
|
---|
93 | <title>Command Explanations</title>
|
---|
94 |
|
---|
95 | <para><command>sed -i 's#) ytasm.*#)#' Makefile.in</command>: This sed
|
---|
96 | prevents it compiling 2 programs (vsyasm and ytasm) that are only of use
|
---|
97 | on Microsoft Windows.</para>
|
---|
98 |
|
---|
99 | </sect2>
|
---|
100 |
|
---|
101 | <sect2 role="content">
|
---|
102 | <title>Contents</title>
|
---|
103 |
|
---|
104 | <segmentedlist>
|
---|
105 | <segtitle>Installed Program</segtitle>
|
---|
106 | <segtitle>Installed Library</segtitle>
|
---|
107 | <segtitle>Installed Directory</segtitle>
|
---|
108 |
|
---|
109 | <seglistitem>
|
---|
110 | <seg>yasm</seg>
|
---|
111 | <seg>libyasm.a</seg>
|
---|
112 | <seg>/usr/include/libyasm</seg>
|
---|
113 | </seglistitem>
|
---|
114 | </segmentedlist>
|
---|
115 |
|
---|
116 | <variablelist>
|
---|
117 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
118 | <?dbfo list-presentation="list"?>
|
---|
119 | <?dbhtml list-presentation="table"?>
|
---|
120 |
|
---|
121 | <varlistentry id="yasm-prog">
|
---|
122 | <term><command>yasm</command></term>
|
---|
123 | <listitem>
|
---|
124 | <para>is a portable, retargetable assembler that supports the x86 and
|
---|
125 | AMD64 instruction sets, accepts NASM and GAS assembler syntaxes and
|
---|
126 | outputs binaries in ELF32 and ELF64 object formats.</para>
|
---|
127 | <indexterm zone="yasm yasm">
|
---|
128 | <primary sortas="b-yasm">yasm</primary>
|
---|
129 | </indexterm>
|
---|
130 | </listitem>
|
---|
131 | </varlistentry>
|
---|
132 |
|
---|
133 | <varlistentry id="libyasm">
|
---|
134 | <term><filename class='libraryfile'>libyasm.a</filename></term>
|
---|
135 | <listitem>
|
---|
136 | <para>provides all of the core functionality of
|
---|
137 | <command>yasm</command>, for manipulating machine instructions and
|
---|
138 | object file constructs.</para>
|
---|
139 | <indexterm zone="yasm libyasm">
|
---|
140 | <primary sortas="c-libyasm">libyasm.a</primary>
|
---|
141 | </indexterm>
|
---|
142 | </listitem>
|
---|
143 | </varlistentry>
|
---|
144 |
|
---|
145 | </variablelist>
|
---|
146 |
|
---|
147 | </sect2>
|
---|
148 |
|
---|
149 | </sect1>
|
---|