Re: Program too big to fit in memory - Previous hints didn't work

2003-10-19 Thread Elkin
Thanks all you guys for your help.

Gerrit has solved the problem -thanks a lot Gerrit- and the program runs in
my pc

I'm afraid the error prompt was a bit misleading but I don't understand yet
why it was raised.

Elkin

E G [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi,

 I have the latest Cygwin/cygnome environment (Cygwin 1.5.5.1 dll)
installed
 two weeks ago for compiling a working program already tested in linux and
 solaris. The program uses the X libraries Xt, Xpm, Xaw and X11 in an
 interface window written in C and runs a program written in Fortran.

 I compiled the interface program written in C (xgraph.c) using gcc -x -o
 xgraph.o xgraph.c -I/usr/X11R6/include and it created the object file
 without problems.

 I then compiled the fortran code and linked the libraries and required
 object files -including the C program- as I did in Linux (I just changed
the
 paths for the includes and the libraries) and the names of the libraries

 -lXpm - -lXpm.dll, -lX11 --lX11.dll). It compiled fine and I got my
object
 dependencies ok and the exe file without problems. But, when I tried to
run
 the program I got a Program too big to fit in memory error message and
it
 didn't run. The program is 1.4 MB and my computer has 256 MB RAM and 9 GB
 hard disk free space (defragmented, i.e., single chunk).

 I run the max_memory program included in Chapter 3 of the users manual I
 think, and it reports 1560 kB. So I'm discarding real memory problems.


 I have tried:
 1. increasing Cygwin memory restriction using regtool  for
 memory_chunk_in_mb to set 2048 kB. Nope.
 2. compiling the code with -fconserve-space, -fno-inline, -Wl... heap and
 stack They Reduce the exe file size a bit, but still didn't work.
 Program too big to fit in memory.
 3. stripping the exe file using strip -s exe_file. Reduces the size of
the
 executable by 1/3 but still getting the same error message.

 I run out of options, so I hope someone can give a hint what to do to make
 my program run.

 Thanks,

 Elkin
 4rd Yr Aerospace Eng student @ Ryerson.ca

 _
 MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
 http://join.msn.com/?page=features/virus






--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Program too big to fit in memory - Previous hints didn't work

2003-10-18 Thread Elkin
Brian,

I posted the cygcheck results as you suggest me. I'll appreciate any further
suggestion you may have.

Elkin


Brian Ford [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Could you please attach cygcheck output as requested in
 http://www.cygwin.com/problems.html ?

 WAG: what gcc version are you using?

 --
 Brian Ford
 Senior Realtime Software Engineer
 VITAL - Visual Simulation Systems
 FlightSafety International
 Phone: 314-551-8460
 Fax:   314-551-8444





--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/