This is the mail archive of the
mailing list for the GCC project.
Looking for advice on manipulating asm code
- To: gcc at gcc dot gnu dot org, gcc-help at gcc dot gnu dot org
- Subject: Looking for advice on manipulating asm code
- From: Pankaj Pant <pant at ece dot gatech dot edu>
- Date: 22 May 2000 17:31:26 -0400
I am not sure if this is the right place to ask this question, but I
couldn't find any other forum.
How difficult is it to manipulate the target asm code such that all
instructions that need similar execution units are grouped together
(taking care of dependencies, of course).
Eg. Mul ...
would be reordered as:
if the last two instructions can be interchanged.
I tried looking at the gcc code, but I couldn't determine how easy it would
be to modify gcc itself. I am looking for suggestions on whether I should
delve into gcc, or write a post-processor which directly works on the asm.
Thanks for any tips. I'm not subscribed to these lists. I'll check the
archives in a few days, but I'd appreciate it if any responses could also be
mailed to me at email@example.com.
PS: the code is targeted at the SimpleScalar architecture, for which a
compiler (derived from gcc), simulator and other tools can be found at: