Question
Preprocessor Macro calculation
Hi, I have a question about preprocessor C. When I define macros like:
#define CON_A 10
#define CON_B 5.6
#define CON_C 20.896
#define MY_MACRO (((10* CON_A)/CON_C)*CON_B)The last one is precalculated by the compiler or is just plain replaced as it is in the generated binary file? Let me explain better, if there are complex operations (decimal multiplications or divisions, etc etc) are these performed by the microcontroller or a MY_MACRO pre-calculated constant is replaced in the binary file?