[Color Computer] [coco] Learning MW C

Robert Gault robert.gault at worldnet.att.net
Sun Aug 13 22:26:52 EDT 2006


C on the Coco is not likely to be faster than Basic09. For maximum 
speed, you would need to write your own assembly code. However, don't 
forget that you can speed up Basic09 in several ways. 1) Always use 
bytes or integers for variables unless reals are a necessity. 2) Always 
Pack your code and run with RunB rather than Basic09 for maximum speed.
3) Carefully review your Basic09 code for unneeded repetition. You will 
be pleasantly surprised how trimming your code can speed things up.
4) Precalculate as many variables as possible. This is critical if reals 
are being used.
5) If you have the Tandy documentation, review the Basic09 chapter 12, 
"Program Optimization". The above and more is stated for making programs 
run as fast as possible.



More information about the Coco mailing list