Skip to content

Instantly share code, notes, and snippets.

@izabera
Last active October 19, 2024 01:35
Show Gist options
  • Select an option

  • Save izabera/9d14ea5f0a450d40b422d8a057ab23b8 to your computer and use it in GitHub Desktop.

Select an option

Save izabera/9d14ea5f0a450d40b422d8a057ab23b8 to your computer and use it in GitHub Desktop.
an 8 byte binary that does 1 syscall (exit) and that takes 8 seconds to run on my machine
.globl _start
_start:
dec %ecx # comment this out for a 6 byte binary that takes ~1090 years :)
loop:
loop loop
mov $60, %al
syscall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment