Code Optimization Tips for ARM-based PSoC Devices | Cypress Semiconductor
Code Optimization Tips for ARM-based PSoC Devices
I ve been writing about memory optimization for a few weeks now, both here and on the Embedded Blog of the ARM Connected Community. In all those posts I (hopefully) provide a useful tidbit of information but it s not a forum for all the details, options and consequences of a given technique.
Some colleagues of mine published an Application Note discussing PSoC 4 and PSoC 5LP ARM Cortex Code Optimization and it is a fantastic resource for engineers looking to become proficient at writing embedded application on ARM devices, like PSoC.
Unlike my posts it covers performance optimization as well as code size concerns. It explains some good coding habits that ensure you get the results you want and really delves into the linker script options for both GNU compilers and the ARM MDK.
PSoC 5LP users should particularly benefit from the sections on bit-banding (which is only available on Cortex-M3) and Cypress DMA. There is also a great section on embedding assembler instructions and using compiler intrinsic for things like the Cortex-M3 saturation functions.
I could go on and on. I ve been in embedded software for more years than I care to admit, and this document definitely clarified a couple of things for me. I highly recommend giving it a read. And keep it handy as a reference for when you need to get a little more from your toolchain.
[re-posted from ARM Connected Community]