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: alignment of an array


ranjith kumar wrote:
Why gcc keeps int a[0] at aligned address??

Why shouldn't it? Unaligned accesses are slow on systems that support them. Others (SPARC for example) just raise SIGBUS.


--
Matthew
"A mouse is a device used to point at the xterm you want to type in."
  --Kim Alm, A.S.R.


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