Ok i definitely need to read up on the sections properly i am confused about that.
What about the second part of my question concerning the stack frame? This i presume would be same even in non-embedded codes. So, when a stack frame is created in the background when a function call is made does the stack frame contain all the variables declared inside that function (except the static ones) or can i have the local function variables somewhere...
User Profile
Collapse
-
Well i have some experience in writing C programs but never thought about what happens between the time i run the compiler to the time i run the final executable. But now that i am shifting to embedded systems i feel i should know whats happening under the hood. Any good reference for this would be helpful. I am currently looking at ARM based systems.Leave a comment:
-
Automatic variables + stack
Hi,
I have gone through a few posts on this topic in the forum and seem to get more confused.
I write a simple function in C which has local/automatic variables say a,b,c
Now from what i could gather from the forum posts is that the sections (data,code,stac k,heap etc) are not a part of the C standard.
So, suppose i decide to place my function in the bss segment.
Now during...
No activity results to display
Show More
Leave a comment: