electroRF
Member
Hi,
I have a basic compiler question, which actually might be a pre-processor question.
Please see the following simple code:
Will the AREA Define be computed at Compiling time, or at run time?
meaning, will the embedded processor compute by itself the 20*50, or will it be done at compilation?
Thanks.
I have a basic compiler question, which actually might be a pre-processor question.
Please see the following simple code:
C:
#define LEN 50
#define WID 20
#define AREA LEN * WID
int TotalArea(int num)
{
int retTotalArea = num * AREA;
return retTotalArea;
}
Will the AREA Define be computed at Compiling time, or at run time?
meaning, will the embedded processor compute by itself the 20*50, or will it be done at compilation?
Thanks.