Preferred registers for integer arithmetic

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm playing around with the gcc and its generated assembler code for
some test applications. I recognized that the gcc prefers the use of
the registers eax, (ebx), ecx and edx (x86) for arithmetic
instructions like lea, add, mul, etc. I know that the gcc uses several
register classes to define which registers can be used for which task
(e.g. FIXED_REGS, GENERAL_REGS).

Is there also a class that explains the described behavior? Or does
the gcc simply looks for unused registers in a special order?

Another question: What is meant by the Q_REGS class?

Thanks,
  Paul


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux