Author Topic: why link?  (Read 8942 times)

Offline ras

  • Jr. Member
  • *
  • Posts: 8
why link?
« 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 ';]

Offline Keith Kanios

  • Full Member
  • **
  • Posts: 383
  • Country: us
    • Personal Homepage
Re: why link?
« Reply #1 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.