Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rochester!cornell!uw-beaver!mit-eddie!ll-xn!ames!ucbcad!ucbvax!jade!violet.berkeley.edu!ehughes From: ehughes@violet.berkeley.edu Newsgroups: comp.lang.c Subject: Lattice C ver 3.20 Message-ID: <4121@jade.BERKELEY.EDU> Date: Fri, 26-Jun-87 11:47:22 EDT Article-I.D.: jade.4121 Posted: Fri Jun 26 11:47:22 1987 Date-Received: Sun, 28-Jun-87 01:11:26 EDT Sender: usenet@jade.BERKELEY.EDU Reply-To: ehughes@violet.berkeley.edu () Distribution: na Organization: University of California, Berkeley, student Lines: 15 Keywords: 32 bit ints, >64K objects The Lattice version 3.20 compiler added an option -cl which causes all int's to be treated as long int's. Lattice has some ANSI extensions, but is not complete. It also has the capability, using some new (from Microsoft) keywords. These words are 'near' and 'far'. A near pointer is 16 bits; a far pointer is 32. Thus a sizeof( p ) operator can return either 2 or 4, _for_the_same_"type"_. Thus char near *p is a 16 bit pointer and char far *q is a 32 bit pointer. The compiler will complain if you try to execute the assignment p = q. This method is very messy, but if you need objects larger than 64K, this will work. Note: I avoid this construction whenever possible. Eric Hughes ucbvax!violet!ehughes and all other addresses...