- Use the Oberon NEW function to allocate 1024 records each containing an array of INTEGER with ~32Kb of data.
Populate every element of every array with a value ranging from 0 to 1024 * 8191 - 1.
Display how much heap memory is available after the allocation.
- Verify that none of the data has changed since it was written
- Deallocate all the records using the Oberon DISPOSE function and display how much heap memory is now available to be reused again.
Download pre-release library modules and new examples to use with Astrobe for Cortex-M4. Forum members can also upload their own source code examples.
1 post • Page 1 of 1
The attached example source code shows how you can use the 32Mb of EMC SDRAM on the Embedded Artists LPC4088 QuickStart board for dynamic record pointer storage using the Oberon NEW and DISPOSE functions. The example performs the following functions:
- SDRAMHeap.mod, EMC.mod
- (2.86 KiB) Downloaded 255 times