This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
%ebx vs %ecx
- From: Mathieu Lacage <mathieu dot lacage at gmail dot com>
- To: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Sat, 24 Jul 2010 19:51:21 +0200
- Subject: %ebx vs %ecx
hi,
I wonder if it is possible to know which register the compiler is
going to use to generate PIC code on ia32. i.e., most of the
references I found mention only ebx but the only ia32 system I have
access to (Xeon E5410) which is running FC10 and gcc 4.3.2 compiles a
sample foo function accessing a global variable with the ecx register.
Is there any ABI rule about which register is supposed to be used ? If
the compiler free to use any register ? Does it really use _any_
register in practice ?
Mathieu
--
Mathieu Lacage <mathieu.lacage@gmail.com>