ciplogic / coderefractor Goto Github PK
View Code? Open in Web Editor NEWMSIL/CIL to Native C++ Compiler
MSIL/CIL to Native C++ Compiler
Module Module1
Private Declare Function MessageBoxA Lib "user32" (
hWnd As System.IntPtr,
lpText As String,
lpCaption As String,
uType As UInteger
) As Integer
Sub Main()
MessageBoxA(System.IntPtr.Zero, "Hello, world!", "Test", 64)
End Sub
End Module
I managed to fix that by using the (-1) cast below:
var methodResult = declaringType.GetMember(methodName, (System.Reflection.BindingFlags)(-1));
Thanks.
For example having:
var message = "test";
message += "other";
System.Console.WriteLine("main entered");
in main will trigger the optimisations call, while having in Main()
only:
System.Console.WriteLine("main entered");
will not.
In case methods that are not used are reached, the remove not reachable methods optimization enters an infinite loop.
Just pulled the code and made no code changes. First run I get the error:
"Calling the compiler failed: Index was out of range. Must be non-negative and less than the size of the collection"
Also why are you not just spitting out ".h" and ".cpp" sources so I can compile with any native compiler? iOS uses Clang, Windows Phone uses VC++ ect
I downloaded the release version I'm trying to use SimpleAdditions like this:
SimpleAdditions myfile.il
But it output the number 4 on the screen and doesn't generate the C++ output file. Is this a error code? if so, where can I get more information what does it means? I'd like a working example how to use the application. If matters, the MSIL I'm trying to compile is one decompiled from a C# executable http://pastebin.com/uh82RUbV
Thanks in advance
This reduces the global state like development
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.