Fix arrays to store their primitive elements contiguously. #737
Labels
compiler: codegen
Everything to do with IR->ASM, register allocation, etc.
compiler
General compiler. Should eventually become more specific as the issue is triaged
enhancement
New feature or request
At the moment all types smaller than 64 bits are cast up to 64 bit values in the ASM generation, so they fit in a register nicely, and work easily with
lw
andsw
. This is also true for arrays, so an array ofbyte
s is actually converted to an array ofu64
. This is both wasteful and unexpected, from a developer point of view.The text was updated successfully, but these errors were encountered: