This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
From beginner: What is the workload of writing a RTL expander for a new IR?
- From: "Chunhua Liao" <chunhualiao at hotmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 17 Dec 2003 20:40:34 -0600
- Subject: From beginner: What is the workload of writing a RTL expander for a new IR?
- Bcc:
I notice that there are several projects aiming at improve the
optimization infrastructure of GCC. And it seems all of them involve
introducing new IR(s) between the original tree representation and RTL, thus
new RTL expanders are necessary for them.
My questions are:
1. Is RTL a complete representation for whole translation-unit(a complete
input sourcefile contains) which can be used for code generator without the
help from tree representation?
If yes, why did I found some tree references even at the very back end?
2. What is the workload(in terms of n persons m months) of writing such new
RTL expander from a new IR? My current understanding is that it is
non-trival, since GCC calls several levels of functions to expand a function
in tree to a sequence of RTL instruction nodes and most of them contain
parameters in tree type. We may need rewrite them with the parameters of
new IR type?
Thanks for the view of my post!
_________________________________________________________________
Have fun customizing MSN Messenger ? learn how here!
http://www.msnmessenger-download.com/tracking/reach_customize