japaric / cargo-call-stack

Whole program static stack analysis
Apache License 2.0
560 stars 50 forks source link

How to run the examples? #98

Open neoneye opened 1 year ago

neoneye commented 1 year ago

First of all, I really appreciate what you are doing.

Problem

The readme describes how to run the examples.

There is a firmware/examples dir. I wonder if these are the examples that the readme is referring to? How do I run these examples?

I'm getting the same error as in https://github.com/japaric/cargo-call-stack/issues/91

PROMPT> cargo +nightly call-stack --example app > cg.dot     
error: -Zbuild-std requires --target

I don't see any examples named app nor main.

I guess the way to use the examples are like this, but I'm getting the error: -Zbuild-std requires --target error.

PROMPT> pwd
/home/experiments/cargo-call-stack/firmware
PROMPT> cargo +nightly call-stack --example abs-i32 > cg.dot
error: -Zbuild-std requires --target

Proposal

Show how to run one of the example programs in greater detail.