IL2C
IL2C copied to clipboard
IL2C - A translator for ECMA-335 CIL/MSIL to C language.
For example, C# with P/Invoke way: ```csharp struct Foo { } struct Bar { // Foo* field1; // C# and P/Invoke can't handle native pointer on the structure. IntPtr field1;...
```csharp void Foo1(params object[] args); void Foo2(__arglist args); ``` The paramarray will have to limitation, the max array element size limitation with hard-coded. I`m thinking about how realize arguments like:...
#57 related.
* How and how automated? * What targets?
To support c89 with try catch you could base your output off "setjmp" && "longjmp". ``` #include #include jmp_buf __threadExceptionBuff; #define TRY switch(setjmp(__threadExceptionBuff)) { case 0: while(1) { #define CATCH(x)...
Continue from #20 , Now we can throw exception, we have to replace from assert expression to throw.
I believe this project should make an appeal about performance at every release. How about run aobench at CI? https://github.com/syoyo/aobench/blob/master/ao.c