Maximum executable size on the iPhone?
Posted
by Sirp
on Stack Overflow
See other posts from Stack Overflow
or by Sirp
Published on 2010-03-13T18:29:14Z
Indexed on
2010/03/13
18:35 UTC
Read the original article
Hit count: 229
iphone
Is there a maximum size of executables or executables + shared objects on the iPhone? I've been developing an app that has been crashing on startup or early in execution with SIGSYS. Removing code from the program has helped, though structuring data so the code is simply not executed does not.
This could be memory corruption, of some kind, however when I compiled with -Os rather than -O2 or -O3 the size of my executable goes down from 5.15MB to 3.60MB and the application runs perfectly. I also have a bunch of libraries I use, of course.
I'm wondering, is there a limit on the size of executable code on the iPhone? Or am I just 'getting lucky' and masking memory corruption when I use -Os?
© Stack Overflow or respective owner