This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS编程



请问一下使用CCS软件C语言编程时,宏定义的一些常数表达式,编译器是会先计算出常数表达式的结果吗?还是只是简单的替换。

例如:

#define   A   2

#define   B   A * 2

var1 = B;    

编译器是否会提前计算出B的值再赋值给var1?

多谢!