-
Notifications
You must be signed in to change notification settings - Fork 60
Closed
Description
@chorman0773 brings up the issue of platforms where pointers have "strange" sizes, such as 3 bytes.
if Rust wants to support such platforms, interesting questions arise:
- Is
size_of::<*const ()> == 3? That seems like the most obvious choice, but @chorman0773's comment indicates C makes the size 4 and the highest byte is somehow "dead". Not sure why a size of 4 would be reasonable though, if there are only 3 bytes of data. - Is
usizea magicu24, or is itu32and usize-to-ptr casts truncate, or something else?
I am probably also missing some aspects of this due to a lack of familiarity with such platforms. :)
This seems somewhat related to #29 in that it is about "strange platforms".
elichai and myclevorname
Metadata
Metadata
Assignees
Labels
No labels