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]

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


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]