Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!uupsi!grebyn!ckp From: ckp@grebyn.com (Checkpoint Technologies) Newsgroups: comp.sys.amiga.programmer Subject: Re: 20 byte "Hello World" program. Message-ID: <1991Mar5.051320.22675@grebyn.com> Date: 5 Mar 91 05:13:20 GMT References: <1991Mar1.061020.9083@grebyn.com> Organization: Grebyn Timesharing Lines: 44 In article per@iesd.auc.dk (Per Langfeldt Hagen) writes: >>>>>> On 1 Mar 91 06:10:20 GMT, ckp@grebyn.com (Checkpoint Technologies) said: > >> dillon@overload.Berkeley.CA.US (Matthew Dillon) writes: >> How about somebody post a 20MB "Hello World" program instead !8-) >> >> -Matt > >ckp> #include > >ckp> static char hello[20971520] = "Hello World"; > >ckp> int main(int argc, char **argv) { >ckp> printf(hello); >ckp> exit(0); >ckp> } > >It works :-). gcc -o hello hello.c >rho% ls -l hello* >-rwxrwxr-x 1 xputer xputer 21068206 Mar 4 11:07 hello >-rw-rw-r-- 1 xputer xputer 128 Mar 4 10:44 hello.c > >rho% hello >Hello Worldrho% S**t - forgot the newline. I'll get started writing the spec for the revision. If I can push through the funding for the change order, then maybe I can get it into field testing sometime in early-mid summer, and maybe you'll see the revised version published in time for xmas. (These large programs sure are a pain to maintain...) :-) -- First comes the logo: C H E C K P O I N T T E C H N O L O G I E S / / \\ / / Then, the disclaimer: All expressed opinions are, indeed, opinions. \ / o Now for the witty part: I'm pink, therefore, I'm spam! \/