|
|
Darren New wrote:
> ... and if the application writer understands not only the application
> but also the machine details, and if the application is not signficantly
> larger than the compiler ...
When I did assembler, I usually had my C compiler generate an assembler
listing. I could then pick through the assembly code, and eliminate
instructions that didn't add value to the function, or replace them with
shorter or quicker sets of instructions that accomplished the same
thing. Maybe my compiler sucked, but I could often reduce a function by
50% in both size and execution time by whacking code that compilers need
to put in, but which isn't really required by the algorithm.
I generally did this only for sections of code that got executed a lot
in a given period of time; otherwise it wasn't worth it.
Regards,
John
Post a reply to this message
|
|