Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!uwvax!oddjob!gargoyle!ihnp4!homxb!mtuxo!mtune!codas!killer!usl!usl-pc!jpdres10 From: jpdres10@usl-pc.UUCP (Green Eric Lee) Newsgroups: comp.sys.amiga Subject: Ami - MINIX problem for gurus Message-ID: <374@usl-pc.UUCP> Date: Fri, 20-Nov-87 16:39:12 EST Article-I.D.: usl-pc.374 Posted: Fri Nov 20 16:39:12 1987 Date-Received: Mon, 23-Nov-87 05:35:25 EST References: <8711180347.AA10717@jade.berkeley.edu> Organization: Univ. of Southwestern La., Lafayette Lines: 23 In message <8711180347.AA10717@jade.berkeley.edu>, JPARR@UREGINA1.BITNET (John Parr) says: >Hi all: > I ran across a technical difficulty when trying to port MINIX to the >Amiga. How the heck can you do a fork? With difficulty :-). The best solution that I've thought of for this problem is to make your compiler generate relative code, that is, all addresses either PC-relative or relative to stack/frame registers. Then for your fork, all you have to do is copy to a new place, adjust your registers accordingly, and presto, you're truckin'. That has a couple of flaws. It slows things down, limits your program to around 64K in size, etc. etc. etc. However, considering that Minix was designed to run in 64K of program and 64K of data anyhow (albeit with the more-compact 808x instruction coding), on a 4.7mhz 8088... -- Eric Green elg@usl.CSNET P.O. Box 92191, Lafayette, LA 70509 {ihnp4,cbosgd}!killer!elg, {ut-sally,killer}!usl!elg "Clothes make the man. Naked people have little or no influence on society." -- Mark Twain