Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!gatech!bloom-beacon!eru!hagbard!sunic!dkuug!iesd!iesd.auc.dk!per From: per@iesd.auc.dk (Per Langfeldt Hagen) Newsgroups: comp.sys.amiga.programmer Subject: Re: 20 byte "Hello World" program. Message-ID: Date: 4 Mar 91 11:27:33 GMT References: <45932@nigel.ee.udel.edu> <1991Mar1.061020.9083@grebyn.com> Sender: news@iesd.auc.dk Organization: Mathematics and Computer Science, University of Aalborg Lines: 37 In-reply-to: ckp@grebyn.com's message of 1 Mar 91 06:10:20 GMT >>>>> 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% This was on a sun4. I will hurry and scratch the executable. An other thing. I was surprised that it did not take any longer to load the program: rho% /usr/bin/time hello Hello World 1.5 real 0.0 user 0.2 sys It (the sun4) could not have loaded the entire 20Meg in that time, so it must be able to only load the necessary code and datasegments. This would be nice to have on the Amiga!!! /Per I want an MMU.