Does the Redlib(none) library varient provide stub for the malloc()?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Does the Redlib(none) library varient provide stub for the malloc()?

478 Views
chaitanyapravee
Contributor II

Hello everyone,

I am trying to understand the library variants provided by the lpcxpressov8.2.2. According to What are none, nohost and semihost libraries? the none variant will not provide stubs for all file-based I/O and some string and memory handling functions.

What all are the memory and string function it will not provide stubs?

Does it provide stubs for malloc() and free()?

0 Kudos
1 Reply

235 Views
lpcxpresso_supp
NXP Employee
NXP Employee

Yes, malloc() should work linking against Redlib (none). Generally, I would recommend that you link against Redlib (none) and then switch to Redlib (nohost) only if functions you are using trigger link errors, of the form described in ...

https://community.nxp.com/message/630711 

Regards,

LPCXpresso Support

0 Kudos