Next: , Previous: interrupt, Up: Attributes


3.4 stackext

This attribute makes ‘GCC’ generate stack extension code for the function for which it was used (see -mstackextend). This makes it possible to use stack extension selectively, only for the “dangerous” functions — recursive functions, functions with large local variables, etc.

Note: For compatibility with other AmigaOS ‘C’ compilers, a preprocessor symbol ‘__stackext’ is available, which expands to __attribute__((stackext)) (see Keyword macros).

The ‘stackext’ attribute is mutually exclusive with the ‘interrupt’ attribute (see interrupt).

This attribute is not necessary in function declarations (prototypes).

This attribute was first made available in the ‘GCC’ 2.7.2.1, ‘Geek Gadgets’ snapshot ‘961012’.