Menu

#482 using volatile variables in switch() statements generate shorter code

open
nobody
None
5
2016-01-17
2016-01-17
No

for most ports using volatile variables as argument to switch() results in shorter code (e.g. 43 bytes instead of 50 bytes for mcs51 and 5 cases with the attached code).
It would be nice if for non-volatile variables the argument would be loaded into register(s) as well.

1 Attachments

Discussion


Log in to post a comment.