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: amos@nsof.co.il-n0spam Subject: Re: Alpha in peril? First Canion, now Pfieffer (I do think so) Date: 1999/05/17 Message-ID: <7hp59g$igr$1@lnews.actcom.co.il>#1/1 X-Deja-AN: 478962388 References: <371AD875.407C6B83@igs.net> <7g4tng$5ue$1@nnrp1.dejanews.com> <7h7vnn$2ts$15@nntp.Stanford.EDU> <5l4sljqx5d.fsf@tequila.cs.yale.edu> <926495090.942894@haldjas.folklore.ee> <37396C9A.BD7A1D3B@hda.hydro.com> Organization: nSOF Parallel Software Newsgroups: comp.arch,comp.sys.dec bruce@hoult.actrix.gen.nz (Bruce Hoult) writes: >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 once did it on such a system (68000 with no MMU), without compiler support. I assumed all pointers referencing stack variables were themselves stored on the stack (no point in storing them in global variables); then it was done by pointer swizzling -- scanning the stack for appropriate values and adding a constant offset. Surprisingly, it worked... -- Amos Shapir Paper: nSOF Parallel Software, Ltd. Givat-Hashlosha 48800, Israel Tel: +972 3 9388551 Fax: +972 3 9388552 GEO: 34 55 15 E / 32 05 52 N