NASM - The Netwide Assembler

NASM Forum => Using NASM => Topic started by: alexfru on September 28, 2014, 08:55:58 AM

Title: Static linker for NASM: Smaller C Linker
Post by: alexfru on September 28, 2014, 08:55:58 AM
This is an announcement.

I have a static linker for NASM (https://github.com/alexfru/SmallerC/blob/master/v0100/smlrl.c) that is part of my Smaller C compiler (https://github.com/alexfru/SmallerC) and it seems to be working well with ELF object files produced by NASM. I'm able to make DOS, Windows and Linux executables linked with the linker. Flat binaries should work too (though, you don't always need a linker for those if you use NASM).

I've just created documentation for it (https://github.com/alexfru/SmallerC/wiki/Smaller-C-Linker-Wiki) and so it's officially available and considered to be usable. Users and bug reports are welcome!
Title: Re: Static linker for NASM: Smaller C Linker
Post by: alexfru on November 25, 2014, 08:56:37 AM
I've updated the documentation on the small memory model and included a small test app (2 parts: lnktst1.asm (https://github.com/alexfru/SmallerC/blob/master/v0100/tests/lnktst1.asm), lnktst1b.asm (https://github.com/alexfru/SmallerC/blob/master/v0100/tests/lnktst1b.asm)) demonstrating how to use nasm and smlrl to create DOS .COM and .EXE programs (for the tiny and small memory models, respectively). I guess I should've done it a long time ago.
Title: Re: Static linker for NASM: Smaller C Linker
Post by: Frank Kotler on November 25, 2014, 02:17:06 PM
Never too late! Thanks, Alexei!

Best,
Frank

Title: Re: Static linker for NASM: Smaller C Linker
Post by: alexfru on December 21, 2014, 09:57:44 AM
For those interested, there's now a Linux version of the binary (smlrl) as well as DOS and Windows:
https://github.com/alexfru/SmallerC/tree/master/v0100/binl