Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!munnari.oz.au!mel.dit.csiro.au!simonm From: simonm@mel.dit.csiro.au (Simon McClenahan) Newsgroups: comp.unix.cray Subject: static arrays in C Message-ID: <1991Apr11.051634.5269@mel.dit.csiro.au> Date: 11 Apr 91 05:16:34 GMT Sender: usenet@mel.dit.csiro.au (usenet mail contact) Reply-To: simonm@mel.dit.csiro.au (Simon McClenahan) Organization: CSIRO DIT (Melb.) Lines: 15 I have a program that uses 2 very large arrays (approximately 10,000,000 integers each!). They were declared as static int in the head of the program (not in main(), outside that). When I try to compile it, segldr (I think) won't generate the executable becauseit requires too much memory. I removed the static keyword, and it now compiles fine! Does this mean I have some sort of virtual array? Will my program work? -- |Simon McClenahan CSIRO, | Cray Supercomputing Support Group | |55 Barry St, Carlton, | (TEL) +61 3 347 8644 (FAX) +61 3 347 8987 | |VIC 3053, Australia | Internet:simonm@mel.dit.csiro.au | | Waste not what I want... |