Search code examples
memorymemory-managementassemblymasmmasm32

Does .data goes to stack or heap in masm?


When you declare variables in the .data segment in MASM, where are those vars allocated? In the stack or in the heap memory? And what about the ".data?" segment?


Solution

  • Neither, they are allocated statically instead.