Search Results
7/8/2025, 3:33:53 AM
>>212535040
no more brother wars
no more brother wars
6/24/2025, 10:10:23 AM
#![no_std]
#![no_main]
use core::panic::PanicInfo;
use core::arch::asm;
#[panic_handler]
fn panic(_info: &PanicInfo) -> ! {
loop {} // >A-AAAAAAAAAAAAAACK!
}
#[unsafe(no_mangle)] // unmangled corpses very unsafe
pub extern "C" fn _start() -> ! {
let msg = "Hello, World!\n";
unsafe {
asm!(
"syscall",
in("rax") 1,
in("rdi") 1,
in("rsi") msg.as_ptr(),
in("rdx") msg.len(),
options(nostack)
);
asm!(
"syscall",
in("rax") 60,
in("rdi") 0,
options(nostack, noreturn, nomem)
);
}
}
I found a way to make troons and chuds seethe. Reminder: resulting binary is smaller than equivalent C.
#![no_main]
use core::panic::PanicInfo;
use core::arch::asm;
#[panic_handler]
fn panic(_info: &PanicInfo) -> ! {
loop {} // >A-AAAAAAAAAAAAAACK!
}
#[unsafe(no_mangle)] // unmangled corpses very unsafe
pub extern "C" fn _start() -> ! {
let msg = "Hello, World!\n";
unsafe {
asm!(
"syscall",
in("rax") 1,
in("rdi") 1,
in("rsi") msg.as_ptr(),
in("rdx") msg.len(),
options(nostack)
);
asm!(
"syscall",
in("rax") 60,
in("rdi") 0,
options(nostack, noreturn, nomem)
);
}
}
I found a way to make troons and chuds seethe. Reminder: resulting binary is smaller than equivalent C.
Page 1