nano-malloc assumes sizeof(int) >= sizeof(void*)
Tue Dec 16 11:28:00 GMT 2014
On Dec 15 22:42, DJ Delorie wrote:
> I don't know if there's a better (i.e. more portable) way of
> aligning-up a pointer, but at least this moves the problem to
> platforms where pointers are bigger than "long" instead of "int".
> Found on msp430 large model, with the heap above the 64k boundary -
> malloc() was truncating addresses to 16 bits. Ok?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 819 bytes
Desc: not available
More information about the Newlib