From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,28b0249f7691568e X-Google-Attributes: gid1164f8,public X-Google-Thread: 102b75,28b0249f7691568e X-Google-Attributes: gid102b75,public From: seh@quadrizen.com (Stephen E. Halpin) Subject: Re: Alpha in peril? First Canion, now Pfieffer (I do think so) Date: 1999/05/29 Message-ID: <374f7f03.52322812@news.ultranet.com>#1/1 X-Deja-AN: 483373562 References: <371AD875.407C6B83@igs.net> <926495090.942894@haldjas.folklore.ee> <37396C9A.BD7A1D3B@hda.hydro.com> <7hestq$ovk$1@null.agames.com> X-Trace: gRchLvQIKzrGxlYB91MOk2Voc14KYOBx0AL4Iv7es3Y= NNTP-Posting-Date: 29 May 1999 05:49:50 GMT Newsgroups: comp.arch,comp.sys.dec X-Complaints-To: abuse@rcn.com On 13 May 1999 15:59:54 GMT, albaugh@agames.com (Mike Albaugh) wrote: >Bruce Hoult (bruce@hoult.actrix.gen.nz) wrote: > >: I understand that some flavour of Unix is running on Palm Pilot now. >: Whether Linux or BSD I don't recall. > >: Since that's a 68000 with no MMU, in order to get fork() to work I expect >: they must have *had* to make all pointer dereferences based -- so that >: fork() copies the stack & heap elsewhere and just changes some designated >: An register. Assuming that's how it is done, I can't imagine any >: practical way to do it other than through compiler support. > >: Anyone knows different? > > I don't know about Palm/Unix, but have a problem with terms like >"must" :-) Minix on the Atari ST (A computer that, despite the name, had >nothing to do with the Atari _I_ work for :-) implemented fork() by >swapping, just as many early Unices did. Of course, they tried hard to >swap to memory, rather than drum, er... disk. They also tended to run the >child first, right after the fork, because odds were very good that it >would quickly exec(), mooting the swap. Ugly as this sounds, it actually >makes a certain amount of sense. Certainly more sense than expecting the >average Unix app to be sufficiently disciplined in its use of pointers >to allow based pointers to "just work" with a modified compiler. OTOH, >I seem to recall that the compiler for the Palm has 16-bit ints, but 32-bit >pointers. Perfectly legal for C, and arguably "the right thing to do" for >the 68000, but likely to make a whole lot of common code blow chunks. >Including at least one popular "portable" Smalltalk(tm) clone. Nearly 15 years ago more C code would barf on 64-bit machines than 16-bit machines (particularly when a short on the 64-bit machine was 32-bits) though there were a lot of people who coded as if "all the world was a VAX." > Mike >| albaugh@agames.com, speaking only for myself -Steve