News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

DOS Linker

Started by Gunther, February 18, 2021, 12:23:21 PM

Previous topic - Next topic

Gunther

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
You have to know the facts before you can distort them.

TimoVJL

Check Masm32\bin folder for another linker
May the source be with you

Vortex

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

TouEnMasm

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
Fa is a musical note to play with CL

avcaballero


nidud

#5
deleted

Gunther

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
You have to know the facts before you can distort them.

Vortex

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

Gunther

Erol,

fine. That clears my question. Do you have experience with it? People used to say miraculous things about Digital Mars.

Gunther
You have to know the facts before you can distort them.

Vortex

Hi Gunther,

The author 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

Gunther

Thank you Erol for the exampel.

Gunther
You have to know the facts before you can distort them.