- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hello
Now ,I know the function malloc() can be used to build a dynamic memory .But I am not sure that the dynamic memory takes up the onchiop memory if I only use the onchip memory not the periphery sram. where the dynamic memory is in ,onchip memory or periphery sram ? Thank you !Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The memory space which malloc() allocated memory from is called the heap.
By default this is located immediately after your BSS section (which goes in the memory specified as rwdata in the GUI) and continues until it gets to the end of the memory or until it reaches the stack. If you want more information then please look in the altera_hal source code for the the function sbrk() which is what malloc() uses to get more memory to allocate.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page