AN60486 shows you how to optimize PSoC 1 C code to be faster and smaller and covers PSoC Designer project and ImageCraft compiler settings that help you to do so. In addition, it offers several guidelines for efficient coding. This application note assumes that you are familiar with PSoC 1, the PSoC Designer Integrated Design Environment (IDE), and programming in C.
The focus of the application note is on features specific to the ImageCraft compiler that can be modified to optimize code. General code optimization techniques for C language are only handled briefly in this application note.
This application note is for PSoC 1 M8C CPU.
For PSoC 3 8051 CPU, please see AN60630 - PSoC® 3 - 8051 Code Optimization
For PSoC 5 ARM Cortex-M3 CPU, please see ARM Documentation
Example Project |
Supported H/W and S/W | Supported PSoC1 Devices | |||||||||
PSoC Designer Version | H/W Kit | CY8C20xxx | CY8C21xxx | CY8C22xxx | CY8C23xxx | CY8C24xxx | CY8C27xxx | CY8C28xxx | CY8C29xxx | ||
No | 5.4 | N/A | x | x23, x34, x45 | x45 | x33 | x23A, x94 | x43 | x | x66 |