Related articles |
---|
RE: Recursive Descent vs. LALR qjackson@shaw.ca (Quinn Tyler Jackson) (2003-07-04) |
porting of gcc peephole opt rong@capsl.udel.edu (Hongbo Rong) (2003-07-15) |
RE: porting of gcc peephole opt Barak.Zalstein@ParthusCeva.com (Barak Zalstein) (2003-07-17) |
From: | Hongbo Rong <rong@capsl.udel.edu> |
Newsgroups: | comp.compilers |
Date: | 15 Jul 2003 14:49:54 -0400 |
Organization: | University of Delaware, Newark |
References: | 03-07-061 |
Keywords: | GCC, optimize, question |
Posted-Date: | 15 Jul 2003 14:49:54 EDT |
Hello, I have a question regarding gcc: If I reuse gcc peephole opt in
another compiler as an independent phase, what is the main work to do?
My current understanding is that since the peephole rules are defined in
this way:
(define_peephole
[insn-pattern-1
insn-pattern-2
...]
"condition"
"template"
"optional insn-attributes"),
we need first to translate our own code into RTL, then port the related
compilation component to use the above rule, after that, translate the
resulting RTL to our code again.
Any comment please?
Thanks.
Rong
Return to the
comp.compilers page.
Search the
comp.compilers archives again.