This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How does memory get allocated when you declare a structure

How does memory get allocated for the structure on Keil C51 8.x? Is it when I populated the contents of the structure right after declaring the structure does the memory get allocated. I am using a global var. to declare the structure.

Thanks

Sam

Parents
  • How does memory get allocated for the structure on Keil C51 8.x?

    That's got nothing to do with Keil C51 in particular, nor with it being a struct rather than some other type of variable.

    All variables of static storage duration are allocated at build time, by the compiler and linker.

Reply
  • How does memory get allocated for the structure on Keil C51 8.x?

    That's got nothing to do with Keil C51 in particular, nor with it being a struct rather than some other type of variable.

    All variables of static storage duration are allocated at build time, by the compiler and linker.

Children
No data