7.7.1.2 Optimization

  • -fpack-struct

    Without a value specified, pack all structure members together without holes. When a value is specified (which must be a small power of two), pack structure members according to this value, representing the maximum alignment (that is, objects with default alignment requirements bigger than this will be output potentially unaligned at the next fitting location).

  • -fshort-enums

    Allocate to an enum type only as many bytes as it needs for the declared range of possible values. Specifically, the enum type will be equivalent to the smallest integer type, with enough room.

  • -mshort-calls

    Use rjmp/rcall (limited range) on > 8K devices.