|
Friday, April 26, 2002 |
The files to enable compiling Goo under .NET are available here. Unzip into your Goo directory so that the relevant files go under the 'C' and 'C/G2C' subdirectories. Run 'C/G2C/build.bat' to compile.
Note that this is a quick hack to get things working. Various caveats and problems are listed below. Any assistance on any of these appreciated. Email me if you can provide details.
- For the changes I used _MSC_VER as the define to test against but I
really need to find what define to use for .NET specifically rather than a Microsoft Visual C++ compiler generic define.
- I had to add prototypes for various functions in grt.h and these should
really be moved somewhere more valid. The Managed C compiler requires prototypes for functions. See the end of grt.h for details. I also had to add (char*) casts to some of the pointer manipulation for the compiler to be happy.
- No garbage collection yet. Not sure quite how to
manage that but I'll look into it. Anyone know how to allocate memory from the garbage collector from C?
6:10:56 PM
|
|
I've just succeeded in building Goo using the C compiler that ships with the Microsoft .NET framework SDK. I build it using the /CLR option which makes it a .NET application. I'm hopinh it's a start to being able to use the Goo programming language with the .NET class library. Goo is a Scheme like language based on concepts from Scheme, Dylan, Cecil and Common Lisp.
11:45:32 AM
|
|
© Copyright 2005 Chris Double.
|
|
|