Subject: Re: Memory usage in node program, Re: transformation method about function

From: Du_Zhi_hui <[email-masked]>
Date: Sat, 24 May 1997 19:09:10 +0800 (EAT)

On Tue, 20 May 1997, Guansong Zhang wrote:

> On May 14, 10:20am, Du_Zhi_hui wrote:
> > Subject: Re: transformation method about function
> 
> > In trans2 we introduce new temporary variable to save the value of
> > function call.This may need big memory but it is easy for data mapping.
> 
> The memory usage in our node program is already a problem. Since we try to use
> only F77 features, in pcrc_stack.f, the stack is allocated by static data.
> Though compiler can provide mechanism to decide the actual stack size, it won't
> change the fact that the executable of our node program is very large on some
> machine.

What you said is reasonable,in the next step,we plan to optimize our 
complier to let it better.

> 
> For example, if we compare our current work with PGI compiler, thought we may
> have better performance on a simple program, the pgi executable is 284,487
> Byte, while ours 5,137,522 Byte.
> 
> So, it seems we should try to use F90 memory facilities and improve memory
> allocator if want F77 interface.
In this case , we must deal with allocatable array. If we can do it well, we 
can also do REALIGN or REDISTRIBUTE directives because their 
implimentation is very close.

Du Zhihui