Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!rutgers!mcnc!rti!sas!toebes From: toebes@sas.UUCP (John Toebes) Newsgroups: comp.sys.amiga Subject: Re: 16 bit Lattices? (Was: AllocMem() with 16-bit Manx) Message-ID: <182@sas.UUCP> Date: Sun, 27-Sep-87 11:52:52 EDT Article-I.D.: sas.182 Posted: Sun Sep 27 11:52:52 1987 Date-Received: Mon, 28-Sep-87 01:59:35 EDT References: <8709141841.AA06918@cory.Berkeley.EDU> <1584@gryphon.CTS.COM> <5136@jade.BERKELEY.EDU> Organization: SAS Institute Inc.,Cary NC,25712 Lines: 25 Summary: Lattice 4.0 Supports Short Integers In article <5136@jade.BERKELEY.EDU>, mwm@eris.BERKELEY.EDU (Mike (My watch has windows) Meyer) writes: > In article <1584@gryphon.CTS.COM> jdow@gryphon.CTS.COM (Joanne Dow) writes: > > I would suggest Aztec-C mainly because it will compile int's as either > >16 bits or 32 bits (Most Atari compilers use 16 bit ints), and you don't want > >to have to worry about a program compilable under BOTH 16 and 32 bit ints. > > > So does Lattice these days. 3.10 handles 16 bit or 32 bit integers nicely. > > 3.10 will make "int"'s 16 bit objects? How do I convince it to do > that? It isn't in the docs! Actually, I think jdow mispelled a word or two. Lattice 4.0 supports both 32 bit and 16 bit integers. It comes with libraries for both as well as full prototypes for the functions so you are not forced to clutter your code with all those ridiculous casts to longs. Furthermore it catches the most common coding error with 16-bit integers - failing to declare a function that returns a pointer. ANy attempt to use the result (with or without a cast) of a function returning an int as a pointer when compiled under 16-bit integers will result in a warning message. Furthermore it also has a option to complain about any function that you call without a prototype in scope so you can be sure that the calling conventions are correct. /*---------------------All standard Disclaimers apply---------------------*/ /*----Working for but not officially representing SAS or Lattice Inc.-----*/ /*----John A. Toebes, VIII usenet:...!mcnc!rti-sel!sas!toebes-----*/ /*------------------------------------------------------------------------*/