Task

Show how to explicitly allocate and deallocate blocks of memory in your language.

Show access to different types of memory (i.e., heap, stack, shared, foreign) if applicable.




 
 mainproc: proc options(main) reorder;
 
 subproc: proc;
 dcl subvar char init ('X');
 
 put skip data(subvar);
 subvar = 'Q';
 end subproc;
 
 call subproc();
 call subproc();
 end mainproc;