[NO REPLY] Variables and fields storage order

A place of insane ideas, nothing to see here.
User avatar
Site Admin
Posts: 14462
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1078 times
Been thanked: 922 times

[NO REPLY] Variables and fields storage order

Postby Giovanni » Sun Dec 10, 2017 6:42 pm

Two new attributes are introduced:

  • lohi - Enforces a low endian alignment in memory.
  • hilo - Enforces a high endian alignment in memory.

The compiler generates code for those variables or fields that are not of the same endianness of the target architecture.

Code: Select all

lohi uint32_t var = (uint32_t)5;


Return to “Safer C”

Who is online

Users browsing this forum: No registered users and 1 guest