Ticket #91 (new enhancement)
Bring in the Mono C# compiler backend
Reported by: | Chuck | Owned by: | |
---|---|---|---|
Priority: | medium | Milestone: | |
Component: | Cobra Compiler | Version: | 0.8.0 |
Keywords: | Cc: |
Description
In April 2008, the Mono C# 2.0 compiler was released under the unrestrictive MIT license. Previous versions had been under GPL which was not compatible with Cobra's MIT license (we would have had to change it).
See http://www.mono-project.com/news/archive/2008/Apr-08.html
I believe the initial approach we can take for this ticket is the following:
- Get the Mono mcs.exe compiler rebuilt as mono-sharp.dll
- Ensure that mono-sharp.dll has public API calls to compile source code from memory (a .NET string) and to take options.
- That eliminates disk I/O.
- Have cobra.exe reference mono-sharp.dll and invoke it.
- That eliminates process launching.
The ability to generate C# to disk and invoke the compiler should be left in place for some time in case we find ourselves in need of it.
Change History
Note: See
TracTickets for help on using
tickets.