Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ukma!rutgers!mcnc!ecsvax!phco From: phco@ecsvax.UUCP (John Miller) Newsgroups: comp.sys.ibm.pc Subject: Re: Structure spans a segment, huge pointer to structures. Keywords: C, huge pointer, segmented architecture, ugh. Message-ID: <6694@ecsvax.UUCP> Date: 22 Mar 89 15:43:59 GMT References: <1705@leah.Albany.Edu> Reply-To: phco@ecsvax.uncecs.edu.UUCP (John Miller) Organization: Univ. of North Carolina at Chapel Hill Lines: 19 Try typedef struct { char far a; double far b,c;} rec; instead of typedef struct { char a; double b, c;} rec; In the second case, the variables are accessed via short (abbreviated) addresses. (There are two types of programmers: those who hate Intel's segmented architecture, and those who lie about it. :-) ) -- John Miller (ecsvax!phco) Dept. of Pharmacology, Univ. of N.C.-Chapel Hill CB#7365 1026A FLOB Chapel Hill, NC 27599 (919) 966-6966