Mail Archives: djgpp/1997/09/17/16:00:45
qed AT chromatic DOT com (Paul Hsieh) wrote:
>On 17 Sep 97 07:22:41 GMT, Herman Schoenfeld said:
>> >: ... There are no MSVC compilers for them so any comment comparing
>> >: GCC to MSVC is pretty much a waste of bandwidth.
>> >
>> >Wrong. Some of us can read assembly language files generated by
>> >compilers. Some of us can link modules from "foreign" compilers that
>> >don't natively target a particular environment.
>>
>> No, it's not "wrong". MSVC doesn't support linux. Why must you fill this
>> newgroup with your lies?
>
>My understanding is that MSVC's object format is a well documented,
>publically known format called "COM" which is not specifically tied to
>the Windows operating system. What this means is that you can take code
>compiled from C/C++ into .OBJ files, and if you've crafted your own
>linker, you can splice them together for whatever OS you want on the x86
>so long as it supports 32 bit FLAT mode programming.
COFF.
My experience is that you can't really combine .OBJ files from different
compilers because the compiler will generate calls to runtime library
routines that require initialization during run-time startup. One of the
most horrendous is floating-point divide code generated by MSVC++ 4.0, in
which it checks a flag called __adjust_fdiv and calls a
Pentium-FDIV-bug-bypassing divide routine if it's set.
-- Avery Lee (Psilon AT concentric DOT net)
Try my freeware junk at http://www.concentric.net/~Psilon
(pages revised 8/6/97 - all programs include source)
* VGAPaint 386 V1.3/1.4b4: 32-bit paint program
* VETools 1.21: 2:1 compression for Watcom executables
* IPXfer5 1.6a: easy file transfers over networks at 450k/s
* Playwav 1.2: PC speaker sound for older computers
* Stellaryx/PC 1.1: Shoot-em-up from the Amiga, ported to the PC
* LMPStat 1.0: Pages of statistics for DOOM ][ .LMP files
- Raw text -