This is the mail archive of the
mailing list for the GCC project.
- From: Per Fransson <fransson at cs dot lth dot se>
- To: <gcc at gcc dot gnu dot org>
- Date: Sun, 14 Jul 2002 20:32:45 +0200 (CEST)
- Subject: generating calls
Can anyone tell me the best way(s) to insert calls at arbitrary
points in the insn-chain during rtx generation?
How about if I guarantee it won't happen while expanding another call?
(although I'd prefer not to have this restriction)
I am prepared to write the called function in assembler to make sure it
won't use any caller-saved registers.
How about parameter passing? Is there a good way to do that? How is it
done by GCC? Are there any functions I can call to say, in effect,
"generate code for passing this datum as argument no 2"(e.g.)?
Any help would be greatly appreciated (naturally). Also please observe
that I didn't start by posting these questions here, I've actually been
struggling with this for a while, but it doesn't quite work the way I
wan't it to.