From: dgriffi@cs.csbuak.edu (Dave Griffith)
Subject: Re: The Helsinki Code
Date: Mon, 12 Dec 2005 07:40:00 GMT [thread overview]
Message-ID: <kP9nf.28455$BZ5.18571@newssvr13.news.prodigy.com> (raw)
In-Reply-To: 1134362645.916762.143340@g43g2000cwa.googlegroups.com
In alt.folklore.computers slebetman@yahoo.com <slebetman@gmail.com> wrot
> By the way, historically that is not the shortest piece of source code
> ever written. Some time ago someone submitted a zero byte C source code
> (an empty file) to the obfuscated C contest. Amazingly gcc recognised
> it as a valid and legal C source code and compiled it into an
> executable. The program, when run, outputs nothing. Thus it also claims
> to be the shortest quine (self reproducing code) in history by printing
> out itself (nothing). It actually won the competition. After that, the
> obfuscated C contest banned all zero byte source code.
Too bad you can't do that anymore just for giggles. Do you remember the
hardware, OS, and compiler used? It still works with Perl.
zaphod:/tmp$ touch foo.c
zaphod:/tmp$ gcc --version
gcc (GCC) 3.3.3 (NetBSD nb3 20040520)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
zaphod:/tmp$ gcc -o foo foo.c
/usr/lib/crt0.o(.text+0x86): In function `___start':
: undefined reference to `main'
zaphod:/tmp$
--
David Griffith
dgriffi@cs.csbuak.edu <-- Switch the 'b' and 'u'
next prev parent reply other threads:[~2005-12-12 7:40 UTC|newest]
Thread overview: 88+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-12 3:27 The Helsinki Code dunric
2005-12-12 4:44 ` slebetman@yahoo.com
2005-12-12 5:02 ` Gib Bogle
2005-12-12 5:29 ` Richard Heathfield
2005-12-12 5:42 ` glen herrmannsfeldt
2005-12-12 8:02 ` Steve O'Hara-Smith
2005-12-12 14:06 ` Bernd Felsche
2005-12-12 20:36 ` Michael Roach
2005-12-12 16:28 ` Richard E Maine
2005-12-15 18:27 ` Dave Vandervies
2005-12-15 18:55 ` Michael Roach
2005-12-15 19:54 ` David Scheidt
2005-12-15 22:52 ` Steve O'Hara-Smith
2005-12-12 8:25 ` tholen
2005-12-12 5:30 ` Russell Shaw
2005-12-12 5:56 ` Jack Klein
2005-12-12 14:44 ` Malcolm Dunnett
2005-12-12 21:38 ` Charlie Gibbs
2005-12-13 2:16 ` Joe Wright
2005-12-13 16:03 ` Charlie Gibbs
2005-12-13 18:58 ` J. Anderson
2005-12-13 19:06 ` Pascal Bourguignon
2005-12-13 19:09 ` J. Anderson
2005-12-13 20:36 ` Charlie Gibbs
2005-12-13 21:44 ` J. Anderson
2005-12-20 19:07 ` H Vlems
2005-12-20 20:11 ` J. Anderson
2005-12-20 21:35 ` Charlie Gibbs
2005-12-20 22:17 ` J. Anderson
2005-12-13 20:35 ` Charlie Gibbs
2005-12-13 22:55 ` Michael Roach
2005-12-14 4:42 ` CJT
2005-12-14 5:59 ` Brian Boutel
2005-12-14 6:36 ` CJT
2005-12-14 7:39 ` Brian Boutel
2005-12-14 9:55 ` Wolfgang Riedel
2005-12-14 17:08 ` Richard E Maine
2005-12-14 21:30 ` Willem
2005-12-14 22:04 ` Bill Gunshannon
2005-12-14 22:46 ` Steve O'Hara-Smith
2005-12-14 17:26 ` Charlie Gibbs
2005-12-14 17:25 ` Charlie Gibbs
2005-12-14 18:50 ` KR Williams
2005-12-14 14:21 ` Mika Iisakkila
2005-12-12 7:40 ` Dave Griffith [this message]
2005-12-12 10:01 ` Morten Reistad
2005-12-12 16:23 ` Gerry Quinn
2005-12-12 16:28 ` Bill Gunshannon
2005-12-12 17:21 ` CJT
2005-12-12 18:41 ` Rich Townsend
2005-12-13 8:28 ` slebetman@yahoo.com
2005-12-12 5:20 ` glen herrmannsfeldt
2005-12-12 13:55 ` Michael Metcalf
2005-12-12 22:17 ` Mitja Trampus
2005-12-12 22:34 ` James Giles
2005-12-12 23:21 ` Sc0rpi0
2005-12-13 4:19 ` Richard Heathfield
2005-12-13 9:48 ` Randy Howard
2005-12-13 15:13 ` Malcolm Dunnett
2005-12-14 0:29 ` Peter Flass
2005-12-15 19:51 ` Patrick Scheible
2005-12-12 22:41 ` Stubby
2005-12-12 23:24 ` Michael Metcalf
2005-12-13 0:58 ` John Harper
2005-12-13 6:09 ` Dennis Ritchie
2005-12-13 7:15 ` Eric Smith
2005-12-13 15:50 ` Charlie Gibbs
2005-12-14 4:34 ` CJT
2005-12-14 17:41 ` Charlie Gibbs
2005-12-14 21:27 ` John Harper
2005-12-14 22:24 ` CJT
2005-12-15 0:22 ` Peter Flass
2005-12-15 1:44 ` Arthur J. O'Dwyer
2005-12-12 23:58 ` Peter Flass
2005-12-13 5:05 ` mcalhoun
2005-12-12 7:53 ` dunric
2005-12-13 8:46 ` slebetman@yahoo.com
2005-12-12 8:31 ` David Flower
2005-12-12 22:56 ` Max
2005-12-13 22:59 ` dunric
2005-12-14 0:41 ` Sjouke Burry
2005-12-12 15:38 ` Jim
2005-12-12 17:20 ` CJT
2005-12-12 17:38 ` Alfred Falk
2005-12-12 20:00 ` Jim
2005-12-12 20:18 ` CJT
2005-12-13 19:20 ` Kevin G. Rhoads
2005-12-14 14:24 ` Roland Hutchinson
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox