#Small code
10-Dec-87 21:17:24
Sb: #97641-#Small code
Fm: Glenn Nielsen 75115,444
To: Paul Montgomery 71500,3525
Paul, The section on WorkBench discusses application startup and has an
example of a startup module. I also recommend looking at the Assembly source
for the startup module you are interested in. Ok, I hadn't seen the excerpt
from the Amigan on the Lattice disk. There are some good pointers there for
reducing code size. I'm not familiar with Manx or Mod II, so no comment.
As far as taking one small program and tweaking it down to get the smallest
code, I don't feel that would give results that would be useable. What methods
you use to reduce code size will be dependent on the program itself. Such
things as program size, function calls used, etc, will determine what methods
are effective to reduce the size of that program. There isn't just one method
that will always work for reducing code size and increasing speed. If there
were, the compilers would be optimized to always use those means.
I don't mean to sound negative, but it really is something that is
individual and unique for each program and programmer.
Of course, if you have the time, you could write it all in assembly, fresh
and new each time, and have the fastest and smallest programs.
<Glenn