some question about macro define

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

some question about macro define

595 Views
100asong
Contributor I

1.For example,"#define Days 365 " macro definition sentence can been defined in code area and ram area?

2.There are some difference about these 2 area?

Labels (1)
0 Kudos
1 Reply

280 Views
CrasyCat
Specialist III

Hello

 

I am not sure I understand the question here.

 

The statement ,"#define Days 365" is basically a macro definition.

The pre-processor will basically replace all occurrence of Days by 365 at the very beginning of the build process.

 

As such a macro does not occupy any space in either ROM or RAM.

 

CrasyCat

0 Kudos