Hacker News new | ask | show | jobs
by nona42 1060 days 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.

1 comments

Does 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...
It 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.

For 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.
I 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?