Forum : 8051
Post Information | Post |
---|---|
February 5, 2007 - 12:45pm
|
Hello, this is the compiler's output. NAME CLASS MSPACE TYPE OFFSET SIZE ONE. . . . . . . . . . . . . . . . . . E_CONST ----- INT ----- 2 |
No, this declaration does not allocate anything (only variables declaration will consume memory).
Moreover, the official type size is int, but any variable declared of this type will be considered as a single byte (because of the pragma). You can easily check it by looking at the total code of your project (that does not change if you comment out this line).
On the other hand, you are right that we could remove these declarations from the table of the listing.
Francis