This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: float, int length varies inside struct ???
Mike Albaugh wrote:
> Two words: Compiler Upgrade.
>
> If you _ever_ have to re-compile your application,
> you may get into a world of hurt. Assuming you
> will never have to re-compile is assuming that
> you will never have to fix a bug in your application,
> or that when you do, you will still be able to
> run the old version of your compiler, link with
> the old libraries, etc.
>
> <snip another dozen unlikely scenarios>
What on earth are you talking about? If I set up a network packet structure
to be 1-byte-aligned in the old compiler version, then I can set it up the
same way in the new version. Ditto 4-byte, 8-byte, or whatever. If for
some odd reason there were *still* problems interoperating between versions
produced by an older compiler and a newer one, I am in a position to force
everybody to upgrade.
I write vertical apps for very small sets of customers. Judging by the web
site at www.agames.com, you are in a completely different racket where you
could *not* force everybody to upgrade. Okay, fair enough. The point is,
just because it wouldn't work for you doesn't mean it wouldn't work for
anybody else.