Alignment for #load_directory data #6318
leecommamichael
started this conversation in
Proposals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For
#load, I think we can influence alignment by specifying a type for the variable, but I'm using#load_directory.I'm sending the data from a
#load_directoryfile into a third-party SDK which interprets the bytes as[]i16, and it's completely hostile (emits an error) to unaligned loads. I tossed a little patch in the backend to just align such data to 16 bytes (overkill) as part of a rough test, and my issue resolved.Perhaps the natural alignment of the register-size/pointer-size could be a decent default alignment for loaded directory data? I guess I suggest that since:
Beta Was this translation helpful? Give feedback.
All reactions