This is the mail archive of the gcc-help@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]

%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>


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