??? 11/21/06 16:39 Modified: 11/21/06 16:42 Read: times |
#128369 - the question of matter Responding to: ???'s previous message |
Jan Waclawek said:
I'd like to use the rest of unused XRAM as a "heap".
What do you mean by this? If you are on C-side then just use this language standard. You are need not to know where the last variable in memory has been placed. "The last" in C may be upper, lower or somewhere else of the rest variables depend on compiler realization and platform used at. If you are need with a chunk of memory for own purposes then just use allocation function and get its pointer returned. Other ways named "hacks", triks etc may end up with undefined and hardly recognized malfunctions of your product, especially when sub-system, core or libraries` functions allocate memory dynamicaly for themself. (I know, I know, I should not assume anything on hardware in HLL...)
Exactly. What is wrong with malloc() ? Regards, Oleg |