glfs/general/prog/nasm.xml

245 lines
8.1 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY NASM-download-http "http://www.nasm.us/pub/nasm/releasebuilds/&NASM-version;/nasm-&NASM-version;.tar.bz2">
<!ENTITY NASM-download-ftp " ">
<!ENTITY NASM-md5sum "c11f083a501adae843d0bc3e7c106c73">
<!ENTITY NASM-size "801 KB">
<!ENTITY NASM-buildsize "25 MB (includes building and installing all docs)">
<!ENTITY NASM-time "0.4 SBU">
]>
<sect1 id="NASM" xreflabel="NASM-&NASM-version;">
<?dbhtml filename="NASM.html" ?>
<sect1info>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
</sect1info>
<title>NASM-&NASM-version;</title>
<indexterm zone="NASM">
<primary sortas="a-NASM">NASM</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to NASM</title>
<para><application>NASM</application> (Netwide Assembler)
is an 80x86 assembler designed for portability and modularity. It includes a
disassembler as well.</para>
&lfs67_built;
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>Download (HTTP): <ulink url="&NASM-download-http;"/></para>
</listitem>
<listitem>
<para>Download (FTP): <ulink url="&NASM-download-ftp;"/></para>
</listitem>
<listitem>
<para>Download MD5 sum: &NASM-md5sum;</para>
</listitem>
<listitem>
<para>Download size: &NASM-size;</para>
</listitem>
<listitem>
<para>Estimated disk space required: &NASM-buildsize;</para>
</listitem>
<listitem>
<para>Estimated build time: &NASM-time;</para>
</listitem>
</itemizedlist>
<!--
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>Required patch to fix a buffer overrun vulnerability: <ulink
url="&patch-root;/nasm-&NASM-version;-security_fix-1.patch"/></para>
</listitem>
</itemizedlist>
-->
<bridgehead renderas="sect3">NASM Dependencies</bridgehead>
<bridgehead renderas="sect4">Optional (for Building Documentation)</bridgehead>
<para role="optional"><xref linkend="tetex"/> or
<xref linkend="texlive"/>, and
<!-- <xref linkend="espgs"/> or --><xref linkend="gs"/></para>
<para condition="html" role="usernotes">User Notes:
<ulink url="&blfs-wiki;/nasm"/></para>
</sect2>
<sect2 role="installation">
<title>Installation of NASM</title>
<para>Install <application>NASM</application> by running
the following commands:</para>
<screen><userinput>./configure --prefix=/usr &amp;&amp;
make &amp;&amp;
make -C rdoff/doc &amp;&amp;
make -C rdoff/doc html &amp;&amp;
makeinfo --html --no-split -o rdoff/doc/rdoff.html \
rdoff/doc/rdoff.texi &amp;&amp;
makeinfo --plaintext -o rdoff/doc/rdoff.txt \
rdoff/doc/rdoff.texi</userinput></screen>
<para>To build the base <application>NASM</application>
documentation, ensure you have <xref linkend="gs"/> installed and
issue:</para>
<screen><userinput>make doc</userinput></screen>
<para>To build the RDOFF PDF and Postscript documentation,
ensure you have <xref linkend="tetex"/> or <xref linkend="texlive"/>
installed and issue:</para>
<screen><userinput>sed -i -e "s/dvips \$&lt;/&amp; -o rdoff.ps/" rdoff/doc/Makefile &amp;&amp;
make -C rdoff/doc pdf &amp;&amp;
make -C rdoff/doc ps</userinput></screen>
<para>This package does not come with a test suite.</para>
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
<screen role="root"><userinput>make install install_rdf &amp;&amp;
install -v -m755 -d /usr/share/doc/nasm-&NASM-version;/html &amp;&amp;
install -v -m644 rdoff/doc/rdoff/* \
/usr/share/doc/nasm-&NASM-version;/html &amp;&amp;
install -v -m644 rdoff/doc/{*.txt,rdoff.html} \
/usr/share/doc/nasm-&NASM-version; &amp;&amp;
install -v -m644 rdoff/doc/rdoff.info* \
/usr/share/info &amp;&amp;
pushd /usr/share/info &amp;&amp;
rm -fv dir &amp;&amp;
for FILENAME in *; do install-info $FILENAME dir; done &amp;&amp;
unset FILENAME &amp;&amp;
popd</userinput></screen>
<para>If you built the <application>Ghostscript</application> generated
documentation, install it using the following commands as the
<systemitem class="username">root</systemitem> user:</para>
<screen role="root"><userinput>sed -i 's|doc/nasm|share/doc/nasm-&NASM-version;|' doc/Makefile &amp;&amp;
make install_doc &amp;&amp;
pushd /usr/share/info &amp;&amp;
rm -fv dir &amp;&amp;
for FILENAME in *; do install-info $FILENAME dir; done &amp;&amp;
unset FILENAME &amp;&amp;
popd</userinput></screen>
<para>Lastly, if you built the RDOFF PDF and Postscript documentation,
install it using the following command as the
<systemitem class="username">root</systemitem> user:</para>
<screen role="root"><userinput>install -v -m644 rdoff/doc/rdoff.p{df,s} \
/usr/share/doc/nasm-&NASM-version;</userinput></screen>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>nasm, ndisasm, ldrdf, rdf2bin, rdf2com, rdf2ihx, rdf2ith, rdf2srec,
rdfdump, rdflib, and rdx</seg>
<seg>None</seg>
<seg>/usr/share/doc/nasm-&NASM-version;</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="nasm-prog">
<term><command>nasm</command></term>
<listitem>
<para>is a portable 80x86 assembler.</para>
<indexterm zone="NASM nasm-prog">
<primary sortas="b-nasm">nasm</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="ndisasm">
<term><command>ndisasm</command></term>
<listitem>
<para>is an 80x86 binary file disassembler.</para>
<indexterm zone="NASM ndisasm">
<primary sortas="b-ndisasm">ndisasm</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="ldrdf">
<term><command>ldrdf</command></term>
<listitem>
<para>is an RDOFF linker.</para>
<indexterm zone="NASM ldrdf">
<primary sortas="b-ldrdf">ldrdf</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="rdf2bin">
<term><command>rdf2bin</command></term>
<listitem>
<para>converts an RDOFF object file to flat binary.</para>
<indexterm zone="NASM rdf2bin">
<primary sortas="b-rdf2bin">rdf2bin</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="rdfdump">
<term><command>rdfdump</command></term>
<listitem>
<para>dumps the contents of an RDOFF file.</para>
<indexterm zone="NASM rdfdump">
<primary sortas="b-rdfdump">rdfdump</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="rdflib">
<term><command>rdflib</command></term>
<listitem>
<para>is an RDOFF librarian.</para>
<indexterm zone="NASM rdflib">
<primary sortas="b-rdflib">rdflib</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="rdx">
<term><command>rdx</command></term>
<listitem>
<para>is used to load and execute an RDOFF module.</para>
<indexterm zone="NASM rdx">
<primary sortas="b-rdx">rdx</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>