You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we could get rid of the ; after block0: in cases where there's no declaration immediately after the label
we can remove labels that are not referred to by any goto (block0 in this case)
we can remove unconditional jumps on labels that are going to be executed even without the jump (when the C code immediately follows the jump) (not in this code)
The text was updated successfully, but these errors were encountered:
(Just tracking the ideas for the future...)
This code has several issues that we could remove:
the comments at the beginning of the program are not needed if nothing is generated for them
Set the signess of a variable in declaration if it is always used with a sign. #26 (var2 and var3)
Functions with no arguments should have void keyword specified #25 (the main function)
we could get rid of the
;
afterblock0:
in cases where there's no declaration immediately after the labelwe can remove labels that are not referred to by any goto (
block0
in this case)we can remove unconditional jumps on labels that are going to be executed even without the jump (when the C code immediately follows the jump) (not in this code)
The text was updated successfully, but these errors were encountered: