This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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: Language extensions ?


>>>>> "Robin" == Robin Garner <robin dot garner at iname dot com> writes:

Robin> How does gcc do alignment on architectures like Intel ?

The basic rule, as I understand it, is that a field is aligned to its
natural alignment, which is most cases is its size.  (This varies for
some types on some platforms; for full documentation I think you have
to refer to the back end on a case-by-case basis.)

At runtime the GC aligns objects on an 8-byte boundary.  This fact is
exploited in libgcj.

Tom


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