This commit is contained in:
2026-02-25 14:08:27 +01:00
parent 8a8034bd11
commit 4dc05c4151
23 changed files with 554 additions and 66 deletions

View File

@@ -1,11 +1,26 @@
#![no_std]
#![no_main]
#![feature(fmt_internals)]
use core::fmt::{write, Arguments, Write};
use os_std::syscall;
os_std::custom_std_setup! {}
use os_std::syscall::write_string_temp;
fn main() {
write_string_temp(
"Hello from PIC program loaded dynamically with custom std and a better justfile, and syscalls !",
);
let mut test = String::new();
test.push('A');
test.push('B');
for _ in 0..50 {
test.push('C');
}
let mut b = String::from("test");
// (&mut b as &mut dyn Write).write_str("string: uaeuieuei");
syscall::write_string_temp(&b);
// write(&mut b, Arguments::from_str_nonconst("string: uaeuieuei"));
// write(&mut b, format_args!("string: uaeuie{}", "uei"));
// syscall::write_int_temp(b.capacity() as u64);
// syscall::write_string_temp(&b);
// println!("{}", test);
// println!("Hello from PIC program loaded dynamically with custom std and a better justfile, and syscalls !");
}