[Scummvm-devel] ScummVM 0.10.0 tagged with tools
Lars Persson
larspp at hotmail.com
Sun Jul 1 16:20:47 CEST 2007
Hi!
>From: "John Willis" <John.Willis at Distant-earth.com>
>To: "'Max Horn'" <max at quendi.de>,<scummvm-devel at lists.sourceforge.net>
>Subject: Re: [Scummvm-devel] ScummVM 0.10.0 tagged with tools
>Date: Sat, 30 Jun 2007 15:52:20 +0100
>
>Hi Max,
>
> >Just to get this straight: Is there a workaround for this? That is,
> >does using __attribute__((packed)) solve the problem? Does one have
> >to remove the #pragma pack statements in addition? Or what?
>
>The current SVN codebase requires no modifications at all to build and run
>successfully on the GP2X or WinCE/GCC/ARM (or any ARM GCC target, DS, GP32
>etc.) without any alignment issues as long as the compiler is a recent
>GCC4.* (or any 3.*) or has the following patch applied to it if an early
>GCC
>4.*.
>
> http://gcc.gnu.org/ml/gcc-patches/2006-10/msg01115.html
>
>I hear there may by alignment issues with Symbian ports but I do not know
>the specifics (Lars, care to fill us in?).
Well, older Symbian versions are using a very old 2.95.3 version which does
n't really support the #pragma pack(1) properly. Newer versions of Symbian
OS (that means all later phone models) are using a 3.4.3 where #pragma
pack(1) works very nicely.
So I'm not sure if there is a working patch for 2.95.3, which could be
applied to the source I have, so it might be recompiled (but since my cygwin
environment is n't really working, its quite hard to do right now).
And upgrading the compiler for those old symbian is no picknick, since they
are using their own little format eventhough the compiler is standard.
>
>I don't believe we build Symbian on GCC, if we do then the above patch
>would
>most lightly be appropriate there also. If not we may have to think of
>longer term workarounds.
>
> >Or do we have to completely get rid of the assumption that one can
> >pack structs, and replace this with different code?
>
>I think it is a valid assumption. The only problems with this assumption
>are
>lightly to be compiler issues and frankly there is no shortage of other
>applications that would fall foul of the same compiler bugs.
>
>As for another approach or code changes, that's the core code, I am just a
>porter ;).
As for me, it would be nice to be able to support the old platforms, but
really no must. And if its possible, I can make a special buid or two when
it works.
>
>Cheers,
>
>John
>
best regards
Lars
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
More information about the Scummvm-devel
mailing list