[−][src]Crate card10_alloc
Support for dynamically allocated memory
Reproduces l0dable hardware.c's _sbrk()
Unfortunately, we cannot link _sbrk()directly because it references the unwieldy
errno`.
Example
#![no_std] #![no_main] extern crate alloc; use alloc::vec; use card10_l0dable::*; main!(main); fn main() { // Pass stack headroom card10_alloc::init(128 * 1024); let mut xs = vec![]; xs.push(23); }
Functions
init | Call this before using anything from |