The following link will help you.
If you are using PSoC 1 and PSoC Designer we have an appnote which might help you. Link provided below:
Please note that standard Embedded C language is supported for programming PSoC.
Also refer our code examples (present in the PSoC Creator itself) to understand the semantics of the program.
For PSoC 4 we have firmware optimisation appnote which might help you.