Author Topic: Static linker for NASM: Smaller C Linker  (Read 8520 times)

Offline alexfru

  • Jr. Member
  • *
  • Posts: 17
Static linker for NASM: Smaller C Linker
« on: September 28, 2014, 08:55:58 AM »
This is an announcement.

I have a static linker for NASM that is part of my Smaller C compiler 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 and so it's officially available and considered to be usable. Users and bug reports are welcome!

Offline alexfru

  • Jr. Member
  • *
  • Posts: 17
Re: Static linker for NASM: Smaller C Linker
« Reply #1 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, 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.

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: Static linker for NASM: Smaller C Linker
« Reply #2 on: November 25, 2014, 02:17:06 PM »
Never too late! Thanks, Alexei!

Best,
Frank


Offline alexfru

  • Jr. Member
  • *
  • Posts: 17
Re: Static linker for NASM: Smaller C Linker
« Reply #3 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