Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Larry Zimmerman <laz@walleye.gonefishing.sk.ca>
To: axp-list@redhat.com
Subject: G77 dynamic memory allocation
Date: Wed, 1 Jul 1998 03:49:44 -0600	[thread overview]
Message-ID: <199807010949.DAA18686@walleye.gonefishing.sk.ca> (raw)


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.



             reply	other threads:[~1998-07-01  9:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-07-01  9:49 Larry Zimmerman [this message]
1998-07-02  1:36 ` G77 dynamic memory allocation Weiping Hu
     [not found] <Hu.Weiping@dsto.defence.gov.au>
1998-07-02  5:10 ` Larry Zimmerman
  -- strict thread matches above, loose matches on Subject: below --
1998-07-02  5:55 G77 Dynamic Memory Allocation Larry Zimmerman
read-only archive

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