2024-08-11 16:40:20 +00:00
|
|
|
|
|
|
|
import "std"
|
|
|
|
|
2024-10-10 18:11:42 +00:00
|
|
|
#[nomangle]
|
2024-08-11 16:40:20 +00:00
|
|
|
fun main() {
|
2024-10-21 20:57:56 +00:00
|
|
|
|
|
|
|
ref u8: buf = std::mem::alloc(64 as u32)
|
|
|
|
ref u8: adr = buf
|
|
|
|
|
|
|
|
std::mem::realloc(buf, 32 as u32)
|
|
|
|
|
|
|
|
std::io::print("Hello, World\n", 13 as u32)
|
|
|
|
|
|
|
|
std::mem::free(buf)
|
2024-08-11 16:40:20 +00:00
|
|
|
}
|