Page 1 of 1

Borland C++ 4.52 Question (I NEED HELP!)

Posted: Tue Jan 08, 2002 12:00 am
by netster403
is it possable to make a raw binary file
with Borland C+ 4.52?(a file like -o with NASM)
i thought id find out before i started programing
w/it.

RE:Borland C++ 4.52 Question (I NEED HELP!)

Posted: Tue Jan 08, 2002 12:00 am
by Chris Giese
>On 2002-01-08 19:57:04, netster403 wrote:
>is it possable to make a raw binary file
>with Borland C+ 4.52?(a file like -o with NASM)
>i thought id find out before i started programing
>w/it.

I think so, but TLINK is not as flexible as GNU ld. You must
1. use /t option with TLINK
2. give the output file a .BIN extension

The start address (ORG value) is set in the TASM startup code, not in a linker script.

Note that I did this only with 16-bit code.