C# Compiler
Posted:
Fri Feb 05, 2010 4:59 pm
by torial
Thought this might be of interest:
http://blogs.msdn.com/ericlippert/archi ... sses.aspx'Does Cobra make this many passes?
Re: C# Compiler
Posted:
Sat Feb 06, 2010 12:12 am
by Charles
Cobra makes 11 passes. As with the C# compiler, not all aspects of a program are necessarily visited in a given pass.
You can examine Cobra\Source\Phases for a list of the phases. Some (all?) have doc strings describing them. You can also run "cobra -v" which will cause (among other output) each phase to name itself as it runs.
Note that because Cobra uses C# as a back-end it can be lazy about some things. We don't bother with IL generation since it's not clear there would be any advantage over Microsoft or Novell C#'s high quality IL generation.