Skip to content

Structure alignment !=4 bytes #38

Closed
@arjanmels

Description

@arjanmels

When creating structures with u8 or u16 members, these are not aligned to 4 byte boundaries.

This leads to alignment exceptions when they are stored in Flash or IRAM.

I am not certain if it can be changed via the data-layout in the rust compiler or if it needs to be addressed in llvm.

Alternative is to implemented the alignment exception handler. However this will be slow.

@MabezDev, @andreisfr Any thoughts on this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions