Re: Highlevel C Backend

2006-06-10 Thread Paul Brook
> One imagines that one would construct a virtual machine architecture > framework gcc already has one. It's called RTL. > and then write a back-end that would generate "machine code" for > that virtual machine, which would be a subset of ANSI C. Hey-presto, you > then have a butt-ugly anythin

Re: Highlevel C Backend

2006-06-09 Thread Joel Dice
On Fri, 9 Jun 2006, David Nicol wrote: One imagines that one would construct a virtual machine architecture framework and then write a back-end that would generate "machine code" for that virtual machine, which would be a subset of ANSI C. Hey-presto, you then have a butt-ugly anything-to-ANSI

Re: Highlevel C Backend

2006-06-09 Thread David Nicol
On 6/9/06, Sebastian Pop <[EMAIL PROTECTED]> wrote: Steven Bosscher wrote: > 2. Probably GIMPLE, but you can't express all of GIMPLE in ANSI C > (with GCC extensions you can probably express most of it though). Theoretically you can express all of GIMPLE in ANSI C, practically it would require s

Re: Highlevel C Backend

2006-06-09 Thread Sebastian Pop
Steven Bosscher wrote: > 2. Probably GIMPLE, but you can't express all of GIMPLE in ANSI C > (with GCC extensions you can probably express most of it though). Theoretically you can express all of GIMPLE in ANSI C, practically it would require some engineering, pragmatically it is worthless for GCC

Re: Highlevel C Backend

2006-06-09 Thread Fabian Scheler
1. Yes. And no. It can be written but such a backend would never be acceptable for inclusion in GCC. don't worry ;-) 2. Probably GIMPLE, but you can't express all of GIMPLE in ANSI C (with GCC extensions you can probably express most of it though). 3. Several such attempts exist or have existe

Re: Highlevel C Backend

2006-06-09 Thread Steven Bosscher
On 6/9/06, Fabian Scheler <[EMAIL PROTECTED]> wrote: 1. Is it possible to provide an Highlevel C backend for the GCC? 2. Which level is most suitable level to generate C from (not the initial source code level, of course ;-)) - RTL, GIMPLE, GENERIC? 3. Are there any attempts to provi

Re: Highlevel C Backend

2006-06-09 Thread Fabian Scheler
> 1. Is it possible to provide an Highlevel C backend for the GCC? Everybody is supposed to know what "highlevel" means for you. OK, I just meant plain ansi C > 3. Are there any attempts to provide a C backend, so far? > Yes, gcc2c from sun.com, though this is a dead proj

Re: Highlevel C Backend

2006-06-09 Thread Sebastian Pop
Fabian Scheler wrote: > Hello alltogether, > > I have some questions: > > 1. Is it possible to provide an Highlevel C backend for the GCC? Everybody is supposed to know what "highlevel" means for you. > 2. Which level is most suitable level to generate C from (n

Highlevel C Backend

2006-06-09 Thread Fabian Scheler
Hello alltogether, I have some questions: 1. Is it possible to provide an Highlevel C backend for the GCC? 2. Which level is most suitable level to generate C from (not the initial source code level, of course ;-)) - RTL, GIMPLE, GENERIC? 3. Are there any attempts to provide a C backend, so far