Is it possible to import a gimple file into gcc so to generate the target code?

View: New views
4 Messages — Rating Filter:   Alert me  

Is it possible to import a gimple file into gcc so to generate the target code?

by Haizhou LING :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Suppose we dump the GIMPLE tree into a file by using gcc option. Is it possible to import the GIMPLE file into the gcc and generate the target code?

Thanks a lot for your help.

Re: Is it possible to import a gimple file into gcc so to generate target code?

by Ian Lance Taylor-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Haizhou LING <haizhouling@...> writes:

> Suppose we dump the GIMPLE tree into a file by using gcc option. Is it
> possible to import the GIMPLE file into the gcc and generate the target
> code?

No.

The LTO project is working toward making something like that possible.

Ian

Re: Is it possible to import a gimple file into gcc so to generate the target code?

by Diego Novillo-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 1/11/08 3:36 PM, Haizhou LING wrote:
> Suppose we dump the GIMPLE tree into a file by using gcc option. Is it
> possible to import the GIMPLE file into the gcc and generate the target
> code?

Not yet, but it's being worked on.

http://gcc.gnu.org/wiki/LinkTimeOptimization


Diego.


Re: Is it possible to import a gimple file into gcc so to generate the target code?

by Ben Elliston :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Suppose we dump the GIMPLE tree into a file by using gcc option. Is it
> possible to import the GIMPLE file into the gcc and generate the target
> code?

No, but you might want to take a look at the plugin project:

  http://gcc.gnu.org/wiki/GCC_Plugins

Ben