www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - Digitalmars DOS versus Windows

↑ ↓ ← "Ed Schroder" <rebel777 home.nl> writes:
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
↑ ↓ "Walter" <walter digitalmars.com> writes:
"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 filling

 400Mb table with zeroes.

 Is there any way to fix this weird behavior?

Allocating the table using malloc should do the trick.
Sep 24 2003
↑ ↓ "Ed Schroder" <rebel777 home.nl> writes:
"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 filling

 400Mb 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
↑ ↓ → "Walter" <walter digitalmars.com> writes:
"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 previous

 (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