Language extensions ?
Tom Tromey
tromey@redhat.com
Thu Mar 27 07:21:00 GMT 2003
>>>>> "Robin" == Robin Garner <robin.garner@iname.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
More information about the Java
mailing list