ç¿ æ˜ŸçŸ³ on Nostr: nekonomicon Pawlicker 🔧 >Using a optionally weakly licensed libc (MIT expat) that ...
nekonomicon (nprofile…r8am) Pawlicker 🔧 (nprofile…nvyk) >Using a optionally weakly licensed libc (MIT expat) that requires loading the whole bloated Linux (rather than just GNU Hurd or GRUB's kernel).
Just write in assembly with no libc at that stage;
Buffer: db 'Hello World!',0xA
BufferSize: equ $-Buffer
section .text
global _start
_start:
mov edi, 1 ;stdout
mov rsi, Buffer
mov rdx, BufferSize
mov eax, 1 ;sys_write
syscall
exit: mov eax, 60 ;sys_exit
xor edi, edi ;return 0
syscall
(nasm assembles it into 8.8KiB and you can't do much better than that).
Just write in assembly with no libc at that stage;
Buffer: db 'Hello World!',0xA
BufferSize: equ $-Buffer
section .text
global _start
_start:
mov edi, 1 ;stdout
mov rsi, Buffer
mov rdx, BufferSize
mov eax, 1 ;sys_write
syscall
exit: mov eax, 60 ;sys_exit
xor edi, edi ;return 0
syscall
(nasm assembles it into 8.8KiB and you can't do much better than that).