Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type-layout: be more specific about 32-bit alignments #1393

Merged
merged 1 commit into from
Apr 3, 2024

Commits on Aug 11, 2023

  1. type-layout: be more specific about 32-bit alignments

    The rust-reference implies that 64-bit types are aligned to 32-bit for
    platforms with 32-bit addresses. This is not necessarily correct. Fix
    the wording.
    
    Note that there is no general rule how data-types greater than the
    native address size are aligned. On most Unix'y systems, they use the
    native alignment of the platform. However, the Windows ABI aligns them
    to their size (up to at least 64-bit).
    
    There are advantages for either of those decisions. But we should at
    least make clear that there is no fixed rule for 32-bit platforms.
    
    Signed-off-by: David Rheinsberg <david@readahead.eu>
    dvdhrm committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    fdee104 View commit details
    Browse the repository at this point in the history