Orlando Llanes wrote:
I'd like to see register EDI point to Self on entry into a method
rather than Self being on the stack. [...]
I just tried to tell GPC to pass this parameter through a register, but this seems not to be possible - at least on the Pentium which has quite few registers. All I could achieve is to load `Self' into a register at the beginning of a method and to keep it there - which is done automatically anyway when optimizing.
But I think it is not that crucial: If you want to have `Self' in a register at the beginning of some assembler part, tell GPC to load it into one using the "input parameters" section of the `asm' statement.
Good luck,
Peter
PS: If anybody can show me how to tell GCC to pass a pointer parameter through a register, I can try to teach GPC to do the same.