www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/11/11/20:00:19

From: chris319 <chris319 AT delorie DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Array Size Question
Date: Sat, 11 Nov 2000 16:46:48 -0800
Organization: MindSpring Enterprises
Lines: 15
Message-ID: <0gpr0t4krbjo38b5hlpelt5ofq1bf5ec78@4ax.com>
References: <dphq0tk3q379loiideccpcmrn4ga535nfl AT 4ax DOT com> <973951101 DOT 305564 AT shelley DOT paradise DOT net DOT nz>
NNTP-Posting-Host: a5.79.71.71
Mime-Version: 1.0
X-Server-Date: 12 Nov 2000 00:46:03 GMT
X-Newsreader: Forte Agent 1.8/32.548
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

>What a curious question!  Have you been using other compilers, say, 16-bit
>compilers recently?
>
>As far as I know, gcc will allow you to create an array up to probably the
>maximum address space on a 32-bit processor.  I've made arrays that are 64
>or so megabytes of structs, and I assume one can go beyond that...
>
>If you're asking about the maximum elements in an array, that's also
>probabably going to be about 2.147 billion.
>
>I suggest you don't worry about this, unless you start to have problems.

The problem I'm having is that I set up an array of 1024 doubles, I explicitly
initialize all elements to zero using a "for" loop, and bizarre non-zero values
are somehow creeping into array elements above 512.

- Raw text -


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