home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!purdue!yuma!csn!news.den.mmc.com!enterprise.den.mmc.com!beck
- From: beck@enterprise.den.mmc.com (Fred R. Beck)
- Subject: More malloc() questions.
- Message-ID: <1992Nov6.212516.336@den.mmc.com>
- Keywords: malloc, WorkShop
- Sender: news@den.mmc.com (News)
- Nntp-Posting-Host: gate-enterprise.den.mmc.com
- Organization: Martin Marietta
- Date: Fri, 6 Nov 1992 21:25:16 GMT
- Lines: 52
-
- I have been following the discussion on malloc() with some
- earnest. I too have a large, highly parallel software tool
- which has been operating just fine on a 4D/310 running IRIX
- 3.3.3 & then later 4.0.1. Since my last compile, I upgraded
- to a 4D/420 with IRIX 4.0.5[a]. Now, my code dies after
- doing "some" (about 50) malloc() calls. Via CaseVision/Workshop,
- I have been able to determine where. In trying to determine
- "why", I linked the code with -lmalloc_cv so that I could use
- all of the tools available in Workshop.
-
- Boy was I astounded when all of a sudden, everything worked
- just fine. So, I thought, what the heck, I'll through caution
- to the wind and try -O2 with no -lmalloc_cv. No joy...
-
- Since reading the malloc() discourse, I have been purusing my
- "volumes" on information both on-line and paper, but can not
- find any but f77 or X11 malloc relating info.
-
- So, I have been wondering, what is, or where can I find the
- difference between the malloc()'s in:
-
- /usr/lib/libX11.a:256:malloc.o 264:usmalloc.o
- /usr/lib/libX11_s.a:260:malloc.o 268:usmalloc.o
- /usr/lib/libc.a:278:malloc.o
- /usr/lib/libc_G0.a:265:malloc.o
- /usr/lib/libc_s.a:308:malloc.o
- /usr/lib/libgen.a:78:zmalloc.o
- /usr/lib/libgen_G0.a:78:zmalloc.o
- /usr/lib/libmalloc.a:1:malloc.o
- /usr/lib/libmalloc_G0.a:1:malloc.o
- /usr/lib/libmalloc_cv.a:1:malloc.o
- /usr/lib/libmalloc_d.a:1:malloc.o
- /usr/lib/libmpc.a:33:malloc.o 68:usmalloc.o
- /usr/lib/libmpc_G0.a:33:malloc.o 68:usmalloc.o
-
- I understand that the lib[*]_s.a are "shared" libraries. I
- understand that the lib[*]_G0.a are graphics related routines.
- I am confused on what the lib[*]_d.a is. Also, though I expect
- the libmpc[*].a to be MP libraries, where can I find info on the
- various mallocs() and thier differences?
-
- If I am just being "brain dead" here, someone please just shoot
- me to put me out of everyones misery. But if not... just shoot
- anyway.
-
- I do dislike the idea of having to link to -lmalloc_cv to get my
- code to work. Especially when I was planning to eventually use
- Power C to optimize.
-
- thanx to one and all...
-
- -ferd (It's friday...)
-