X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Sterten AT aol DOT com Message-ID: <15b.4b75cad0.2f50093c@aol.com> Date: Thu, 24 Feb 2005 23:53:16 EST Subject: Re: files > 4GB There is always a solution To: djgpp AT delorie DOT com MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-----------------------------1109307195" X-Mailer: 9.0 SE for Windows sub 5003 Reply-To: djgpp AT delorie DOT com -------------------------------1109307195 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit but I can create a file >4GB with a normal GCC-program: (on a NTFS-harddisk) The file is opened and data is written to it. You can follow this process with multitasking from another DOS-commandline. You can peek into the file, while data is appended to it by a GCC-compiled program. You can open it with other C-programs until less than 4GB are written. Then suddenly you can't open the file with GCC-compiled programs, while DOS-commands "dir","type","copy" still work. This continues while the file still grows and after it's finished. Now, does the whole structure of the file change dramatically, when byte 2^32 is written ? Hard to believe. The data is still at the same place, where it was when byte 2^32-1 was written. Seems to me that GCC just checks for the filesize and when it's too big then GCC exits with an error - although it could proceed as normal, at least for the first 2^32 bytes and probably with some small modifications for the rest as well. I guess that it can be done by changing less than 100 bytes in the gcc.exe. --Guenter. -------------------------------1109307195 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable