| ▲ | cminmin 2 days ago | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | repelsteeltje 2 days ago | parent [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
That sounds like your answer is: "Yes, global variables". That may be a perfectly good solution in many embedded environments, but in most other context's global variables are considered bad design or very limiting and impractical. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||