Path: utzoo!attcan!uunet!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!news.funet.fi!tukki.jyu.fi!jyu.fi!toivanen From: toivanen@tukki.jyu.fi (Jari Toivanen) Newsgroups: comp.sys.hp Subject: f77 and 2 MB data segment limit Message-ID: Date: 21 Oct 90 02:00:17 GMT Sender: news@tukki.jyu.fi (News articles) Organization: University of Jyvaskyla Lines: 18 I am doing calculations in HP 9000/835 and in those calculations I need a lot memory (sometimes more than 30 MB). I am having problems with fortran (f77). If I compile program, which have bigger data segment than 2 MB, normally and run it, I get segmentation fault in fortran's initialization code. Everything works right if I use -K option with f77 so that variables are allocated statically. Problem with -K option is that executables are at least as big as data segment and therefore they take a lot of disk space and they start very slowly. Without -K option variables are allocated dynamically from the stack. I am quite sure that stack size limit is more than 2 MB, so that the problem shouldn't be stack size limit. I would like to know what is causing this 2 MB limit and how I can make big programs work without -K option or statical variable allocation. -- Jari Toivanen (toivanen@jyu.fi) Memories are lost in time University of Jyvaskyla, Finland like tears in rain.