delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/19/21:12:57

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
From: "Elkin" <ekgr AT hotmail DOT com>
Subject: Re: Program too big to fit in memory - Previous hints didn't work
Date: Sun, 19 Oct 2003 21:12:38 -0400
Lines: 67
Message-ID: <bmvcq6$1im$1@sea.gmane.org>
References: <Sea1-F5181TbdkSmLAz00012dd9 AT hotmail DOT com>
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4927.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200
Note-from-DJ: This may be spam

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" <ekgr AT hotmail DOT com> wrote in message
news:Sea1-F5181TbdkSmLAz00012dd9 AT hotmail DOT com...
> 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019