Sharing Header Files in C and Assembly

Texas Instruments

Published Date: 06/01/1997

Description

Sometimes it is useful to be able to define named constants that can be used in both C and assembly language. One method is to have separate header files that define the same symbols: a C include file with #define directives and an assembler include file with .set or .asg directives. The procedure shown in this document produces a single shared header file that defines the symbols once f