You copied the Doc URL to your clipboard.

Relevance of natural data alignment at compile time

Data alignment becomes relevant when the compiler allocates memory locations to variables.

For example, in the following structure, a three-byte gap is required between bmem and cmem.

struct example_st {
  int amem;
  char bmem;
  int cmem;
Was this page helpful? Yes No