Generally there is no conflict between optimising for size or optimising for speed, but there are some exceptions to this.
On occasions speed is more important than size, particularly in interrupts.
I am considering adding a flag
{$OPTI SPEED}
which would apply on a per routine basis, and a
{$OPTI SPEED_ALL}
which would apply globally.
This would disable those (few) optimisations which sacrifice speed for gains in size.
A related optimisation that I am considering is
{$OPTI SHORT_CIRCUIT_TESTS} which would force a short circuit of tests. As an example
if A and B and C(x) then
if A were false then B and C would not be tested. Similarly if B were FALSE then the function C would not be executed.
I would like to know if there is any desire for these features.
Please complete the poll to let me know.
If you do not want any of these, please let me know in comments
On occasions speed is more important than size, particularly in interrupts.
I am considering adding a flag
{$OPTI SPEED}
which would apply on a per routine basis, and a
{$OPTI SPEED_ALL}
which would apply globally.
This would disable those (few) optimisations which sacrifice speed for gains in size.
A related optimisation that I am considering is
{$OPTI SHORT_CIRCUIT_TESTS} which would force a short circuit of tests. As an example
if A and B and C(x) then
if A were false then B and C would not be tested. Similarly if B were FALSE then the function C would not be executed.
I would like to know if there is any desire for these features.
Please complete the poll to let me know.
If you do not want any of these, please let me know in comments