[Gimple] look for gcc command to start compiling from GIMPLE

charfi asma charfiasma@yahoo.fr
Thu Jan 28 15:26:00 GMT 2010


Thanks Diego,

but I think that my previous question was not very clear.
I asked for a gcc option to compile Gimple file directly (I have no file.c) I have file.gimple and I want to tell compiler: start your job from converting gimple to ssa and continue until reaching binary code.

thank you 

Asma



----- Message d'origine ----
De : Diego Novillo <dnovillo@google.com>
À : charfi asma <charfiasma@yahoo.fr>
Cc : gcc-help@gcc.gnu.org
Envoyé le : Jeu 28 Janvier 2010, 15 h 31 min 31 s
Objet : Re: [Gimple] look for gcc command to start compiling from GIMPLE

On Thu, Jan 28, 2010 at 04:20, charfi asma <charfiasma@yahoo.fr> wrote:

> i,e. How to tell compiler : do not run genericise.c nor gimplify.c
> for example, If we want compiler to stop just after preprocessing, we use -E coptions.
> So, is there an options that tells compiler: do not preprocess and start compiling from gimple IR.

With gcc 4.5 you'll be able to do it using the LTO machinery with the
-flto switch:

$ gcc -flto -c file.c

generates file.o which contains a mix of gimple IL and final assembly.
The representation of gimple is not in text form, however.

Diego.






More information about the Gcc-help mailing list