[Mono-list] C++/CLI

Marcus mathpup@mylinuxisp.com
Sun, 23 Nov 2003 10:04:07 -0600


This is slightly off-from the C++/CLI specifically, but some type of compiler 
that is aware of GCC-produced C++ code and can produce managed code would be 
wonderful.

As someone working on calling C++ code from C#, I really would like a Free 
compiler like Managed Extensions to C++. It would eliminate so many problems 
if GCC could produce CLI assemblies and yet allow the user to call unmanaged 
code without having to use P/Invoke.

Unfortunately, it appears that there's a huge overhead in learning GCC's 
structure, and this would entail not only a new front end but also a back end 
that can emit managed and unmanaged (e.g. x86 code), so it would somehow have 
to invoke an existing back-end.

On Sunday 23 November 2003 8:09 am, Rob.Tillie@Student.tUL.EDU wrote:
> Well, they surely have improved over the __GC thing... but yes, still ugly
>
>
> I believe the main advantage of managed c++ is that you can mix managed /
> unmanaged code in a class, therefore making it a good language for interop
> tasks...
> But this is going to be a pain in the ass to implement... a pain in time at
> least.