This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Registers that must be preserved inside a function
- From: Carlos Barros <barros001 at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Sat, 28 Jan 2006 16:22:38 -0200
- Subject: 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