Mail Archives: djgpp/1997/03/30/02:56:31
From: | fsnijder AT elektron DOT et DOT tudelft DOT nl (FIM)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re :AW: Very slow DJGPP on a P166 48Mb ram
|
Date: | Sat, 29 Mar 97 22:03:57 GMT
|
Organization: | Delft University of Technology
|
Lines: | 123
|
Message-ID: | <5hk3g8$eto$1@news.tudelft.nl>
|
NNTP-Posting-Host: | dokov.et.tudelft.nl
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
hello,
thank you for replying my post,
FIM wrote:
>
> Is it normal that compilling an to c translated m-file of about 300 lines
> takes two hours? (It finishes succesfully) Could it be that I have an memory
> poblem. I have 48 Mb Ram installed but maybe DJGPP is set to use only the
dos
> 640 Kb?!
>
> Does anybody have an answer?
Please give more detail on your system configuration.
I use win95 and I run dmatcom or wmatcom from a dos box, this is the contents
of my autoexec.bat :
rem - By Windows 95 Network - C:\WINDOWS\net start
mode con codepage prepare=((850) C:\WINDOWS\COMMAND\ega.cpi)
mode con codepage select=850
set DJGPP=E:\DJGPP\DJGPP.ENV
set matcomgnuplot=e:\gnuplot\wgnuplot.exe
SET INCLUDE=e:\djgpp\INCLUDE;e:\djgpp\lang\cxx\
SET LIB=e:\djggp\LIB;e:\MATCOM;e:\MATCOM\src\matlib;e:\MATCOM\src\matcom
path=e:\djgpp\bin;c:\windows\command;c:\windows;e:\djgpp\INCLUDE;e:
\djggp\LIB;e:\MATCOM
my config.sys :
device=C:\WINDOWS\COMMAND\display.sys con=(ega,,1)
Country=031,850,C:\WINDOWS\COMMAND\country.sys
It's possible
that you don't have enough free memory remaining for DJGPP to run
properly. Try typing 'go32-v2' from the DOS prompt and post what it
reports.
E:\DJGPP\bin>go32-v2
go32/v2 version 2.0 built Aug 12 1996 22:27:23
Usage: go32 coff-image [args]
Rename this to go32.exe only if you need a go32 that can run v2 binaries as
well as v1 binaries (old makefiles). Put ahead of the old go32 in your PATH
but do not delete your old go32 - leave it in the PATH after this one.
Set GO32_V2_DEBUG=y in the environment to get verbose output.
DPMI memory available: 16379 Kb
DPMI swap space available: 0 Kb
You also fail to mention what OS you are running under. Plain
DOS? Win31? Win95? Under DOS, make sure that you're loading HIMEM.SYS
win95
in your config.sys file, and that you aren't using up all 48 megabytes
with stuff like ramdrives and/or disk caches. Under Windows (any
version) make sure that you're giving enough memory to the DOS box. In
3.1, this is accomplished by opening 'dosprmpt.pif' in the PIF Editor
and setting all the maximum memory sizes to '-1'. In 95, open the DOS
box properties sheet and increase the DPMI memory allocated to DOS
programs.
I did and this time wmatcom gave an error instead of going on forever (virtual
memory exhausted) :
Skipping h_grad.m
Skipping destack.m
Skipping exeption.m
Skipping wd_g.m
Skipping initsubg.m
Skipping dsig.m
Skipping itergrad.m
Skipping e:\MATLAB4\toolbox\matlab\strfun/num2str.m
Compiling...
h_grad.cpp: In function `class M<double> h_grad(class M<double>, class
M<double>
, class M<double>, class M<double>, class M<double>, class M<double>, class
M<do
uble>, class M<double>, class M<double>, class M<double>, class M<double>,
class
M<double>, class M<double>, class M<double>, class M<double>, union i_o_t,
clas
s Mr<double>, class Mr<double>)':
h_grad.cpp:290: virtual memory exhausted <=!!!!!!!!!!!!!!!!!!!!!!!!
g_h_grad.cpp: In function `int main()':
g_h_grad.cpp:12: too few arguments for function `class M<double> h_grad(class
M<
double>, class M<double>, class M<double>, class M<double>, class M<double>,
cla
ss M<double>, class M<double>, class M<double>, class M<double>, class
M<double>
, class M<double>, class M<double>, class M<double>, class M<double>, class
M<do
uble>)'
gcc.exe: h_grad.o: No such file or directory (ENOENT)
gcc.exe: g_h_grad.o: No such file or directory (ENOENT)
Finally, make sure that you have installed a disk cache, like
SMARTDRV (under Win95 you don't need to do this). This can
significantly speed up DJGPP compilation.
For a wealth of details on configuring and optimizing DJGPP, look in the
DJGPP Frequently Asked Questions list (v2/faq210b.zip from SimTel).
Chapter 7 is devoted specifically to the question of why the compiler
and/or linker might be running slowly.
hth!
--
John M. Aldrich, aka Fighteer I <fighteer AT cs DOT com>
Thank you, I hope you can make something of it,
Freddy Snijder
What the hell is this >>>>>
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS d- s+:- a-->? c++>$ U@>++$ p>+ L>++ E>++ W++ N++ o+>++ K? w(---)
O- M-- V? PS+ PE Y+ PGP- t+(-) 5- X- R+(++) tv+() b+++ DI++ D++ G>++
e(*)>++++ h!() !r !y+()
------END GEEK CODE BLOCK------
- Raw text -