Can I link object files or static libraries into executable with flat assembler?
No – this is the job of a linker, not assembler. Though flat assembler is able to output some types of executables directly, it has nothing to do with linking – it just formats the output code to be an executable file instead of object or flat binary, with the general rule that output code is always generated in the same order and way as it is defined by source. But if you prefer to work with many modules and libraries, you should use the object output of flat assembler, and then link it into final executable with some linker.
Related Questions
- Can I link the object files generated by Morpher with objects files generated by my favorite compiler (e.g. Microsoft Visual Studio)?
- Does HI-TECH C support any binary object files or libraries in formats other than HI-TECHs?
- Can I link object files or static libraries into executable with flat assembler?