180 likes | 353 Views
OMNISCIENT CODE GENERATION TM a whole-program compilation technology for superior code density and performance. Introduction. Migration Quickly port code from other compilers Integration Easily fit into the PSoC Designer™ framework Simplification Write simple, portable ANSI source code
E N D
OMNISCIENT CODE GENERATIONTM a whole-program compilation technology for superior code density and performance
Introduction • Migration Quickly port code from other compilers • Integration Easily fit into the PSoC Designer™ framework • Simplification Write simple, portable ANSI source code • Satisfaction Advanced features help to complete projects sooner
Simplification • Compiler features Omniscient Code Generation™ (OCG) A whole-program compilation technology • Extracts information from all modules simultaneously Function call graph Pointer reference graph
Simplification • Allows for simpler coding without sacrificing quality of generated code Eliminates non-standard qualifiers & options Optimizes pointer variables Less context-switching overhead Customizes the functionality of printf routine
Simplification • Allows for inclusion of assembly code, if required Account for memory usage of assembly code Preserves C objects only used in assembly code
Satisfaction • Many additional features allow you to complete your project faster 24-bit integer types 24-bit floating-point types Use of MAC instructions If two available, used in main-line and interrupt code Bit (boolean) variables
Satisfaction • Bootloader available Written in C code Smaller than previous assembly versions USB and serial Is independent of application
Satisfaction • Denser code better performance
Migration • Compiler is ANSI compliant Makes writing and porting code much easier • Compiler is compatible with code written for Imagecraft compiler C and assembly level Supports Imagecraft pragmas Supports assembly-level directives
Integration • Easy Installation Install PSoC Designer Install HI-TECH compiler This will download and install Service Pack 2 Will enable compiler in PSoC Designer
Integration • Easy Integration into PSoC Designer • From Project | Settings select C compiler: HI-TECH
Integration • Use PSoC Device Editor as usual to create your program: #include <m8c.h> // part specific data #include "PSoCAPI.h" // PSoC API definitions void main() { LED_1_Start(); LED_1_Switch(1); // Turn on LED while(1) { LED_1_Invert(); // Flash LED } }
Satisfaction • Available in Lite mode
Satisfaction • Lite mode features: Free download No memory restrictions Supports all devices Never expires OCG disabled Integrated with PSoC Express
Conclusion • A painless transition • Works with the tools you know • Simplify writing your code • Get outstanding results sooner
OMNISCIENT CODE GENERATIONTM a whole-program compilation technology for superior code density and performance PSoC and the Cypress logo are registered trademarks of Cypress Semiconductor Corp.PSoC Designer and PSoC Express are trademark of Cypress Semiconductor Corp.