[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [f-cpu] Register allocation when calling a function



On Tue, Apr 17, 2001 at 03:12:02AM +0200, cedric wrote:
[...]
> > Today's most advanced compilers can perform in-depth analysis of the
> > programs and find the (mostly) optimal register allocation : they examine
> > the data life length and their usage statistics, decide whether and how
> > long to put (swap) them in memory and even modify other parts of the
> > program to enhance the register reuse.
> It really depend on the language and it's capacity to explain how the 
> application work. I think for example that in eiffel we can have a more 
> quicker application than in a pure C program, because you know all the world 
> and in one case and only a part of it in the second case.

There are also C/C++ and Fortran compilers out there that can compile
a whole program in one step (i.e. read all sources first, and do global
optimization).

-- 
 Michael "Tired" Riepe <Michael.Riepe@stud.uni-hannover.de>
 "All I wanna do is have a little fun before I die"
*************************************************************
To unsubscribe, send an e-mail to majordomo@seul.org with
unsubscribe f-cpu       in the body. http://f-cpu.seul.org/