Changes

Jump to: navigation, search

SDCC and CPC

603 bytes added, 10:10, 13 March 2015
This is a article about using [[SDCC ]] to produce SDCC binaries on the CPC
The artice was written in 2003 by [[Hans Hansen]].
void main(void)
{
printf(“C "C on Amstrad”Amstrad");
}
</pre>
</pre>
== Troubleshooting and optimisation ==Because of defined parameter-passing between Assembler and C, many people used the sdcc-parameter --oldralloc in the past. But when your project gets too big, you will run into a fatal error saying Caught signal 11: SIGSEGV. You can use the new register-allocator with parameter --fno-omit-frame-pointer to prevent this problem.  Optimisation:Keep in mind that your code shrinks quite well when using sdcc-parameter --max-allocs-per-node xyz. For xyz choose a high value, eg. 6000.Also the parameters --opt-code-speed and --opt-code-size exist. [[Category:C]] [[Category:Programming]]
56
edits