Forums

C# Compiler

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

C# Compiler

Postby torial » Fri Feb 05, 2010 4:59 pm

Thought this might be of interest:
http://blogs.msdn.com/ericlippert/archi ... sses.aspx'

Does Cobra make this many passes?
torial
 
Posts: 229
Location: IA

Re: C# Compiler

Postby Charles » Sat Feb 06, 2010 12:12 am

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.
Charles
 
Posts: 2515
Location: Los Angeles, CA


Return to Discussion

Who is online

Users browsing this forum: No registered users and 83 guests