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 nasm-download-http "https://www.nasm.us/pub/nasm/releasebuilds/&nasm-version;/nasm-&nasm-version;.tar.xz">
|
---|
8 | <!ENTITY nasm-download-ftp " ">
|
---|
9 | <!ENTITY nasm-md5sum "1c9802446d7341c41c21eb98c7859064">
|
---|
10 | <!ENTITY nasm-size "976 KB">
|
---|
11 | <!ENTITY nasm-buildsize "40 MB" >
|
---|
12 | <!ENTITY nasm-time "0.2 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="nasm" xreflabel="NASM-&nasm-version;">
|
---|
16 | <?dbhtml filename="nasm.html" ?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <date>$Date$</date>
|
---|
20 | </sect1info>
|
---|
21 |
|
---|
22 | <title>NASM-&nasm-version;</title>
|
---|
23 |
|
---|
24 | <indexterm zone="nasm">
|
---|
25 | <primary sortas="a-NASM">NASM</primary>
|
---|
26 | </indexterm>
|
---|
27 |
|
---|
28 | <sect2 role="package">
|
---|
29 | <title>Introduction to NASM</title>
|
---|
30 |
|
---|
31 | <para>
|
---|
32 | <application>NASM</application> (Netwide Assembler) is an 80x86
|
---|
33 | assembler designed for portability and modularity. It includes a
|
---|
34 | disassembler as well.
|
---|
35 | </para>
|
---|
36 |
|
---|
37 | &lfs111_checked;
|
---|
38 |
|
---|
39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
40 | <itemizedlist spacing="compact">
|
---|
41 | <listitem>
|
---|
42 | <para>
|
---|
43 | Download (HTTP): <ulink url="&nasm-download-http;"/>
|
---|
44 | </para>
|
---|
45 | </listitem>
|
---|
46 | <listitem>
|
---|
47 | <para>
|
---|
48 | Download (FTP): <ulink url="&nasm-download-ftp;"/>
|
---|
49 | </para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>
|
---|
53 | Download MD5 sum: &nasm-md5sum;
|
---|
54 | </para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>
|
---|
58 | Download size: &nasm-size;
|
---|
59 | </para>
|
---|
60 | </listitem>
|
---|
61 | <listitem>
|
---|
62 | <para>
|
---|
63 | Estimated disk space required: &nasm-buildsize;
|
---|
64 | </para>
|
---|
65 | </listitem>
|
---|
66 | <listitem>
|
---|
67 | <para>
|
---|
68 | Estimated build time: &nasm-time;
|
---|
69 | </para>
|
---|
70 | </listitem>
|
---|
71 | </itemizedlist>
|
---|
72 |
|
---|
73 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
74 | <itemizedlist spacing="compact">
|
---|
75 | <listitem>
|
---|
76 | <para>
|
---|
77 | Optional documentation: <ulink
|
---|
78 | url="https://www.nasm.us/pub/nasm/releasebuilds/&nasm-version;/nasm-&nasm-version;-xdoc.tar.xz"/>
|
---|
79 | </para>
|
---|
80 | </listitem>
|
---|
81 | </itemizedlist>
|
---|
82 |
|
---|
83 | <bridgehead renderas="sect3">NASM Dependencies</bridgehead>
|
---|
84 |
|
---|
85 | <bridgehead renderas="sect4">Optional (for generating documentation):</bridgehead>
|
---|
86 | <para role="optional">
|
---|
87 | <xref linkend="asciidoc"/> and
|
---|
88 | <xref linkend="xmlto"/>
|
---|
89 | </para>
|
---|
90 |
|
---|
91 | <para condition="html" role="usernotes">User Notes:
|
---|
92 | <ulink url="&blfs-wiki;/nasm"/></para>
|
---|
93 |
|
---|
94 | </sect2>
|
---|
95 |
|
---|
96 | <sect2 role="installation">
|
---|
97 | <title>Installation of NASM</title>
|
---|
98 |
|
---|
99 | <para>
|
---|
100 | If you downloaded the optional documentation, put it into the
|
---|
101 | source tree:
|
---|
102 | </para>
|
---|
103 |
|
---|
104 | <screen><userinput>tar -xf ../nasm-&nasm-version;-xdoc.tar.xz --strip-components=1</userinput></screen>
|
---|
105 |
|
---|
106 | <para>
|
---|
107 | Install <application>NASM</application> by running
|
---|
108 | the following commands:
|
---|
109 | </para>
|
---|
110 |
|
---|
111 | <screen><userinput>./configure --prefix=/usr &&
|
---|
112 | make</userinput></screen>
|
---|
113 |
|
---|
114 | <para>
|
---|
115 | This package does not come with a test suite.
|
---|
116 | </para>
|
---|
117 |
|
---|
118 | <para>
|
---|
119 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
120 | </para>
|
---|
121 |
|
---|
122 | <!-- dev note: make INSTALLROOT=<DESTDIR> install -->
|
---|
123 |
|
---|
124 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
125 |
|
---|
126 | <para>
|
---|
127 | If you downloaded the optional documentation, install it with the
|
---|
128 | following instructions as the <systemitem
|
---|
129 | class="username">root</systemitem> user:
|
---|
130 | </para>
|
---|
131 |
|
---|
132 | <screen role="root"><userinput>install -m755 -d /usr/share/doc/nasm-&nasm-version;/html &&
|
---|
133 | cp -v doc/html/*.html /usr/share/doc/nasm-&nasm-version;/html &&
|
---|
134 | cp -v doc/*.{txt,ps,pdf} /usr/share/doc/nasm-&nasm-version;</userinput></screen>
|
---|
135 |
|
---|
136 | </sect2>
|
---|
137 |
|
---|
138 | <sect2 role="content">
|
---|
139 | <title>Contents</title>
|
---|
140 |
|
---|
141 | <segmentedlist>
|
---|
142 | <segtitle>Installed Programs</segtitle>
|
---|
143 | <segtitle>Installed Libraries</segtitle>
|
---|
144 | <segtitle>Installed Directory</segtitle>
|
---|
145 |
|
---|
146 | <seglistitem>
|
---|
147 | <seg>nasm and ndisasm</seg>
|
---|
148 | <seg>None</seg>
|
---|
149 | <seg>/usr/share/doc/nasm-&nasm-version;</seg>
|
---|
150 | </seglistitem>
|
---|
151 | </segmentedlist>
|
---|
152 |
|
---|
153 | <variablelist>
|
---|
154 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
155 | <?dbfo list-presentation="list"?>
|
---|
156 | <?dbhtml list-presentation="table"?>
|
---|
157 |
|
---|
158 | <varlistentry id="nasm-prog">
|
---|
159 | <term><command>nasm</command></term>
|
---|
160 | <listitem>
|
---|
161 | <para>
|
---|
162 | is a portable 80x86 assembler
|
---|
163 | </para>
|
---|
164 | <indexterm zone="nasm nasm-prog">
|
---|
165 | <primary sortas="b-nasm">nasm</primary>
|
---|
166 | </indexterm>
|
---|
167 | </listitem>
|
---|
168 | </varlistentry>
|
---|
169 |
|
---|
170 | <varlistentry id="ndisasm">
|
---|
171 | <term><command>ndisasm</command></term>
|
---|
172 | <listitem>
|
---|
173 | <para>
|
---|
174 | is an 80x86 binary file disassembler
|
---|
175 | </para>
|
---|
176 | <indexterm zone="nasm ndisasm">
|
---|
177 | <primary sortas="b-ndisasm">ndisasm</primary>
|
---|
178 | </indexterm>
|
---|
179 | </listitem>
|
---|
180 | </varlistentry>
|
---|
181 |
|
---|
182 | </variablelist>
|
---|
183 |
|
---|
184 | </sect2>
|
---|
185 |
|
---|
186 | </sect1>
|
---|