nano-malloc assumes sizeof(int) >= sizeof(void*)
Corinna Vinschen
vinschen@redhat.com
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?
Yep.
Thanks,
Corinna
--
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20141216/d9b1c30f/attachment.sig>
More information about the Newlib
mailing list