Code Monkey home page Code Monkey logo

coderefractor's People

Contributors

afrog33k avatar bmustiata avatar ciplogic avatar cipriankhlud avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

coderefractor's Issues

Four issues

    • Compiler is not able to load an assembly when it is not in the same folder as itself.
      I was able to circunvent that by copying my .EXE to the same folder as the compiler, but the fix should be easy.
    • Using Microsoft Visual Studio 2012 Express, I got an exception in the following line:
      operationFactory.PushInt64((int) instruction.Operand);
      Something about not being able to convert an sbyte to int. My quick fix was to use Convert.ToInt32 instead.
    • Compiler was not able to find the function MessageBoxA below (that's the entirety of my test project):
      Option Compare Binary
      Option Explicit On
      Option Infer On
      Option Strict On

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));

    • Then I hit a metaphorical wall: Compiler was not compiling the call to the external function, but throwing an exception:
      if (PlatformInvokeMethod.IsPlatformInvoke(Method))
      throw new InvalidDataException(string.Format(
      "Should not run it on current method: {0}", Method)
      );

Thanks.

Compiler Optimizations Aren't Always Called

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.

Errors compiling

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

SimpleAdditions doesn't generate C++ output file

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.