2 releases
0.1.1 | Sep 8, 2019 |
---|---|
0.1.0 | Sep 3, 2019 |
#408 in Memory management
19MB
197K
SLoC
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);
}