Home » Developing U++ » U++ Developers corner » Rapsberry PI - cpu dilemma
|
Re: Rapsberry PI - cpu dilemma [message #53845 is a reply to message #53840] |
Sat, 09 May 2020 06:11 |
Novo
Messages: 1377 Registered: December 2006
|
Ultimate Contributor |
|
|
IMHO,
1) create CLANG method for armv7 and CLANG_armv6 for backward compatibility (maximum performance)
2) cross-compilation for Pi (nobody really wants to compile on Pi itself)
3) optimize code for small platform the way game developers do that (no exceptions, no RTTI). There is plenty of other stuff which can be optimized.
Basically, game developers have been doing this for decades. Just follow their steps ...
Regards,
Novo
[Updated on: Sat, 09 May 2020 06:14] Report message to a moderator
|
|
|
|
Re: Rapsberry PI - cpu dilemma [message #53847 is a reply to message #53846] |
Sat, 09 May 2020 07:08 |
Novo
Messages: 1377 Registered: December 2006
|
Ultimate Contributor |
|
|
amrein wrote on Sat, 09 May 2020 00:29
We don't do this for amd, amd rizen of intel, so why bother?
Do you mean why somebody wants to compile code without exception support?
For the same reason why Sony removed exception support from Clang for their PlayStation 4, which is based on amd rizen.
Exception support is a complicated thing, especially on 32-bit platforms.
World of small devices is very different from regular PCs. People do care about instruction cache misses there.
Regards,
Novo
|
|
|
|
|
|
|
Re: Rapsberry PI - cpu dilemma [message #53857 is a reply to message #53848] |
Sat, 09 May 2020 17:25 |
Novo
Messages: 1377 Registered: December 2006
|
Ultimate Contributor |
|
|
amrein wrote on Sat, 09 May 2020 01:32What I mean is: we don't need to bother because if a developer needs to (say, he wants to gain 1 ms on his embedded application for x reasons), he will find his way himself.
We don't need to do anything.
It is not just "1 ms". All these optimizations are about running code several times faster and using several times less memory.
Compiler is not a magic wand. -O3 enables almost all optimizations, but you still need to tell your compiler in the code that a particular data structure is moveable ...
The same story is with aliasing ...
Regards,
Novo
|
|
|
|
|
Goto Forum:
Current Time: Tue Dec 03 00:31:51 CET 2024
Total time taken to generate the page: 0.02238 seconds
|