Re: Why does gcc produce an unnecessary `nop' instruction?

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

 



Hi PRC,

> Is there a particular good reason for 8-byte alignment, even if the target
ARCH is 32-bit rather than 64-bit and aligment is quite a little waste of
storage and runtime memory?

Perhaps your platform supports 64-bit floating point, and that entails
alignment requirements?

Sometimes the "requirements" are performance related (e.g. Intel), sometimes
they avoid SIGBUS but can be "faked" with a sigtrap to handle misalignment
(such as what could be done on the DEC Alpha), sometimes they are really
hard requirements such as MMX/SSE or AltiVec.

Hard to say without looking at the config file for your particular platform.

Sincerely,
--Eljay


[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