(Naive?) question about BIG programs
Rich Salz
rsalz at bbn.com
Sat Sep 24 05:39:01 AEST 1988
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 at uunet.uu.net.
More information about the Comp.unix.xenix
mailing list