Mail Archives: djgpp/1995/06/06/06:47:25
> > 2) I don't suppose that there is a converter for Intel format to GAS
> > format, is there?
>
> I have actually been working on such a piece of software for some
> time now. Currently I am roughly through developing about half of it,
> and it seems to be working pretty well so far. Mind you it only does
> simple translations at the moment.
Please consider contributing this software to DJGPP users when you're
done. The DJGPP FAQ list asks for this explicitly:
17.2 Q: Where can I find an automated conversion tool to convert my
Intel-style assembly code into a code acceptable by Gas?
A: Unfortunately, such a tool is unknown to us; if you see one, hear
about one, or write one yourself, be sure to tell us. In the
meantime, here is what you can do to convert your code:
* For a small number of relatively short files, consider
converting them with a smart editor (like Emacs or its
work-alikes).
* Obtain a copy of Microsoft MASM 6.11. It has ``-coff'' option
to generate object code in COFF format which can be submitted
to gcc, so you can compile your original source. You can
also use LIB32 librarian from Microsoft C8 to convert object
files to COFF by putting them into a .lib library, then
extracting them as COFF files.
Keep in mind that syntax is only one of the aspects of converting
code written for DOS to DJGPP. You should also make sure your
code doesn't violate any rules for protected-mode programming
(next question).
- Raw text -