Steve Fink <[EMAIL PROTECTED]> wrote:

>> > It would be tempting to change all pushtop,pushbottom,poptop,popbottom
>> > ops into ones that had the start register and number of registers as
>> > arguments.
>>
>> No. These ops are used to save registers for the caller and not for
>> argument passing.

> Yes, I know -- but if we made the suggested change, then they could be
> used for both. (Only when needed -- normally, they'd just be used for
> caller-save stuff, it's only in complicated situations where we'd use
> them for dynamic register numbering.)

These would be different opcodes prepare_args, extract_args or such. But
I don't expect much usage of such complicated signatures, where function
arguments don't match. So its probably not worth the effort.

> This sounds like the beginning of a whole set of things like "Warning
> #238: suboptimal implementation of xxx. Are you sure you know what you
> are doing?"

If the user turns on optimization and the compiler finds such code, yes,
why not.

leo

Reply via email to