logoalt Hacker News

5d41402abc4blast Monday at 5:18 AM1 replyview on HN

> Using the stack or the heap means your variables aren't always at the same memory address

Where do you place the variables then? as global variables? and how do you detect if a memory cell has gone bad?


Replies

cminminlast Monday at 7:47 AM

your programs have a data segment. its not the heap nor the stack... and it can be (depending on loader/linker) a source of reliable object->address mappings as its not dynamically populated.

show 1 reply