www.delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
NNTP-Posting-Date: | Wed, 03 Jan 2007 02:28:24 -0600 |
Message-ID: | <459B6207.8E56482@yahoo.com> |
Date: | Wed, 03 Jan 2007 02:57:59 -0500 |
From: | CBFalconer <cbfalconer AT yahoo DOT com> |
Organization: | Ched Research http://cbfalconer.home.att.net |
X-Mailer: | Mozilla 4.75 [en] (Win98; U) |
X-Accept-Language: | en |
MIME-Version: | 1.0 |
Newsgroups: | comp.lang.c,comp.os.msdos.djgpp |
Followup-To: | comp.lang.c |
Subject: | Re: Request |
References: | <459aeaf9$0$27394$ba4acef3 AT news DOT orange DOT fr> <8cOdneCGIKdOvgbYnZ2dnUVZ_smonZ2d AT giganews DOT com> <NMydnaC_tuIAuAbYnZ2dnUVZ_uqvnZ2d AT giganews DOT com> |
Lines: | 45 |
NNTP-Posting-Host: | 216.195.147.20 |
X-Trace: | sv3-7wXEjsMXrTr98Q6mspexyXC3fTAeUXI4VvQeknfNH7X3Ch7VF3D9VHRRD4Le5vSem9LdfqKz4gfseO5!gOB4+PTCvpOXPAU6Savv7pIss6Kk5F1f6g8+0ZNtbBRb7g5bJMI3iQiu7UPh |
X-Complaints-To: | abuse AT gwi DOT net |
X-DMCA-Complaints-To: | abuse AT gwi DOT net |
X-Abuse-and-DMCA-Info: | Please be sure to forward a copy of ALL headers |
X-Abuse-and-DMCA-Info: | Otherwise we will be unable to process your complaint properly |
X-Postfilter: | 1.3.32 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
"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. -- Chuck F (cbfalconer at maineline dot net) Available for consulting/temporary embedded and systems. <http://cbfalconer.home.att.net>
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |