Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

TruncatedDinoSour/low-hello-world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This repository has been migrated to the self-hosted ari-web Forgejo instance: https://git.ari.lt/ari/low-hello-world

Low hello world

Lower and lower level Hello World programs

Compiling, running and ratings

Rated from highest to lowest level:

  • hello_world.sh

POSIX sh hello world

$ sh hello_world.sh
  • hello_world.py

Python hello world

$ python3 hello_world.py
  • hello_world.c

C hello world

$ gcc hello_world.c -o hello_world
$ ./hello_world
  • hello_world.rys

Rys hello world

$ rysc hello_world.rys -linux-elf64-x86_64-nasm
$ ./hello_world
  • hello_world.asm

Assembly hello world

$ nasm -felf64 hello_world.asm
$ ld -o hello_world hello_world.o   
$ ./hello_world
  • hello_world.bin.py

Pure ELF64 hello world

$ python3 hello_world.bin.py
$ chmod a+rx ./hello_world
$ ./hello_world