Re: front-end that translate C++ to C

2005-07-25 Thread Chris Lattner
On Mon, 25 Jul 2005, Daniel Berlin wrote: On Mon, 2005-07-25 at 14:01 +0400, Vladimir A. Merzliakov wrote: Hi all, Are there any open-source(or free) front-end which translates C++ to C? I could find some commercial things - Comeau, AT&T Cfront, etc., but these have many limitations(especially,

Re: front-end that translate C++ to C

2005-07-25 Thread Vladimir A. Merzliakov
LLVM ( http://llvm.cs.uiuc.edu/ ) ? It use modified gcc 3.4 as C/C++ frontend and it can emits portable C code. Depends what you mean by portable. You can't take the output of the gcc llvm frontend on one platform, and run it on another, like cfront could. "emits portable C code" just copied fr

Re: front-end that translate C++ to C

2005-07-25 Thread Tom Tromey
> "Dan" == Daniel Berlin <[EMAIL PROTECTED]> writes: Dan> You can't take the output of the gcc llvm frontend on one platform, and Dan> run it on another, like cfront could. Dan> The sizes, alignments, etc, of things will be different, where people Dan> use sizeof(x), etc, in their code. Dan>

Re: front-end that translate C++ to C

2005-07-25 Thread Daniel Berlin
On Mon, 2005-07-25 at 14:01 +0400, Vladimir A. Merzliakov wrote: > > Hi all, > > > > Are there any open-source(or free) front-end which translates C++ to C? > > I could find some commercial things - Comeau, AT&T Cfront, etc., but > > these have many limitations(especially, It's too difficult to ge

Re: front-end that translate C++ to C

2005-07-25 Thread Vladimir A. Merzliakov
Hi all, Are there any open-source(or free) front-end which translates C++ to C? I could find some commercial things - Comeau, AT&T Cfront, etc., but these have many limitations(especially, It's too difficult to get cfront because there are few cfront-based compiler at present) LLVM ( http://llvm.

front-end that translate C++ to C

2005-07-24 Thread Yi-kwon Hwang
Hi all, Are there any open-source(or free) front-end which translates C++ to C? I could find some commercial things - Comeau, AT&T Cfront, etc., but these have many limitations(especially, It's too difficult to get cfront because there are few cfront-based compiler at present) Cheers, -- Yi-kw