Comments (4)
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.
Supporting it means approximately those steps:
- figuring out what we want to pass to it - already implemented
- preparing an
foo.s
file with just that function - can be easy but might be annoying to deal with other platforms - compiling the file to make
foo.o
file -as foo.s foo.o
on Linux, not sure about other platforms - calling
./uiCA.py foo.o $ARGS
- again on Linux, not sure what's involved on other platforms, probably assuminguiCA.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.
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
- 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.
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)
- Support inlining info in asm files
- `--print KIND=PATH` is stable
- Remove extraneous blank lines HOT 5
- `sample` test case is broken with 1.75 HOT 12
- Add use a separate library to implement syntax highlight for llvm/mir/asm
- Wrong path used for rustc sources HOT 10
- Automate release process
- --rust flag shows code from libstd HOT 4
- Function selection via index broken on v0.2.24 to v0.2.28 HOT 6
- Option to include called functions (to some depth) HOT 6
- Install fails with rustc 1.74.0 HOT 3
- [Bugfix]: release-plz workflow - ERROR failed to update packages HOT 3
- color output can be very difficult to read on dark backgrounds HOT 1
- `--simplify` removes inline assembly HOT 5
- Debug info included by default in 0.2.33 HOT 1
- Missing/incorrect line information HOT 6
- An easier way to compare different versions
- Missed no_mangle symbol in no_std/no_main Windows code HOT 10
- On 32bit Windows no_mangle names needs stripping
- Support `rustc_codegen_cranelift` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cargo-show-asm.