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
hi! i noticed in a few places in your code, your functions and variables are not made static, so the scope is extern.
this does have an effect of the codegen and subsequently binary size and performance.
examples are all of the cpu instructions and all global variables.
i was wrong in that example i sent, i thought it was odd that the codegen was different for arrays. because the variable was static and never written to, the compiler almost entirely optimised out the array access in array_read2. here is a fixed version https://godbolt.org/z/EnYzYja7a
i still feel its worth limiting the scope for global variables. especially functions :)
hi! i noticed in a few places in your code, your functions and variables are not made static, so the scope is extern.
this does have an effect of the codegen and subsequently binary size and performance.
examples are all of the cpu instructions and all global variables.
here's an example of what i mean https://godbolt.org/z/bvPYdooYv
The text was updated successfully, but these errors were encountered: