I would like to know where in memory the global variables are stored. Thanks for your help.
closed as unclear what you're asking by David Richerby, Evil, Yuval Filmus, Rick Decker, hengxin Dec 14 '16 at 8:25
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
This really just depends on the compiler you're using and the architecture you're targeting. For instance, I could make a compiler which assigns global variables to general purpose registers in bank 2 of a PIC16f887a microcontroller. It's arbitrary. This is a bad question.