An open API service indexing awesome lists of open source software.

https://github.com/davidbuchanan314/magic-helloworld

A program that prints "Hello World!" by magic, with a single memcpy.
https://github.com/davidbuchanan314/magic-helloworld

Last synced: 2 months ago
JSON representation

A program that prints "Hello World!" by magic, with a single memcpy.

Awesome Lists containing this project

README

        

# magic-helloworld
A program that prints "Hello World!" by magic, with a single memcpy.

I've only tested this with `gcc (GCC) 6.1.1 20160501`, so it probably won't work with anything else. If you don't have that exact version of GCC, you can just run the included binary.

Compile with `gcc -m32 magic.c -o magic`

The explanation of how it works is left as an exercise for the reader.