Skip to main content

Crate avr_stack

Crate avr_stack 

Source
Expand description

This crate provides helper functions for stack analysis on AVR.

estimate_unused_stack_space: Estimate the number of stack bytes that have never been used.

§Initialization of stack space

The main crate must call the init_stack_pattern macro once to define the stack initialization function.

On initialization, all of the stack space is overwritten with a byte PATTERN by the macro. The code that does this runs from the linker section .init4.

Macros§

init_stack_pattern
Define an .init4 function to initialize the stack.

Constants§

PATTERN
Memory pattern for unused stack space.

Functions§

estimate_unused_stack_space
Returns the number of stack bytes that have never been written to.