[En-Nut-Discussion] malloc versus NutHeapAlloc

Weigang Tyou tyou at i-da.co.jp
Tue Aug 26 16:52:30 CEST 2003


Hi, Michel,
     In fact, they have the same routine.. check the code please.
malloc and free are used to be compatible with std c functions.

Tyou

Michel wrote:

>Hi,
>
>I was wandering why sometimes I see 'malloc()' and 'free()' being used
>instead of 'NutHeapAlloc()' and 'NutHeapFree()'?
>
>In e.g. chat.c and dhcp.c (from CVS) malloc and free are used.
>
>Why is this? Does it have any (dis)advantages? I assumed that Nut/OS
>automatically allocates all available memory to a heap pool so malloc
>shouldn't be able to allocate any memory, right?
>
>Greets,
>
>Michel
>
>_______________________________________________
>En-Nut-Discussion mailing list
>En-Nut-Discussion at egnite.de
>http://www.egnite.de/mailman/listinfo/en-nut-discussion
>
>  
>






More information about the En-Nut-Discussion mailing list