From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b75,28b0249f7691568e X-Google-Attributes: gid102b75,public X-Google-Thread: 1164f8,28b0249f7691568e X-Google-Attributes: gid1164f8,public From: albaugh@agames.com (Mike Albaugh) Subject: Re: Alpha in peril? First Canion, now Pfieffer (I do think so) Date: 1999/05/13 Message-ID: <7hestq$ovk$1@null.agames.com>#1/1 X-Deja-AN: 477456449 References: <371AD875.407C6B83@igs.net> <926495090.942894@haldjas.folklore.ee> <37396C9A.BD7A1D3B@hda.hydro.com> Followup-To: comp.arch,comp.sys.dec X-Complaints-To: abuse@agames.com X-Trace: null.agames.com 926611194 25588 192.245.83.156 (13 May 1999 15:59:54 GMT) Organization: Atari Games Corporation NNTP-Posting-Date: 13 May 1999 15:59:54 GMT Newsgroups: comp.arch,comp.sys.dec 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. Mike | albaugh@agames.com, speaking only for myself