Previous: Options information, Up: Defines

4.3 “Keyword” macros

Most AmigaOS-specific ‘C’ compilers have special “custom keywords”, which make the AmigaOS-specific development easier. Unfortunately, the idea of “custom keywords” is not available in ‘GCC’. However, ‘attributes’ are available, and they provide virtually identical functionality. For compatibility with other AmigaOS ‘C’ compilers, preprocessor symbols are provided, which expand to the appropriate ‘attributes’ (see Attributes).

See chip.
See saveds.
See interrupt.
See stackext.
See regparm.
See stkparm.
This expands to the standard ‘GCC’ ‘__attribute__((aligned(4)))’.
Note: With ‘SAS/C’, these keywords may be specified either before or after the type, so the following declaration is correct:
     __saveds void func(void);

Unfortunately, the syntax rules of ‘GCC’ do not allow to specify the attributes before the type, so the above example must be changed to:

     void __saveds func(void);

This will be fixed in ‘GCC’ 2.8.0.