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]

generating calls


Hi,

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.

/Per Fransson


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