gccint: Target Macros

1 
1 18 Target Description Macros and Functions
1 ******************************************
1 
1 In addition to the file 'MACHINE.md', a machine description includes a C
1 header file conventionally given the name 'MACHINE.h' and a C source
1 file named 'MACHINE.c'.  The header file defines numerous macros that
1 convey the information about the target machine that does not fit into
1 the scheme of the '.md' file.  The file 'tm.h' should be a link to
1 'MACHINE.h'.  The header file 'config.h' includes 'tm.h' and most
1 compiler source files include 'config.h'.  The source file defines a
1 variable 'targetm', which is a structure containing pointers to
1 functions and data relating to the target machine.  'MACHINE.c' should
1 also contain their definitions, if they are not defined elsewhere in
1 GCC, and other functions called through the macros defined in the '.h'
1 file.
1 

Menu