https://github.com/printfn/quines
Quines!
https://github.com/printfn/quines
Last synced: 3 months ago
JSON representation
Quines!
- Host: GitHub
- URL: https://github.com/printfn/quines
- Owner: printfn
- License: gpl-3.0
- Created: 2022-11-12T06:10:32.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-13T01:37:59.000Z (over 2 years ago)
- Last Synced: 2025-01-18T07:12:56.905Z (5 months ago)
- Language: Assembly
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# quines
## C
```sh
diff quine.c <(clang quine.c && ./a.out)
```## C (`putchar`)
```sh
diff quine-putchar.c <(clang quine-putchar.c && ./a.out)
```## Assembly (linux-x86_64)
```sh
nasm -f elf64 x86_64-linux.asm
ld x86_64-linux.o
diff x86_64-linux.asm <(./a.out)
```Or when cross-compiling from e.g. `aarch64`:
```sh
sudo apt install nasm gcc-x86-64-linux-gnu qemu-user
nasm -f elf64 x86_64-linux.asm
x86_64-linux-gnu-ld x86_64-linux.o
qemu-x86_64 ./a.out
```