ARM Technical Support Knowledge Articles


Applies to: GNU C Compiler for ARM


Information in this article applies to:


I'm having problems with the ARM GNU compiler. It seems that the function malloc() never returns. What could be wrong in my application?


We use minimal startup code in several example projects to reduce the library overhead of the GNU compiler. The folder C:KeilARMGNUExamplesMemory shows an example that initializes the memory heap for the malloc function. You should use this example as a starting point for your application.

Note that the startup code of this example is generic and not configured for any specific device. Therefore, you may need to add device specific initialization to the STARTUP.S file.


Article last edited on: 2006-07-10 18:41:24

Rate this article

Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential