Question about -ansi flag, and different size of struct from C and C++
Ralf Corsepius
corsepiu at faw.uni-ulm.de
Mon Dec 15 14:42:18 UTC 2003
On Mon, 2003-12-15 at 15:18, Oleg Ivanov wrote:
> Thanks a lot!
>
> Yes, I also see #pragma warning: ignoring pragma: even if I compiling
> with or without -ansi flag.
> And another thing, I compile code under two targets Motorola 68360
> and 860.
> In one point compiler aligned all struct to 4, in other every struct
> member.
> That mean size of struct
> struct dummy {
> int var1;
> short var2;
> int var3;
> short var4;
> }
> on motorola 68360 will be 12 byte, and on 860 - 16 byte...
> Is it also target dependent ?
Yes, it is.
But what is your actual problem? Size (eg. allocating large arrays), or
IO?
Ralf
More information about the users
mailing list