This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to get .c equivalent of a .cpp


Hi,

On Wed, Jul 13, 2011 at 2:01 PM, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> On 13 July 2011 19:42, kevin diggs wrote:
>> Hi,
>>
>> On Wed, Jul 13, 2011 at 3:45 AM, Maxim Kuvyrkov <maxim@codesourcery.com> wrote:
>>> On Jul 13, 2011, at 12:00 PM, ranjith kumar wrote:
>>>
>>>> Hi,
>>>> 1) I read somewhere that .cpp code is converted into .c code by the
>>>> compiler, and .c file is used to make the executable file.
>>>
>>> This was the way first C++ compilers operated. ?GCC compiles C++ code directly into assembly.
>>>
>> I think these were sometimes called "cfront".
>
> Cfront was a specific C++ compiler (the first one) not just a generic
> term for one that compiled to C.
>
Was there a general term for C++ compilers that worked this way?

Thanks!

kevin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]