same constant in assembler and C

I have a product where most is in C, but for speed reasons abt 2% is in assembler. A few constants are thus defined in 2 places

<constants.h>
#define VALUE 5

<constants.inc>
VALUE EQU 5

This is a maintenance nightmare, is there a method to make a change of the value in one place suffice.

Parents Reply Children
More questions in this forum