[Interest] Compiler optimisation flags on Android

Konstantin Tokarev annulen at yandex.ru
Tue May 3 19:23:45 CEST 2016



03.05.2016, 20:14, "Nuno Santos" <nunosantos at imaginando.pt>:
> Because, from my experience with the code compiled for Intel, putting -O3 made a huge difference on the processing code of my audio app. But the same might not be valid for arm. That’s why I’m asking.

Note that embedded CPUs usually have small caches, so larger code size might outweigh performed optimizations.

>
> I’m trying to squeeze the most of the C++ code performance on Android.
>
>>  On 03 May 2016, at 18:05, Thiago Macieira <thiago.macieira at intel.com> wrote:
>>
>>  Em terça-feira, 3 de maio de 2016, às 18:00:07 PDT, Nuno Santos escreveu:
>>>  I mean -O2, like the others
>>
>>  You didn't answer why you think that it's important to use -O2 instead of -Os.
>>
>>  The reason why it's using -Os instead of -O2 was probably because the
>>  maintainers of the Android port thought that optimising for size was
>>  important, for some reason, on ARM (see also the use of Thumb). That way,
>>  binaries would be smaller.
>>
>>  --
>>  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
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

-- 
Regards,
Konstantin



More information about the Interest mailing list