Coder Social home page Coder Social logo

Comments (8)

dadhi avatar dadhi commented on May 20, 2024 1

Existing options

  1. https://github.com/drewnoakes/il-visualizer
  2. https://github.com/bartdesmet/ExpressionFutures/tree/master/CSharpExpressions/Tests.Microsoft.CodeAnalysis.CSharp.Helpers/ILVisualizer
  3. https://github.com/longda/roslyn/tree/89169a3380e48fc834c72e38355867881d030e94/Src/Test/PdbUtilities/Metadata

from fastexpressioncompiler.

dadhi avatar dadhi commented on May 20, 2024

Ok, it was a lot of words. What exactly should we do:

  1. Output the IL for fast compiled delegate.
  2. Output the IL for normally compiled delegate.
  3. If possible output target Asm for both.
  4. IL output obviously should not affect compilation performance.

from fastexpressioncompiler.

dadhi avatar dadhi commented on May 20, 2024

Here is working IL Visualizer for VS 2017: https://github.com/dadhi/il-visualizer

from fastexpressioncompiler.

dadhi avatar dadhi commented on May 20, 2024

The produced IL is the same :)

IL_0000: ldarg.1    
IL_0001: ldarg.2    
IL_0002: add        
IL_0003: ret        

Therefore the difference in calling the delegate.
I have an idea to test 3 parameters delegate with first empty Closure argument instead of static delegate with 2 parameters.

from fastexpressioncompiler.

dzmitry-lahoda avatar dzmitry-lahoda commented on May 20, 2024

My current approach:
image

https://en.wikipedia.org/wiki/List_of_CIL_instructions

from fastexpressioncompiler.

dzmitry-lahoda avatar dzmitry-lahoda commented on May 20, 2024

2017 support https://github.com/drewnoakes/il-visualizer merged into main repository. So may star and use only that. It seems nice helper to add into contibuting part of readme. bartdesmet does intresting work regarding expression so.

from fastexpressioncompiler.

dadhi avatar dadhi commented on May 20, 2024

Yep, I was also thinking to add it to readme, time-saver for me, especially in debug.

from fastexpressioncompiler.

dadhi avatar dadhi commented on May 20, 2024

The new diagnostics instruments available from the TestTools class:

  • PrintIL()
  • PrintCSharpString()
  • AssertOpCodes()

from fastexpressioncompiler.

Related Issues (20)

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.