[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] MiNT 1.19 and malloc size limitation?

Am 23.03.2015, 23:08 Uhr, schrieb Rajah:


Sorry, GFA. The program tests to TTRAM mxalloc 128 000 000 bytes, and minus 19200 bytes until the mxalloc gives RAM to the user. Log is writtent in malloc.log file. PRG is for 86k, PRY for ColdFire (to rename). You may rename as TTP and give the initial amount in the parameters.

FireBee+MiNT 1.19, about 13 376 000 bytes
Aranym+MagiC 6, about 14 240 000 bytes

Looks like your prg only looks for ST-RAM. If I run this:

#include <stdio.h>
#include <osbind.h>

int main(void)
        int flg;
        long mem;
        for( flg = 0; flg < 4; flg++ )
                mem = Mxalloc(-1, flg);
                printf( "flg=%d ->%ld bytes\n", flg, mem );
        return 0;

I get:

flg=0 ->12976128 bytes
flg=1 ->51830784 bytes
flg=2 ->51830784 bytes
flg=3 ->51830784 bytes

Which comes close to your value. I have 64MB TT-RAM.