Does anyone know of a free, powerful DOS linker? I only have the old TLINK from Borland, which I got when I bought a license of TASM 4.0. But TLINK has quirks.
Gunther
Check Masm32\bin folder for another linker
Hi Gunther,
Timo is right, it's the old 16-bit MS linker, \masm32\bin\link16.exe
Another alternative is Digital Mars' optlink :
https://www.digitalmars.com/ctg/optlink.html
https://www.digitalmars.com/download/freecompiler.html
I am not a user of DOS programs but it seems that JWASM solve the problem compiling in format MZ.
Then he use the normal and actual linker.https://baron-von-riedesel.github.io/JWasm/Html/Manual.html#OUTPUTFORMATPE (https://baron-von-riedesel.github.io/JWasm/Html/Manual.html#OUTPUTFORMATPE)
alink
deleted
Thank you all for the valuable hints.
Quote from: TimoVJL on February 18, 2021, 01:40:21 PM
Check Masm32\bin folder for another linker
Timo, I didn't know that. One is never stop learning.
Quote from: Vortex on February 18, 2021, 04:21:14 PM
Another alternative is Digital Mars' optlink :
https://www.digitalmars.com/ctg/optlink.html
https://www.digitalmars.com/download/freecompiler.html
Erol, is it free?
Gunther
Hi Gunther,
QuoteThere are several free downloads available for the Digital Mars C/C++ compiler. Please, read the following license agreement. If you agree click this
https://www.digitalmars.com/download/dmcpp.html
Erol,
fine. That clears my question. Do you have experience with it? People used to say miraculous things about Digital Mars.
Gunther
Hi Gunther,
The author (https://en.wikipedia.org/wiki/Walter_Bright) of the DM toolset is a very talented coder.
In the past, I used the Digital Mars C\C++ compiler but it lacks the MS COFF support. It produces only OMF modules. The DM linker can process only the same type of object files - OMF format.
Here is quick example linking a Masm object file with the DM linker :
\masm32\bin\ml /c HelloWorld.asm
\dm\bin\link -ENTRY:_start -SU:WINDOWS -FIXE HelloWorld.obj,HelloWorld.exe
Thank you Erol for the exampel.
Gunther