From: imp@boulder.parcplace.com (Warner Losh) Subject: Re: gcc on linux Date: Mon, 7 Jun 1993 16:14:50 GMT
In article <1993Jun7.010226.16852@newstand.syr.edu> tkoprulu@lynx.cat.syr.edu (Tacettin Koprulu) writes:
>I also have the same problem. Almost all of the programs which use
>dynamic memory allocations failed to run under linux. Is there any
>problem with segmentation of memory or might it be the insufficient
>memory in which case linux can't do swapping? Any hints or suggestions
>would be appreciated since I am using linux to run my simulations at home.
That is very odd. Almost every program these days does dynamic memory
allocation. I've fairly confident that at least libc 4.3.3 with g++
2.3.3 the memory allocation routines work quite well. If they didn't
then my ObjectBuilder port would fail, since it uses new, malloc,
realloc, calloc, delete and free quite heavily.
I have seen no difference for correct C or C++ code programs between
the two systems when it comes to memory.
Inocrrect ones, on the other hand, do produce differing results and
failure modes. A product like purify will help out on the sun, but
I'm not aware of anything that is as picky about memory usage on
Linux.
Warner
-- Warner Losh imp@boulder.parcplace.COM ParcPlace Boulder I've almost finished my brute force solution to subtlety.