delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/12/13/11:10:12

X-Originating-IP: [216.191.241.144]
From: "wes kotala" <wkotala AT hotmail DOT com>
To: djgpp AT delorie DOT com
Subject: 40 MB buffer
Date: Fri, 13 Dec 2002 16:07:29 +0000
Mime-Version: 1.0
Message-ID: <F135Nbo9BYoqhF9cQoN0001a3e5@hotmail.com>
X-OriginalArrivalTime: 13 Dec 2002 16:07:29.0766 (UTC) FILETIME=[BCAD5860:01C2A2C1]
Reply-To: djgpp AT delorie DOT com

I just download the DJGPP software and I love it.

Here is my question. I need be able to store 40 MB of data in memory. How do 
I do this? I was hoping I could just declare a 40 MB buffer but this is 
giving me errors when I run it.

Here is part of my code that I wrote to test. I am assuming it isn't as 
simple to do as I had hoped. Any help in this area would be GREATLY 
APPRECIATED.

Thank you in advance.
Wes


int i;
int buffer[10000000];

for(i=0;i<10000000;i++)
   buffer[i]=0;
for(i=0;i<10000000;i++)
   printf("%d\n",buffer[i])

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

- Raw text -


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