Page 1 of 1

Watcom flat binary

Posted: Tue Mar 22, 2005 4:01 am
by Guest
Hello, can anyone tell me how to link watcom object files to flat binary ?

Thank you.

Re:Watcom flat binary

Posted: Tue Mar 22, 2005 12:05 pm
by df
watcom linker doesnt output flat binary (from memory......)... but you can easily write an OFM to binary linker...

or use another linker.. gnu should be able to handle OMF object files......

Re:Watcom flat binary

Posted: Tue Mar 22, 2005 12:42 pm
by Guest
Hello, the gnu ld linker isnt be able to handle OMF object files. I dont know how to write a OMF to binary linker. And the binary file has to start at 0x100000......
Could you help me ?

Re:Watcom flat binary

Posted: Tue Mar 22, 2005 2:45 pm
by Pype.Clicker
that makes no sense ... you want a 16 bits file format to be loaded at 1MB !?

Re:Watcom flat binary

Posted: Tue Mar 22, 2005 3:23 pm
by guest
Hello, no a 32bit file.

Re:Watcom flat binary

Posted: Thu Mar 24, 2005 10:59 am
by dh
If I'm not mastacken, wotcom only puts out 16 bits.

Re:Watcom flat binary

Posted: Fri Mar 25, 2005 3:07 am
by Pype.Clicker
watcom was known to be one of the first 32bits-able compiler (watcom is the corporate that developed "dos4gw", the famous dos extender that any great game was using)

still final executable is somehow a mix of 16 bits code (the extender startup code) and 32 bits (the game). I didn't know .obj files generated by watcom could be 32bits (actually, i thought it would be using Something Else (tm))

Re:Watcom flat binary

Posted: Fri Mar 25, 2005 11:04 am
by bubach
Maybe OpenWatcom outputs strictly 32-bit:
http://www.openwatcom.org/index.html

Re:Watcom flat binary

Posted: Sat Mar 26, 2005 9:05 am
by df
openwatcom is the next version of watcom c/c++ 11. think of it as Watcom 12. OpenWatcom still handles/creates dos 16bit as well as dos32bit, win16, win32, os2, netware, etc etc etc.