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. -- Peter Gerwinski, Essen, Germany, http://home.pages.de/~Peter.Gerwinski/ Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - gpc-980830 PGP key on request - 6C 94 45 BE 28 A4 96 - 0E CC E9 12 47 25 82 75 Fight the SPAM and UBE! - http://spam.abuse.net/ - http://maps.vix.com/