[comp.lang.c] Lattice C ver 3.20

ehughes@violet.berkeley.edu (06/26/87)

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...