News for hackers. Stuff that matters.
Re:The smallest Hello World program by retrac on Thursday January 02, 2025 @04:52PM (#42579331)
Assuming it is initial zero

   inc eax
is a byte shorter than mov al, 1
Re:The smallest Hello World program by rep_lodsb on Thursday January 02, 2025 @04:56PM (#42579363)
Yes, but only in 32 bit mode. Not that it matters, except for the hypothetical future processor or Linux kernel that is no longer compatible with that :)