The compiler is not able to reuse the value of pwm_count, but reloads it on every evaluation, if is stored in a static variable, as it cannot prove it will be unchanged. A variable with local scope may not be modified from the outside, so its value can be reused. Doing so reduces text size and instruction count. Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
61 KiB
61 KiB