C++ structure sizes with long long ints under Darwin,
Kevin.Hendricks
kevin.hendricks@sympatico.ca
Fri Feb 14 16:16:00 GMT 2003
Hi,
Is there anyone here that might be able to look at this issue that
deals with a
strange size of C++ structure under Darwin in gcc 3.3 that was
originally posted
to gcc.
http://gcc.gnu.org/ml/gcc/2003-02/msg00353.html
It includes a testcase that can be compiled. The size of a C++
structure
with long long ints seems to be 4 bytes too big when compared to the
same
structure when a double replacing the long long int and compared to
what is
expected.
It also does not match the results of gcc 2.95 under Apple or Apples'
gcc 3.1 with
and without -malign-natural.
Even a hint of where in the code to look to adjust things would be
appreciated.
Thanks for your consideration
Kevin
----
Kevin B. Hendricks
Associate Professor of Operations and Information Technology
Richard Ivey School of Business, University of Western Ontario
London Ontario, CANADA N6A 3K7
khendricks@ivey.uwo.ca
More information about the Libstdc++
mailing list