The Shortest Crashing C Program
llbit.se
The Shortest Crashing C Program
1–10 of 94 posts
Re: The Shortest Crashing C Program
#2Re: The Shortest Crashing C Program
#3[1] http://www.muppetlabs.com/~breadbox/software/tiny/teensy.htm...
Re: The Shortest Crashing C Program
#4Re: The Shortest Crashing C Program
#5I find it hard to believe that the C89 spec states that an integer called "main" is to be considered the main function, and suspect this is undefined behaviour (though I've not checked).
Re: The Shortest Crashing C Program
#6Re: The Shortest Crashing C Program
#7$ touch a.c
$ gcc -c a.c
$ ld a.o
ld: warning: cannot find entry symbol _start; defaulting to 0000000000400078
$ ./a.out
Segmentation fault
Re: The Shortest Crashing C Program
#8Seems to work really well: It even crashed the website.
Re: The Shortest Crashing C Program
#9It seems to be down, google cache: http://webcache.googleusercontent.com/search?q=cache:4FhUcns...
Re: The Shortest Crashing C Program
#10I'm not convinced this is a C89 program. It is only an "accident" that the linker doesn't know about types. I find it hard to believe that the C89 spec states that an integer called "main" is to be considered the main function, and suspect this is undefined behaviour (though I've not checked).