Illegal C in kaffe 1.0.b3
Alexandre Oliva
oliva at dcc.unicamp.br
Wed Jan 6 20:41:50 PST 1999
On Jan 6, 1999, Godmar Back <gback at cs.utah.edu> wrote:
> Pere,
> The second problem with stdlib.h should be fixed in the current snapshot.
> If you have to compile with the native compiler, the proper fix for the first
> one would be something like
> #ifdef __GNUC__
> double align[0];
> #elif SOME_CONSTANT_DEFINED_BY_IRIX_NATIVE_C_COMPILER
> #pragma_or_other_magic_to TELL_IRIX_TO_ALIGN_TO_A_DOUBLE_WORD_BOUNDARY
> #else
> #error If you don't use gcc, tell me how to double word align.
> #endif
> Do you know what SOME_CONSTANT_DEFINED_BY_IRIX_NATIVE_C_COMPILER and
> TELL_IRIX_TO_ALIGN_TO_A_DOUBLE_WORD_BOUNDARY could be?
> Also, I don't know off-hand if the alignment is needed in all cases---
> it may not be needed for the interpreter; so in this case it would actually
> be okay for you to omit the double altogether instead of wasting 8 bytes.
How about declaring length within a union of an int and a double?
This should probably take care of the alignment?
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Universidade Estadual de Campinas, SP, Brasil
More information about the kaffe
mailing list