Andes Workshop
http://forum.andestech.com/

decide heap start/end in malloc
http://forum.andestech.com/viewtopic.php?f=25&t=963
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

Attachments:
_sbrk.7z [1.52 KiB]
Downloaded 1138 times

Page 1 of 1 All times are UTC + 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/