The memory will be allocated in the heap (and hence reduce the memory available for the stack). Main RAM is 32k, with the RW/ZI regions at the bottom, and shared heap/stack filling the rest. Dynamic memory allocation is certainly usable (so malloc/free and new/delete both work fine). ![]() Some quickfire answers - if they don't make sense, then i'd wait until I get a chance to write up something properly. It would also give context for the questions you are asking. We'll see if we can add this as a new feature.Īt the same time i'll try and writeup a tutorial on memory/stacks/heaps, as it is an interesting area that is worthy of some proper explanation. The compiler does not report this information, but it sounds like something it should. How much RAM is available for programs? How much RAM is allocated to the stacks? Is it possible to detect stack overflow, or at least report the high water mark? Is dynamic memory allocation, such as malloc() supported? If so, how big is the pool?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |