Compiling my own 'yasm' executable

Peter Johnson peter at tortall.net
Tue May 30 19:32:50 PDT 2006


On Tue, 30 May 2006, Robert Riebisch wrote:
> I wish to compile my own 'yasm' executable with the DJGPP or Open Watcom
> compiler, but I don't need all the advanced stuff. I just need the
> 'nasm' parser and 'bin' output.
>
> What's the most elegant way to achieve this? By editing 'Makefile.inc's?

For Unix systems, the easiest way to do this is to edit the Makefile.inc's 
to un-include the modules you don't want included in the build.  With 
DJGPP, it's almost easier; just edit Mkfiles/Makefile.dj and remove the 
modules you don't want; just be sure to remove both the _OBJS and the 
YASM_MODULES portions for each module.

> Btw: Will 'yasm' ever support 'Section .code' as 'nasm' does?

Yes, we will.  Currently yasm only supports the old-style nasm bin, which 
only allowed 3 sections (.text, .data, .bss).  NASM at one point added 
enhanced bin support, which allows other section names and positioning 
flags.  We'll do the same; look for it in 0.6.

Peter


More information about the yasm-devel mailing list