4.3.5. __attribute__((malloc))

This function attribute indicates that the function can be treated like malloc and the associated optimizations can be performed.

Note

This function attribute is a GNU compiler extension that is supported by the ARM compiler.

Example

void * Function_Attributes_malloc_0(int b) __attribute__ ((malloc));
Copyright © 2007, 2010 ARM Limited. All rights reserved.ARM DUI 0348A
Non-Confidential