Skip to content

A C++ program that replicates its own code and then re-compiles itself

License

Notifications You must be signed in to change notification settings

tg-m/cpp-self-replicate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Self-recompiling C++ program

Just an idea of how one can write a program that re-compiles itself ad infinitum

Running

g++ main.cc -o main.run
./main.run

Killing

# 'head -64' is useful when the program has been left running for too long
ps aux | grep "/tmp/x.run" | head -64 | awk '{print $2}' | xargs kill -9

About

A C++ program that replicates its own code and then re-compiles itself

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages