Assembly – Reserve array space during program?-Collection of common programming errors

“malloc()” is a creature of the C runtime library.

You can certainly call “malloc()” from assembly … provided you initialize the C runtime system first.

C and C++ both do this automatically for you; before “main()” gets invoked.

For example, here’s one link for how to do it on an ARM-bassed platform:

Here’s a link from Microsoft about what standard C functions to beware of on Windows:

  • http://msdn.microsoft.com/en-us/library/xwhcs5z6%28v=vs.80%29.aspx