www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2007/01/03/22:17:12

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Date: Thu, 04 Jan 2007 04:31:02 +0200
From: alex bodnaru <alexbodn AT 012 DOT net DOT il>
Subject: Re: Request
In-reply-to: <459B6207.8E56482@yahoo.com>
To: djgpp AT delorie DOT com
Message-id: <459C66E6.1070902@alex3>
MIME-version: 1.0
X-Enigmail-Version: 0.94.1.0
References: <459aeaf9$0$27394$ba4acef3 AT news DOT orange DOT fr>
<8cOdneCGIKdOvgbYnZ2dnUVZ_smonZ2d AT giganews DOT com>
<NMydnaC_tuIAuAbYnZ2dnUVZ_uqvnZ2d AT giganews DOT com> <459B6207 DOT 8E56482 AT yahoo DOT com>
User-Agent: Icedove 1.5.0.9 (X11/20061220)
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

even the first malloc is 4gb, and i doubt you have more ;-)

alex

CBFalconer wrote:
> "David T. Ashley" wrote:
> ... snip ...
>> 54135^2 is going to be on the order of 2.5G.  That is a pretty
>> fair hunk of memory.
>>
>> ---------
>>
>> [nouser AT pamc ~]$ cat test3.c
>> #include <stdio.h>
>> #include <stdlib.h>
>>
>> int main(void)
>>    {
>>    char *p;
>>    int i;
>>
>>    for (i=65535; i>0; i--)
>>       {
>>       if (p = calloc(i,i))
>>          {
>>          printf("%d is apparently the largest integer that will succeed.\n",
>> i);
>>          break;
>>          }
>>       }
>>    }
>> [nouser AT pamc ~]$ gcc test3.c
>> [nouser AT pamc ~]$ ./a.out
>> 54135 is apparently the largest integer that will succeed.
>> [nouser AT pamc ~]$
> 
> With DJGPP 2.03 (specifies the library) that crashes immediately in
> memset.  With nmalloc linked in in place of the library it yields
> 23093.
> 
> Advisory cross-post to comp.os.msdos.djgpp, f'ups set to clc.
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBRZxm5tpwN1sq38njAQIrpAP/eZMSQhlHTby8X/CgVfpH3I672FLdTbD4
/XgckNDO+l/MOa5bjssZFjCbRTsUM37c3iMkOGZ6OadrzMj4qLcAn0u0dWIogRgy
It2C+p4VzBn0sY5zH1hTkUch0QdlXCFLWgXvin7uOSgW9sZ5ej+CcWDNDEINqkXt
xQz4xq1x8xI=
=VYjj
-----END PGP SIGNATURE-----

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019