GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - PlayerData/rust-stack-analysis

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
rust_stack_analysis
rust_stack_analysis
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
poetry.lock
poetry.lock
 
 
pyproject.toml
pyproject.toml
 
 
renovate.json
renovate.json
 
 

Repository files navigation

Analyse Rust Stack Allocations

Small utility to analyse stack size for rust libraries.

Installation

Dependencies

poetry install

Also requires that cargo and llvm-readobj are on your PATH.

On Mac, llvm-readobj can be installed using Homebrew:

brew install llvm

For convenience, rust_stack_analysis will automatically add Homebrew's default LLVM bin directory to PATH while attempting to execute llvm-readobj.

Rust

Until rustc's -Z emit-stack-size feature stabilizes (rust-lang/rust#54192), you must have the nightly toolchain installed.

rustup toolchain install nightly

Usage

Build for analysis

Enter the poetry shell:

poetry shell

From the root of your project:

analyse-rust-stack build

Pass any additional flags through to cargo (e.g.):

analyse-rust-stack build -- --no-default-features --target thumbv7em-none-eabi

Analyse

Now request analysis (e.g.):

analyse-rust-stack analyse target/thumbv7em-none-eabi/release/libgateway_nrf52840_rust.a
func_a: 10064 bytes
func_b: 4256 bytes
func_c: 792 bytes

About

No description, website, or topics provided.

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.