User Profile

Collapse

Profile Sidebar

Collapse
praetor
praetor
Last Activity: Feb 21 '10, 02:18 AM
Joined: Feb 20 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • praetor
    replied to Automatic variables + stack
    in C
    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...
    See more | Go to post

    Leave a comment:


  • praetor
    replied to Automatic variables + stack
    in C
    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.
    See more | Go to post

    Leave a comment:


  • praetor
    started a topic Automatic variables + stack
    in C

    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...
    See more | Go to post
No activity results to display
Show More
Working...