Watcom flat binary

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Guest

Watcom flat binary

Post by Guest »

Hello, can anyone tell me how to link watcom object files to flat binary ?

Thank you.
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re:Watcom flat binary

Post 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......
-- Stu --
Guest

Re:Watcom flat binary

Post 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 ?
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Watcom flat binary

Post by Pype.Clicker »

that makes no sense ... you want a 16 bits file format to be loaded at 1MB !?
guest

Re:Watcom flat binary

Post by guest »

Hello, no a 32bit file.
dh

Re:Watcom flat binary

Post by dh »

If I'm not mastacken, wotcom only puts out 16 bits.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Watcom flat binary

Post 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))
User avatar
bubach
Member
Member
Posts: 1223
Joined: Sat Oct 23, 2004 11:00 pm
Location: Sweden
Contact:

Re:Watcom flat binary

Post by bubach »

Maybe OpenWatcom outputs strictly 32-bit:
http://www.openwatcom.org/index.html
"Simplicity is the ultimate sophistication."
http://bos.asmhackers.net/ - GitHub
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re:Watcom flat binary

Post 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.
-- Stu --
Post Reply