Article View: comp.sys.sequent
Article #186malloc and -lpps
From: Fletcher Mattox
Date: Tue, 21 Nov 1989 23:12
Date: Tue, 21 Nov 1989 23:12
26 lines
1014 bytes
1014 bytes
This may be a naive question; I'm an admitted rookie with
the parallel programming library.
Can one not use malloc() and -lpps in the same program?
This happens under 3.0.4, though 3.0.12 is similar.
Script started on Tue Nov 21 14:36:17 1989
cs.utexas.edu% cat zz.c
main(argc, argv)
char *argv[];
{
char *p, *malloc();
if ((p = malloc(atoi(argv[1]))) == 0)
perror("malloc");
return 0;
}
cs.utexas.edu% cc zz.c -lpps
cs.utexas.edu% a.out 34800
cs.utexas.edu% a.out 34900
malloc: Not enough memory
cs.utexas.edu% pstat -s
150420 used, 145832 free, 51432 wasted
avail (num*size): 67*2048 4*1024 3*512 3*256 7*128 6*64 4*32
cs.utexas.edu% ^D
script done on Tue Nov 21 14:37:12 1989
Technical Details
Message-ID:
<7237@cs.utexas.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!fletcherShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!fletcher From: fletcher@cs.utexas.edu (Fletcher Mattox) Newsgroups: comp.sys.sequent Subject: malloc and -lpps Message-ID: <7237@cs.utexas.edu> Date: 21 Nov 89 23:12:57 GMT Organization: U. Texas CS Dept., Austin, Texas Lines: 26