2023-04-19 14:17:48 +01:00
|
|
|
const builtin = @import("builtin");
|
|
|
|
|
|
|
|
extern "c" fn write(c_int, usize, usize) usize;
|
2022-04-27 22:36:29 +01:00
|
|
|
|
|
|
|
pub fn main() void {
|
|
|
|
print();
|
|
|
|
print();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn print() void {
|
2023-06-15 08:14:16 +01:00
|
|
|
const msg = @intFromPtr("What is up? This is a longer message that will force the data to be relocated in virtual address space.\n");
|
2022-04-27 22:36:29 +01:00
|
|
|
const len = 104;
|
|
|
|
_ = write(1, msg, len);
|
|
|
|
}
|
|
|
|
|
|
|
|
// run
|
|
|
|
//
|
|
|
|
// What is up? This is a longer message that will force the data to be relocated in virtual address space.
|
|
|
|
// What is up? This is a longer message that will force the data to be relocated in virtual address space.
|
|
|
|
//
|