This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: reading the gcc-IR in back-end
On Sun, Oct 13, 2002 at 02:38:07PM +0530, Avinash K. Shrivastava wrote:
>
> kindly entertain the queries,
>
>
> [1] how the GCC back-end reads the front-end-IR for processing.
>
GCC trees are converted to RTL via the expand_* functions (in gcc/expr.c).
> [2] Do we need to modify it [back-end] to read the IR from a file instead
> of from the memory.
>
If you store the tree format in a file, then you have to read it back into
memory before doing anything else :-).
If you build a valid GCC tree, then you don't have to modify the back-end.
Sebastian.