c++ - Digitalmars DOS versus Windows
- Ed Schroder (11/11) Sep 24 2003 Hi,
- Walter (4/10) Sep 24 2003 the
- Ed Schroder (10/22) Sep 24 2003 I realize that Walter, but I was looking for compiler option that would
- Walter (5/11) Sep 24 2003 compiler
Hi, In one of my programs I am using a table of over 400Mb, no problem if I compile it as "console application" but when I compile it as a DOSX application the linker (I assume) creates an > 400Mb executable filling the 400Mb table with zeroes. Is there any way to fix this weird behavior? I am using the following BAT file to compile: c:\dm\bin\sc -mx -3 -cpp -o program x32.lib Thanks in advance for answers. My best, Ed
Sep 24 2003
"Ed Schroder" <rebel777 home.nl> wrote in message news:bks19f$ib2$1 digitaldaemon.com...Hi, In one of my programs I am using a table of over 400Mb, no problem if I compile it as "console application" but when I compile it as a DOSX application the linker (I assume) creates an > 400Mb executable fillingthe400Mb table with zeroes. Is there any way to fix this weird behavior?Allocating the table using malloc should do the trick.
Sep 24 2003
"Walter" <walter digitalmars.com> wrote in message news:bksqek$1lfi$1 digitaldaemon.com..."Ed Schroder" <rebel777 home.nl> wrote in message news:bks19f$ib2$1 digitaldaemon.com...Hi, In one of my programs I am using a table of over 400Mb, no problem if I compile it as "console application" but when I compile it as a DOSX application the linker (I assume) creates an > 400Mb executable fillingthe400Mb table with zeroes. Is there any way to fix this weird behavior?Allocating the table using malloc should do the trick.I realize that Walter, but I was looking for compiler option that would suppress the 400Mb zero-ing. After all the Windows version (using console application) does not have this phenomenon, neither has my previous compiler (Symantec 7.2) using DOSX. The bug is simply annoying, it would be nice if you would put it on your list. Thanks for answering and keep up the good work. My best, Ed
Sep 24 2003
"Ed Schroder" <rebel777 home.nl> wrote in message news:bkt597$250m$1 digitaldaemon.com...I realize that Walter, but I was looking for compiler option that would suppress the 400Mb zero-ing. After all the Windows version (using console application) does not have this phenomenon, neither has my previouscompiler(Symantec 7.2) using DOSX. The bug is simply annoying, it would be nice if you would put it on your list.Sure!Thanks for answering and keep up the good work.Thanks!
Sep 24 2003