Replacing certain operations with function calls
Jean Christophe Beyler
jean.christophe.beyler@gmail.com
Tue Sep 1 22:35:00 GMT 2009
I don't think I quite understand what you're meaning. I want to use
the standard ABI, basically I want to transform certain operations
into function calls.
In regard to what you said, do you mean I should build the tree before
the expand pass, by writing a new pass that will work on the trees
instead of rtx?
Otherwise, I fail to see how that is different to what I'm already
doing. Would you have an example?
Thanks,
Jc
PS: Although when I look at what GCC generates at the expand stage, it
really does seem that he first generates the calculation of the
parameters in pseudo-registers and then moves them to the actual
output registers. It's the next phases that will combine the two to
save a move.
On Tue, Sep 1, 2009 at 6:26 PM, Ian Lance Taylor<iant@google.com> wrote:
> Jean Christophe Beyler <jean.christophe.beyler@gmail.com> writes:
>
>> First off: does this seem correct?
>
> Awkward though it is, it may be more reliable to build a small tree here
> and pass it to expand_call. This assumes that you want to use the
> standard ABI when calling this function.
>
> Then your second issue would go away.
>
> Ian
>
More information about the Gcc
mailing list