This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Registers that must be preserved inside a function


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:
http://gotfault.net/paste/index.php?show=4

Well, i read that some register must be preserved in function, but
dont know if that is true and what register must be
unchanged in a function

anyone can explain me this??

regards

Carlos Barros


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]