Skip to content

Commit

Permalink
Generate nm output and pipe through rustfilt
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Oct 8, 2023
1 parent 95d643d commit a2bf3f7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,18 @@ fn asm() -> AnyResult<()> {
.stdout_path("target/asm.s")
.run()?;

cmd!(
"xtensa-esp32s3-elf-nm",
"./target/xtensa-esp32s3-none-elf/release/card_io_fw",
"-S",
"--size-sort",
)
.stdout_path("target/syms.txt")
.run()?;

cmd!("rustfilt", "-i=target/asm.s", "-o=target/asm_filt.s").run()?;
cmd!("rustfilt", "-i=target/syms.txt", "-o=target/syms_filt.txt").run()?;

println!("🛠️ Assembly saved to target/asm.s");

Ok(())
Expand Down

0 comments on commit a2bf3f7

Please sign in to comment.