I’m currently working on an embedded device application (in C). What optimization flag should I use for compiling that application keeping in mind that it only has 96 MB of RAM.
Also, please note that in this application, I’m basically pre-processing the JPEG image. So which optimization flag should I use ?
Also, does stripping this app will have any effect on efficiency and speed ?
The OS on which I’m running this app is Linux 2.6.37.
-Osis preferable. Not only are there RAM limits, but the CPU’s cache size is limited as well, so-Oscode can be faster executed in despite of using less optimization techniques.