Hello,
> I have to use gcc's C parser and the intermediate representation, so that I
> can manipulate the basic blocks and CFG. So I need to plug out the parser
> and the intermediate code. I would like to know if it is possible to plug
> out the parser and the intermediate representation code.
t
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
> 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 project for more than 3
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?