This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

single parse vs multi parse


This question is to the GCC team.

As I'm reading the gcc code, I noticed that
each function in a program file is parsed into tree
one bye one. It works like this:
translate function 1 into tree 1
translate tree 1 into rtl 1
translate rtl 1 into asm code 1

translate function 2 into tree 2
translate tree 2 into rtl 2
translate rtl 2 into asm code 2
....

As I want to do some global analysis before the rtl is generated,
I managed to change the front end of GCC into multi-parse, which
works like this:
translate function1 into tree1
translate function2 into tree2
translate function3 into tree3
....
do some interprocedure analysis
translate tree1 into rtl1
translate tree2 into rtl2
....

As our team leader concerns if I could feed this back into the GCC
project, I want to ask if such change is acceptable or not, under the
concern of the GCC team and FSF?
Or to say, could GCC front end have multiparse and have interprocedure 
analysis?

________________
Fudan University Alumni Email System, http://mail.fudan.edu,  FREE Signup.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]