Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!ukma!rutgers!gatech!bbn!bbn.com!rsalz From: rsalz@bbn.com (Rich Salz) Newsgroups: comp.unix.xenix Subject: (Naive?) question about BIG programs Message-ID: <1093@fig.bbn.com> Date: 23 Sep 88 19:39:01 GMT Organization: BBN Systems and Technologies, Inc. Lines: 28 We're compiling a set of libraries and programs with these flags: -LARGE -M2ht -SEG 1000 -F 4000 attempts to run an executable give a "Not enough core" message. Aha, no problem, we try the wondrous proctl() call, as in main(ac, av) int ac; char **av; { if (proctl(getpid(), 1, (char *)0) < 0) perror("proctl failed"), exit(1); execvp(av[1], &av[1]); perror("execvp failed"), exit(2); } we get the same message. Other programs link, but say "/bin/ld : error: stack and data exceed 64K" We get the same warnings when we try to run the resultant executable. A typical "size a.out" shows 270788 + 47622 + 11342 = 329752 = 0x50818 The machine has 4Meg, nswap=6920, maxprocmem=0, and we've got Excelan installed. We've got phone support from SCO, but it the few times we do speak with them have been basically useless. Please send replies to me; I'll summarize. /rich $alz -- Please send comp.sources.unix-related mail to rsalz@uunet.uu.net.