Hi,
In the current revision of the compiler, is it possible to allocate memory dynamically in the additional RAM Banks?
I know that the initial accessor variable for these banks would have to be global static.
Using "placement new" however it is possible to allocate memory starting from a specific memory location.
The main question could be answered by the following two specific sub-questions:-
i) Is there a mechanism wherein, if a given additional bank is full then it automatically uses any free space available in the main RAM? If heap allocation is not possible for additional RAMS and the code still points to a memory alloc inside these banks then how is it handled internally?
ii) This question is in relation to the main theme of the question. I have read quite a few topics/threads around and they talk about codes/scripts that exist to measure available RAM at any given point of time. I think it is a tool which would help anyone greatly, especially knowing how much STACK/HEAP remains. I saw the python script posted by Igor which talks about the main RAM. Are there other similar Show Memory kind of codes which exist?
Hi, In the current revision of the compiler, is it possible to allocate memory dynamically in the additional RAM Banks?
I know that the initial accessor variable for these banks would have to be global static. Using "placement new" however it is possible to allocate memory starting from a specific memory location.
The main question could be answered by the following two specific sub-questions:-
i) Is there a mechanism wherein, if a given additional bank is full then it automatically uses any free space available in the main RAM? If heap allocation is not possible for additional RAMS and the code still points to a memory alloc inside these banks then how is it handled internally?
ii) This question is in relation to the main theme of the question. I have read quite a few topics/threads around and they talk about codes/scripts that exist to measure available RAM at any given point of time. I think it is a tool which would help anyone greatly, especially knowing how much STACK/HEAP remains. I saw the python script posted by Igor which talks about the main RAM. Are there other similar Show Memory kind of codes which exist?