Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!nrl-cmf!ames!lll-lcc!pyramid!voder!apple!han From: han@apple.UUCP (Byron Han) Newsgroups: comp.sys.mac Subject: Re: An A/UX question... Message-ID: <6674@apple.UUCP> Date: Mon, 9-Nov-87 01:26:32 EST Article-I.D.: apple.6674 Posted: Mon Nov 9 01:26:32 1987 Date-Received: Wed, 11-Nov-87 04:30:36 EST References: <1039@phoenix.Princeton.EDU> <6622@apple.UUCP> <6635@apple.UUCP> <3117@husc6.UUCP> Reply-To: han@apple.UUCP (Byron Han) Organization: Apple Computer Inc., Cupertino, USA Lines: 35 In article <3117@husc6.UUCP> stew@endor.UUCP (Stew Rubenstein) writes: >In article <6635@apple.UUCP> rpd@apple.UUCP (Rick Daley) writes: >>There is an A/UX manual called "The A/UX Toolbox Guide" that goes into detail >> about what applications do that keep them from working under A/UX. > >How can a certified developer get a copy of that manual so that I >can write my applications in such a way that they WILL run under A/UX? > Well, some pointers on how to be good. * Do not assume 24 bit addressing. Do not stuff anything into the topmost byte of a handle * Do not used 68000 priviledge instructions. A/UX Toolbox applications run in user mode, * Do not directly address hardware. * Do not use low memory globals if at all possible. Of course, many of these "restrictions" are actually good Macintosh programming practices. In general, do not make a lot of assumptions about the current Macintosh programming model as it is subject to change, e.g. A/UX toolbox access is a modification on the Macintosh programming model. Applications that make assumptions about the programming model (i.e. a lot of them) will break. /*--------------------------------------------------------------------------*/ /* NOTE: I am _NOT_ an Apple representative. All statements and opinions */ /* are my own and are _not_ to be construed as any official Apple position. */ /* Byron B. Han UUCP: {sun,voder,nsc,mtxinu,dual}!apple!han */ /* Apple Computer, Inc. CSNET: han@apple.csnet */ /* 20525 Mariani Ave MS 27Y GENIE: BYRONHAN CSERVE: 72167,1664 */ /* Cupertino, CA 95014 ATTNet: 408-973-6450 APPLELINK: HAN1 */ /*--------------------------------------------------------------------------*/