Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: G77 Dynamic Memory Allocation
@ 1998-07-02  5:55 Larry Zimmerman
  0 siblings, 0 replies; 4+ messages in thread
From: Larry Zimmerman @ 1998-07-02  5:55 UTC (permalink / raw)
  To: axp-list


From: Weiping Hu <Hu.Weiping@dsto.defence.gov.au> 02 Jul 1998

        Larry,

        I just tried this, and got the following result.  There is a
segmentation fault.  I run egcs-1.0.2-8 on RH5.1, i386.  Was the test for
Alpha only?

        [huw@venus Test]$ make
        egcs -g -static -Wall -DUSE_FALLOC -DHAVE_64BIT_ADDR -c falloc.c
                                             ^^^^^^^^^^^^^^^
If you're using an i386 I doubt you have 64BIT Addresses. Take this out
and try again. I haven't tried it on x86. Let me know what happens.

Larry Z.



^ permalink raw reply	[flat|nested] 4+ messages in thread
* G77 dynamic memory allocation
@ 1998-07-01  9:49 Larry Zimmerman
  1998-07-02  1:36 ` Weiping Hu
  0 siblings, 1 reply; 4+ messages in thread
From: Larry Zimmerman @ 1998-07-01  9:49 UTC (permalink / raw)
  To: axp-list


This is sort of a followup to the thread "malloc oddity ?"

I am interested in this subject because I'm trying to port
some FORTRAN code to Linux that uses structures and dynamic
memory allocation. AFAIK, egcs/g77 does not directly support
dynamic memory allocation, but Mike Tripicco let me look at
their code for dynamic array sizing. I tried a slight modification
of Mike's code, then managed to get "real" dynamic memory
allocation working!

This is not as clean as using compiler-supported functions,
but it seems to work for me in my test program. If you're
interested, you can get the details at:
http://walleye.gonefishing.sk.ca/laz/linux/falloc.html

My test program, etc. are accessible through this web page.

Thanks to Mike and others who commented on Linux-Alpha memory
allocation for helping to solve one of my key porting problems.

Now if the g77 guys would just move structures higher up the priority
list!!

Larry Z.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1998-07-02  6:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <Hu.Weiping@dsto.defence.gov.au>
1998-07-02  5:10 ` G77 dynamic memory allocation Larry Zimmerman
1998-07-02  5:55 G77 Dynamic Memory Allocation Larry Zimmerman
  -- strict thread matches above, loose matches on Subject: below --
1998-07-01  9:49 G77 dynamic memory allocation Larry Zimmerman
1998-07-02  1:36 ` Weiping Hu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox