3 ms·
For Armv8.M and MVE, I expect that Clang and Arm Compiler for Embedded, which is Clang/LLVM based, generates much better code than GCC or IAR. Regarding code s
by nona42 3y ago
For Armv8.M and MVE, I expect that Clang and Arm Compiler for Embedded, which is Clang/LLVM based, generates much better code than GCC or IAR.
Regarding code size: the common pitfall is -Os for GCC and -Oz for Clang based compilers to optimise for minimum code size.
- cozzyd 3y agoDoes the Arm Compiler for Embedded have significant changes to upstream clang? I'm somewhat concerned that clang not being GPL may eventually become unfortunate for embedded...
- pjmlp 3y agoIt isn't as if Sony and Nintendo are contributing all their changes to upstream. For example any improvements that may reveal NDA stuff from their consoles never gets upstream.
- nona42 3y agoFor games, most performance critical code probably does not run on the CPU but on the GPU. I believe they use pretty standard open source CPU compilers and Sony e.g. do contribute to LLVM.
- pjmlp 3y agoI didn't said they don't contribute at all, rather "any improvements that may reveal NDA stuff from their consoles never gets upstream." How do you think shader code gets compiled into GPGPU machine code?