lf-lang / reactor-uc

A lightweight reactor runtime targeted at resource-constrained embedded systems
BSD 2-Clause "Simplified" License
2 stars 2 forks source link

Compiler warnings/errors on alignment of structs #25

Open erlingrj opened 4 weeks ago

erlingrj commented 4 weeks ago

When compiling for embedded (RIOT and Zephyr), the compilers complain about our casting from one pointer type to another. This was solved by adding __attribute__(aligned(32)) on some of the structs. This wastes memory and I believe it should not be necessary. But this should be explored further