heap initialisation for malloc

Pascal Degryze pascal.degryze@traficon.com
Wed Oct 16 07:57:00 GMT 2002

Hi all,

when using malloc, my code crashes.
Because malloc is part of a library, I cannot debug the source.
I think the problem has to do with heap-initialisation.
Therefor, how can the heap be initialised, such as:
heapbase, heapsize...
What must be added to the linker script?
I'm using arm-elf tools.

Pascal Degryze
R&D department

Traficon n.v.
Meensesteenweg 449, bus 2
B-8501 Bissegem
Tel: +32(0)56/37 22 00
Fax: +32(0)56/37 21 96

More information about the Gcc-help mailing list