[fpc-devel] FPC ARM7 problems
Sven Barth
pascaldragon at googlemail.com
Thu Aug 7 14:54:43 CEST 2014
Am 07.08.2014 14:09 schrieb "Sergio Flores" <relfos at gmail.com>:
>
> I have a somehow big pascal game (more than 200k lines of code) that I'm
developing with FPC.
> Right now I found a strange crashing bug that only happened in iOS,
running in the device (in the iOS simulator does not crash). Desktop
platforms don't have any problems running the same code (Windows, Linux
etc).
> In Android I'm not sure, because while it does not crash in my devices,
in many players devices the game just crashes in that exact spot.
>
> So I have some questions.
>
> 1 - This bug only happens with -O2 on, but with optimizations off the
game does not crash. I always thought that using optimizations was safe.
Can there be a compiler bug in the ARM7 codegen?
> Lately I've been shipping the game without optimizations, but of course,
this means less performance.
> I thought that the bug could be caused by differences in memory
allocations on those different OSes, but I'm not sure.
> Anyone has a clue how to discover the difference between O2 and O- that
could cause such problems?
It can indeed be that there is a bug in the optimizer. Does it also happen
with -O1? Does it also happen when you switch on single optimizations
(-OoSpecificOptimization)? AFAIR a list of available optimizations can be
queried by "fpc -Parm -i" (among other information).
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20140807/4c9235f9/attachment.html>
More information about the fpc-devel
mailing list