Den sön 22 nov. 2020 12:25Lee Noar <lee.n...@sky.com> skrev:

> On 21/11/2020 22:40, Michael Grunditz wrote:
> > Hi
> >
> > Is there any way to not get MMap areas from malloc()?
>
> Currently, no, malloc is compiled to use mmap for allocation requests of
> 256KB (I think) or more, but Unixlib only allows 8 mmap areas to be in
> use at one time. If there are already 8 mmap areas in use, then malloc
> will use the heap.
>

Odd but when 8 mmap areas created malloc doesn't use heap, but produces a
crash.

Not a gccsdk question ( I think) but is malloc(n) supposed to return
address aligned to n?
_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

Reply via email to