Size of C++ functions too big

Technical questions regarding the XTC tools and programming with XMOS.
User avatar
akp
XCore Expert
Posts: 578
Joined: Thu Nov 26, 2015 11:47 pm

Post by akp »

robertxmos wrote:Hi Bambus
I would also recommend building with -Os in general.
The -O3 flag also turns on -mdual-issue which does not do a good job at present, hence will fill the slots with too many nops.
I have never heard this piece of advice. Which version of the tools does this apply to? I think with the 14.3 tools the -mdual-issue isn't enabled by default by -O3.


robertxmos
XCore Addict
Posts: 169
Joined: Fri Oct 23, 2015 10:23 am

Post by robertxmos »

xcc1llvm test.xc -O3 -march=xs2a
xcc2clang test.c -O3 -march=xs2a -S -o -
and you will see ".issue_mode dual"

xcc1llvm test.xc -Os -march=xs2a
xcc2clang test.c -Os -march=xs2a -S -o -
and you will see ".issue_mode single"

It was discussed turning dual issue off for -O2 or even by default - but it remains on for both.
Post Reply