yasm-1.3.0

Introduction to yasm

Yasm is a complete rewrite of the NASM-3.01 assembler. It supports the x86 and AMD64 instruction sets, accepts NASM and GAS assembler syntaxes and outputs binary, ELF32 and ELF64 object formats.

This package is known to build and work properly using an LFS 12.4 platform.

Package Information

  • Download (HTTP): https://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz

  • Download SHA256 Sum: 3dce6601b495f5b3d45b59f7d2492a340ee7e84b5beca17e48f862502bd5603f

  • Download MD5 sum: fc9e586751ff789b34b1f21d572d96af

  • Download size: 1.5 MB

  • Estimated disk space required: 27 MB (additional 12 MB for the tests)

  • Estimated build time: 0.1 SBU (additional 0.1 SBU for the tests)

yasm Dependencies

Optional

cython-3.2.1

Installation of yasm

First, fix a problem when building with gcc-15:

sed -e 's/def __cplusplus/ defined(__cplusplus) || __STDC_VERSION__ >= 202311L/' \
    -i libyasm/bitvect.h

Prepare yasm by running the following commands:

sed -i 's#) ytasm.*#)#' Makefile.in
./configure --prefix=/usr

To Build yasm issue:

make

To test the results, issue:

make -j1 check

Now Install, as the root user:

make install

Command Explanations

sed -i 's#) ytasm.*#)#' Makefile.in: This sed prevents it compiling 2 programs (vsyasm and ytasm) that are only of use on Microsoft Windows.

Contents

Installed Program: yasm
Installed Library: libyasm.a
Installed Directory: /usr/include/libyasm

Short Descriptions

yasm

is a portable, retargetable assembler that supports the x86 and AMD64 instruction sets, accepts NASM and GAS assembler syntaxes and outputs binaries in ELF32 and ELF64 object formats

libyasm.a

provides all of the core functionality of yasm, for manipulating machine instructions and object file constructs