[NO REPLY] Variables and fields storage order

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

[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;


Giovanni

Return to “Safer C”

Who is online

Users browsing this forum: No registered users and 4 guests