Andes Workshop

decide heap start/end in malloc
Page 1 of 1

Author:  jimmy [ Thu Sep 29, 2016 12:15 pm ]
Post subject:  decide heap start/end in malloc

If you use malloc function, system will automatically decide heap start/end address.
If you want to decide heap start/end address by yourself. Please follow below procedure:
Please add the attached file to your project and use the following statement to set the heap in the SaG file.

VAR _HEAP_MIN = 0x80800000
VAR _HEAP_MAX = 0x80900000

_sbrk.7z [1.52 KiB]
Downloaded 670 times

Page 1 of 1 All times are UTC + 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group