Mail Archives: djgpp/1997/10/08/07:31:46
On 10/8/97 11:58:29 AM Eli Zaretskii wrote:
>On Wed, 8 Oct 1997, Brett Porter wrote:
>
>> But surely the compiler can "compile" the Intel asm to AT&T format, the
same
>> way it compiles the C++ source to AT&T code?
>
>How can you expect a C or C++ compiler to be able to compile assembly,
>which is an entirely different language? Would you expect it to be able
>to compile a Pascal program, for example? It just can't, it only
>understands a single source language.
>
He probably meant that gcc will be used as a driver program
for a *.asm to *.s translator (it is a driver for many different
compilers anyway)
Imagine a command like
gcc file.asm -S -o file.s
or
gcc file.asm -c -o file.o
in the first case only the translator will be invoked.
in the second case the translator and then gas will be invoked.
I think it is possible
Eyal
- Raw text -