GNAT is a compiler, too

Florian Weimer fw@deneb.enyo.de
Sun Mar 31 14:54:00 GMT 2002


Toshitaka Kumano <kumano@cl.cilas.net> writes:

> Bruce Korb wrote:
>> 
>> > I find incidentally that
>> > http://gcc.gnu.org/onlinedocs/gcc/G---and-GCC.html#G++%20and%20GCC says,
>> >
>> > G++ is a compiler, not merely a preprocessor. G++ builds object
>> > code directly from your C++ program source. There is no
>> > intermediate C version of the program.
>> 
>> This is an artifact of the original C++ implementation was CFront,
>> a front end to C.  It was horrible and lived on for 15 years.
>> ADA has always been a compiled language.
>
> Do you mean the paragraph, a special mention for C++, should be removed
> ?

IMHO, we do not need to stress that GNAT is not a transpiler.  I know
that quite a few people believe this because older GNAT versions
generate a C source file by default (which does not contain any code
from the actual program), but these people won't read the manual
either. ;-)



More information about the Gcc mailing list