Updated: 11/5/2005; 6:01:50 PM.
Chris Double's Radio Weblog

Wednesday, May 01, 2002

Update on getting Goo to work on .NET.

I was unable to get the .NET garbage collector to be used for allocating Goo objects without making a large number of changes to the Goo source. Instead I compiled the Boehm collector that Goo uses as a DLL and continue to use that for Goo objects.

The result is there are three heaps used in the Goo .NET version. They are the standard C heap (malloc, free, etc), the CLR heap (managed obects) and the Boehm heap (Goo objects).

Goo objects can hold references to CLR objects by using GCHandle. So far this seems to work well although I need to do a little fine tuning before releasing the code.

I've also written a program in C# to generate Goo interfaces to .NET frameworks. It uses the reflection API to generate the Goo code which can then be added to the Goo system by rebuilding. I hope to make this possible to do without rebuilding soon.

I still need to solve the problem of getting the 'Goo to C' generator to generate function prototypes as the Managed C++ compiler requires this. But I'm working around that at this stage.

1:21:05 PM      

© Copyright 2005 Chris Double.
May 2002
Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
Apr   Jun

Click here to visit the Radio UserLand website.

Listed on BlogShares

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.