Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!gatech!udel!rochester!pt.cs.cmu.edu!b.gp.cs.cmu.edu!ralf From: ralf@b.gp.cs.cmu.edu (Ralf Brown) Newsgroups: comp.sys.ibm.pc Subject: Re: MIX Power C compiler (memory model names) Message-ID: <2693@pt.cs.cmu.edu> Date: 13 Aug 88 18:10:44 GMT References: <22fc46fd@ralf> <3040@ttidca.TTI.COM> Sender: netnews@pt.cs.cmu.edu Organization: Carnegie-Mellon University, CS/RI Lines: 21 In article <3040@ttidca.TTI.COM> svirsky@ttidcc.tti.com (William Svirsky) writes: }In article <22fc46fd@ralf>, I wrote: }}If MIX really has added an unlimited heap to the standard medium model, how }}can the compiler tell whether to use 16-bit pointers (for the 64K data }}segment) or 32-bit pointers (for the heap)? }}-- } }You explicitly tell it so. In MIX Power C all data pointers are, by }default, 16 bits. Power C supplies a set of functions to access the }heap, such as: } void far *farmalloc(unsigned long); } char far *farstrcpy(char far *, char far *); Oh, mixed memory models! I use far pointers from small model fairly frequently. -- {harvard,uunet,ucbvax}!b.gp.cs.cmu.edu!ralf -=-=- AT&T: (412)268-3053 (school) ARPA: RALF@B.GP.CS.CMU.EDU |"Tolerance means excusing the mistakes others make. FIDO: Ralf Brown at 129/31 | Tact means not noticing them." --Arthur Schnitzler BITnet: RALF%B.GP.CS.CMU.EDU@CMUCCVMA -=-=- DISCLAIMER? I claimed something?