[Top][All Lists]

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

Re: [DotGNU]compiler status

From: Rhys Weatherley
Subject: Re: [DotGNU]compiler status
Date: Fri, 24 May 2002 21:27:29 +1000

Haran Shivanan wrote:
> Forgive my ignorance, but...
> What needs to be added to the compiler in order to make it compile
> the core C# library? What's missing from it?

"grep TODO *". :-)

> Also, how about optimizations?

Right now, only simple optimizations are performed.
e.g. rearranging loops for "while(true)", unwinding
boolean conditions, etc.  Constant folding will
also be done soon.

The more complex optimisations such as common
sub-expression elimination, loop unrolling, etc,
are best done in the engine once we get to the JIT.
The JIT can more easily profile the program's
behaviour to determine the best optimisations
to apply.

> Or is it way too early to think about that?

At the moment, yes.  "Make it work, and then make
it work better" is my motto with the compiler.

> I've gone through the faq and pnet home page but couldn't find anything
> concrete. Thanks.

It changes each week, so I haven't nailed it down in
the documentation.  The source is the best place to
start looking.

Unfortunately, most of the easy cases are already
done.  The hard stuff is left, and it is taking time.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]