option-link.md
January 27, 2026 ยท View on GitHub
Asmc Macro Assembler Reference
option -link
-link link_options
-Bl linker
linker
Optional linker. The default is LINKW for the Windows version, and gcc for Linux.
link_options
The link options. For more information, see Linker options.
If link options are omitted the default options added depends on the situation. In Windows the /LIBPATH directory is set, and if the -q option is used /NOLOGO is added. The linux version adds output name from the first object file. Omitting the -fpic, -fPIC, and -fplt options adds -static and -fno-pic to gcc. Additionally, if the option -MT is used and no libraries are specified, the standard C library is linked.
gcc [-m32 [-no-pie]] [-static] [-nostdlib] [-s] -o name object_files [-l:[x86/]libasmc.a]
You can use the comment pragma to specify some linker options.
Valid options for LINK are /DEFAULTLIB, /EXPORT, /INCLUDE, /MANIFESTDEPENDENCY, /MERGE, and /SECTION.