Re: alignment on powerpc
Etienne Gagnon <[email protected]> Wed, 03 May 2006 06:56:10 -0400
| Newsgroups | gmane.comp.java.vm.sablevm.devel |
|---|---|
| Message-ID | <[email protected]> |
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--===============0448077171==
Content-Type: multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature";
boundary="------------enigBD33C1326B7A8632871257B5"
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigBD33C1326B7A8632871257B5
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
The program you copied is not the same as the one in system.h. Can you
run the program in system.h, first?
Etienne
Chris Pickett wrote:
> If I run the (slightly modified) program following this message from
> libsablevm/system.h on a 32-bit iBook under Mac OS X with gcc 3.3, I get
> "alignment = 4" printed out. Yet we have
>...
> #include <stdio.h>
>
> struct {
> char c;
> int v;
> } a;
>
> int
> main (int argc, char *argv[])
> {
> printf ("alignment = %u\n",
> (unsigned int) (((char *) &a.v) - ((char *) &a)));
> return 0;
> }
--
Etienne M. Gagnon, Ph.D. http://www.info2.uqam.ca/~egagnon/
SableVM: http://www.sablevm.org/
SableCC: http://www.sablecc.org/
--------------enigBD33C1326B7A8632871257B5
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFEWIxKjyrJi4rH84gRAqxZAJ9gRNqAPOrwEvJIUofkfrfVSiwqaACeKqcK
TFRL+AiyBQwaKxf0buwgQpQ=
=je+o
-----END PGP SIGNATURE-----
--------------enigBD33C1326B7A8632871257B5--
--===============0448077171==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
SableVM-devel mailing list
[email protected]
http://sablevm.org/lists/control/listinfo/sablevm-devel
--===============0448077171==--