NASM - The Netwide Assembler

NASM Forum => Programming with NASM => Topic started by: ras on February 27, 2010, 11:20:13 PM

Title: why link?
Post by: ras on February 27, 2010, 11:20:13 PM
^_^ topic, [why link?]

any reasoning behind linking aside from access to higher level language compiled objects?

nasm's macro facilities are very robust, and it's more than possible to use -f bin to emit final_output quality binaries in higher forms, elf a.out pe...
so why link?

i want your opinions ';]
Title: Re: why link?
Post by: Keith Kanios on March 09, 2010, 06:31:24 PM
For very small asm-only projects, there are not many reasons beyond personal preference and eliminating the need for another tool.

For projects that wish to include static or shared libraries, or utilize highly modular design, there are many reasons.

Beyond that, there are things that end up being platform specific that are best handled by the appropriate linker. A good example is the generic use of ELF across different Unix-like platforms.