3 ms·
Are there any downsides to having the memory set up the "safe" way that they describe? It seems like a win-win situation. [edit] I guess I was thrown off by th
by Gracana 13y ago
Are there any downsides to having the memory set up the "safe" way that they describe? It seems like a win-win situation.
[edit] I guess I was thrown off by the shoot-yourself-in-the-foot scenario, where the stack grows toward fixed data structures. If the heap and stack grow towards each other, you have quite a bit of flexibility (though with some danger of collision). If you have the stack grow towards fixed data structures, its size is fixed and it can cause a dangerous overflow. The only disadvantage of the safe example is less flexibility, but for a critical embedded system, that is fine.