??? 05/18/12 12:58 Read: times |
#187414 - Have you read my original post? Responding to: ???'s previous message |
But did you read my original post - because Eriks anwer is only partial.
And you ask new questions that has specifically been answered in my original post - for example difference between Data and BSS. "Data = constants sometimes" Yes - sometimes constants are stored in Data. Sometimes in Text. But besides that, global variables with initial value are stored in Data. And BSS is global variables without initial values. And function-local or file-local static variables are stored in either Data or BSS depending on if they have an initial value. Unless they are read-only, in which case they may be stored in Text. And there isn't really any "usually" about dynamic memory on the heap. The heap does store dynamically allocated variables. But sometimes, programs use different constructs so they don't use any heap but create their own schemes for dynamically allocated variables. |
Topic | Author | Date |
Memory Organization | 01/01/70 00:00 | |
Tried any good C book lately? | 01/01/70 00:00 | |
I am using Dennis Ritchie_ANCI C | 01/01/70 00:00 | |
Variables don't move just because you assign to them | 01/01/70 00:00 | |
can we start from ZERO........ | 01/01/70 00:00 | |
Have you read my original post? | 01/01/70 00:00 | |
mixing stuff | 01/01/70 00:00 | |
where it will be for MCU? | 01/01/70 00:00 | |
is there any book for this fundamental things? | 01/01/70 00:00 | |
and .... | 01/01/70 00:00 | |
In this a general or Specific Question | 01/01/70 00:00 | |
its General Que ???? | 01/01/70 00:00 | |
Separate "the C view of program" from "microcontroller view" | 01/01/70 00:00 | |
NO! | 01/01/70 00:00 | |
why not?? | 01/01/70 00:00 | |
No - generic isn't meaningful | 01/01/70 00:00 | |
Interview questions can be asked out of limited knowledge | 01/01/70 00:00 | |
Seldom "one" answer other than to trivial questions | 01/01/70 00:00 | |
In Addition | 01/01/70 00:00 | |
Embedded? | 01/01/70 00:00 | |
sometimes, usually | 01/01/70 00:00 |