[Interest] Compiler optimisation flags on Android
Nuno Santos
nunosantos at imaginando.pt
Tue May 3 19:00:07 CEST 2016
I mean -O2, like the others
Nuno Santos
Founder / CEO / CTO
www.imaginando.pt
+351 91 621 69 62
> On 03 May 2016, at 06:27, Thiago Macieira <thiago.macieira at intel.com> wrote:
>
> On segunda-feira, 2 de maio de 2016 22:07:03 PDT Nuno Santos wrote:
>> Hi,
>>
>> Below are the CFLAGS for Android
>> (Qt/5.6/android_armv7/mkspecs/android-g++/qmake.conf)
>>
>> I’m wondering why there are no optimisation settings for arm rather than
>> size. Is there any specific reason?
>
> Why should there be?
>
>> } else { # arm
>> QMAKE_CFLAGS_RELEASE = -Os -fomit-frame-pointer
>> -fno-strict-aliasing -finline-limit=64
>> QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO = -g -Os -fomit-frame-pointer
>> -fno-strict-aliasing -finline-limit=64
>> QMAKE_CFLAGS_DEBUG = -g -marm -O0 -fno-omit-frame-
>> pointer
>> equals(ANDROID_TARGET_ARCH, armeabi):if(equals(NDK_TOOLCHAIN_VERSION,
>> 4.8)|equals(NDK_TOOLCHAIN_VERSION, 4.9)) {
>> DEFINES += QT_OS_ANDROID_GCC_48_WORKAROUND
>> } else {
>> QMAKE_CFLAGS_RELEASE += -mthumb
>> QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -mthumb
>> }
>> }
>
> This section you pasted contradicts your statement. There are more
> optimisation flags besides -Os.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
> Software Architect - Intel Open Source Technology Center
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160503/d5926417/attachment.html>
More information about the Interest
mailing list