This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

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>
$define VALUE 5

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

0