electroRF Member May 29, 2014 #1 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.
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.
Ian Rogers User Extraordinaire Forum Supporter Most Helpful Member May 29, 2014 #2 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...
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...