heap allocation of arrays
- From: robert.corbett@xxxxxxx
- Date: 19 Jun 2006 00:35:51 -0700
I recently received a request to add an option to Sun Fortran
to force all arrays to be allocated on the heap. Automatic
arrays and other arrays that would normally be allocated on
the stack would be replaced with pointers on the stack.
Space for the arrays would be allocated and deallocated
using malloc and free.
The motivations given for requesting this option were that
the default stack size for most programs is smaller than the
default heap size and that failure to allocate space on the
heap is easier to detect than failure to allocate space on the
stack.
What do you think about such an option?
Bob Corbett
.
- Follow-Ups:
- Re: heap allocation of arrays
- From: robert . corbett
- Re: heap allocation of arrays
- From: phillip.news@xxxxxxxxx
- Re: heap allocation of arrays
- From: Norman Yarvin
- Re: heap allocation of arrays
- From: Richard E Maine
- Re: heap allocation of arrays
- From: highegg
- Re: heap allocation of arrays
- From: Jugoslav Dujic
- Re: heap allocation of arrays
- From: Jan Vorbrüggen
- Re: heap allocation of arrays
- From: David Frank
- Re: heap allocation of arrays
- From: glen herrmannsfeldt
- Re: heap allocation of arrays
- Prev by Date: Re: using the same function for stdout and files
- Next by Date: f2003 allocatable extension
- Previous by thread: using the same function for stdout and files
- Next by thread: Re: heap allocation of arrays
- Index(es):
Relevant Pages
|