From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 32130 invoked from network); 1 Jul 1998 09:56:40 -0000 Received: from ip2.net20483142.cr.sk.ca (HELO cabler.cableregina.com) (204.83.142.2) by mail2.redhat.com with SMTP; 1 Jul 1998 09:56:40 -0000 Received: from [24.72.3.110] by cabler.cableregina.com (SMTPD32-4.0) id A7D52116017A; Wed, 01 Jul 1998 04:56:37 -0500 Received: (from laz@localhost) by walleye.gonefishing.sk.ca (8.8.5/8.8.5) id DAA18686 for axp-list@redhat.com; Wed, 1 Jul 1998 03:49:44 -0600 Date: Wed, 1 Jul 1998 03:49:44 -0600 From: Larry Zimmerman Message-Id: <199807010949.DAA18686@walleye.gonefishing.sk.ca> To: axp-list@redhat.com Subject: G77 dynamic memory allocation 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.