Re: Registers that must be preserved inside a function

2006-01-29 Thread Mike Stump
On Jan 28, 2006, at 10:22 AM, Carlos Barros wrote: anyone can explain me this?? Wrong list, you might try gcc-help, otherwise you can find the answers in the source code to the compiler, if you wish to dig into it. In short, gcc has lots of latitude to do just about anything it wants wit

Registers that must be preserved inside a function

2006-01-28 Thread Carlos Barros
Hi list! I was playing with some disassembly these days and I noticed that some functions stores global vars in ebx register and then it may call another functions assuming that ebx will be unchanged when the control back to the caller! I have a post with more details about this assembly code at: h