Giter Site home page Giter Site logo

open loop in uica about cargo-show-asm HOT 4 OPEN

pacak avatar pacak commented on August 11, 2024
open loop in uica

from cargo-show-asm.

Comments (4)

PSeitz avatar PSeitz commented on August 11, 2024

Awesome that support for llvm-mca has been added

Could uica also be supported? (via their cli tool https://github.com/andreas-abel/uiCA)

from cargo-show-asm.

pacak avatar pacak commented on August 11, 2024

Supporting it means approximately those steps:

  1. figuring out what we want to pass to it - already implemented
  2. preparing an foo.s file with just that function - can be easy but might be annoying to deal with other platforms
  3. compiling the file to make foo.o file - as foo.s foo.o on Linux, not sure about other platforms
  4. calling ./uiCA.py foo.o $ARGS - again on Linux, not sure what's involved on other platforms, probably assuming uiCA.py being in $PATH can be enough.

As a result I can easily support Linux but with MacOS/Windows it will be a situation similar to #137.

One other option is to provide a way to dump a function with unmangled names so uiCA or any other tool can be used with a simple script that would first call cargo-show-asm and then do whatever.

Third way that might work is doing a POST request to the url I posted but this means more dependencies and potentially leaking users code which is not good.

I guess I'll see how far doing it the right way gets me... What platform are you on?

from cargo-show-asm.

PSeitz avatar PSeitz commented on August 11, 2024

I'm on Linux, which is I guess a common platform to do that kind of performance analysis.
Wouldn't rust's cross compilation help for other platforms? #137

  1. preparing an foo.s file with just that function - can be easy but might be annoying to deal with other platforms

How does that work with function calls, when something is not inlined?

from cargo-show-asm.

pacak avatar pacak commented on August 11, 2024

I'm on Linux, which is I guess a common platform to do that kind of performance analysis.

There are tickets about MacOS/Windows too. Anyway, I'll see how far I can get this on Linux. Fairly low priority right now though.

Wouldn't rust's cross compilation help for other platforms? #137

It will help to generate the code (alternatively I can copy paste them from dumps in CI), but I still need to deal with platform specific differences to how functions are exported - how to detect them, etc. More about lack of motivation for going into platform specific gory details for a very niche edge case.

How does that work with function calls, when something is not inlined?

It does not work at the moment. This kind of analysis makes sense for really hot loops and having an uninlined function call in the middle of it seems like a great candidate for a fix.

from cargo-show-asm.

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.