Skip to content

Comment on The smallest Hello World programparent

Comments

Assuming it is initial zero

   inc eax
is a byte shorter than mov al, 1

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 :)

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.