heap_allocate
- Date:
02-07-2023
NAME
heap_allocate - forces all variable-size local arrays and temporary arrays to be allocated on the heap
SYNOPSIS
!dir$ heap_allocate
!dir$ noheap_allocate
DESCRIPTION
!dir$ heap_allocate puts variable-size array temporaries on the heap until a noheap_allocate directive is found or the current scope ends. Following scope exit, array placement returns to the policy in force prior to entry to the scope just exited.
!dir$ noheap_allocate puts variable-size array temporaries on the stack until a heap_allocate directive is found or the current scope ends. Following scope exit, array placement returns to the policy in force prior to entry to the scope just exited.
!dir$ OPTIMIZE will recognize -h heap_allocate and -h noheap_allocate. The later is default. -h heap_allocate on the command line overrides the -h noheap_allocate in the OPTIMIZE directive, but -h noheap_allocate on the command line does not override the OPTIMIZE directive.
SEE ALSO
intro_directives(7)