Difference between revisions of "NASM"

From CBLFS
Jump to navigationJump to search
Line 3: Line 3:
 
!Download Source:
 
!Download Source:
 
| http://prdownloads.sourceforge.net/nasm/nasm-{{NASM-Version}}.tar.bz2
 
| http://prdownloads.sourceforge.net/nasm/nasm-{{NASM-Version}}.tar.bz2
|-valign="top"
 
!Required Patch:
 
| http://svn.cross-lfs.org/svn/repos/patches/nasm/nasm-{{NASM-Version}}-security_fix-1.patch
 
 
|}
 
|}
  
Line 24: Line 21:
 
Compile the package:
 
Compile the package:
  
patch -Np1 -i ../nasm-{{NASM-Version}}-security_fix-1.patch &&
 
 
  ./configure --prefix=/usr &&
 
  ./configure --prefix=/usr &&
 
  make
 
  make
Line 39: Line 35:
 
Compile the package:
 
Compile the package:
  
patch -Np1 -i ../nasm-{{NASM-Version}}-security_fix-1.patch &&
 
 
  CC="gcc ${BUILD32}" ./configure --prefix=/usr &&
 
  CC="gcc ${BUILD32}" ./configure --prefix=/usr &&
 
  make
 
  make
Line 51: Line 46:
 
Compile the package:
 
Compile the package:
  
patch -Np1 -i ../nasm-{{NASM-Version}}-security_fix-1.patch &&
 
 
  CC="gcc ${BUILDN32}" ./configure --prefix=/usr &&
 
  CC="gcc ${BUILDN32}" ./configure --prefix=/usr &&
 
  make
 
  make
Line 63: Line 57:
 
Compile the package:
 
Compile the package:
  
patch -Np1 -i ../nasm-{{NASM-Version}}-security_fix-1.patch &&
 
 
  CC="gcc ${BUILD64}" ./configure --prefix=/usr &&
 
  CC="gcc ${BUILD64}" ./configure --prefix=/usr &&
 
  make
 
  make

Revision as of 02:24, 16 June 2007

Download Source: http://prdownloads.sourceforge.net/nasm/nasm-2.07.tar.bz2

Introduction to NASM

NASM is prototype general-purpose x86 assembler. It supports a number of different binary formats including flat-form binary files, a.out, ELF, COFF, Microsoft 16-bit OBJ and Win32, OS/2 object files, the as86 object format, and a home-grown format called RDF. Its syntax is designed to be simple and easy to understand, similar to Intel's but less complex. It supports Pentium, P6, MMX, 3DNow! and SSE opcodes, and has macro capability.

Also included is NDISASM, a prototype x86 binary-file disassembler which uses the same instruction table as NASM.

Project Homepage: http://sourceforge.net/projects/nasm/

Dependencies

Optional (For Building Documentation)

Non-Multilib

Compile the package:

./configure --prefix=/usr &&
make

Install the package

make install

Multilib

This package does not provide any libraries so only one installation is needed.

32Bit

Compile the package:

CC="gcc ${BUILD32}" ./configure --prefix=/usr &&
make

Install the package

make install

N32

Compile the package:

CC="gcc ${BUILDN32}" ./configure --prefix=/usr &&
make

Install the package

make install

64Bit

Compile the package:

CC="gcc ${BUILD64}" ./configure --prefix=/usr &&
make

Install the package

make install

Documentation