Compiler Question

Status
Not open for further replies.

electroRF

Member
Hi,

Say that I write a define:
C:
#define BUFFER_SIZE  ((2255 >> 3) << 3)

Will the compiler calculate the result in compiling stage?

Or will it be calculated in run-time, every time I'll use it?

Thank you.
 
The line above will assign a constant to BUFFER_SIZE at compile time..

As a side note!! The above statement will clip the memory assignment to 2248...
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…