Mail Archives: djgpp/1999/08/06/20:27:58
On 5 Aug 99, Michael Stewart was found to have commented thusly:
> Travis wrote in message <37A8E3E3 DOT A21CAD9D AT hotmail DOT com>...
> >How do I get djgpp to produce microsoft and borland compatable object
> >files (.OBJ)?
>
>
> I don't think you can.
Really?
What about this? Assuming the poster has C/C++ source code and doesn't have
the commerical compilers mentioned above:
1. Compile with gcc using the -S option to get the assembler output. Note that
gcc produces the assembler code in AT&T/Unix style, not in the Intel style.
2. There are utilities discussed in DJGPP FAQ that allow you to convert
assembler from AT&T<--->Intel style. (apparently in both ways, using different
utilities). See in particular the very last paragragh of FAQ 17.2
3. Since the AT&T-->Intel converter mentioned above has apparently been
optimized to work with the Netwide Assembler (NASM), which is the assembler I
was going to recommend and will produce object files in apparently many formats
(COFF, OBJ, etc), you then just produce your object with NASM, and cross your
fingers.
You should know I have never tried these steps, but then I haven't had the need
for .OBJ files either.
Mitch Halloran
Research (Bio)chemist
Duzen Laboratories Group
Ankara TURKEY
- Raw text -