Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

/prog/ challenge

Name: Anonymous 2012-06-29 12:53

create the most inefficient 'hello world' program imaginable

Name: Anonymous 2012-06-29 19:06

#include <stdlib.h>
void func(){}
void padding(){
    int stack[1048576];
}
int main(int argc, char * argv[]){
    int i = 0; // Adjust according to calling convention
    int * m = &func;
    while(i < 1048576)
        m[i] = rand();   
    func(); // Watch it burn
}

gcc -O0 ohgodwhy.c


sometimes prints Hello, World!
almost always crashes
that is good

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List