Path: utzoo!utgpu!watmath!clyde!att!osu-cis!killer!texbell!uhnix1!sugar!peter From: peter@sugar.uu.net (Peter da Silva) Newsgroups: comp.sys.amiga Subject: Re: Ideas for next Arp Message-ID: <3026@sugar.uu.net> Date: 27 Nov 88 14:32:16 GMT References: <1978@van-bc.UUCP> Organization: Sugar Land Unix - Houston, TX Lines: 28 In article <1978@van-bc.UUCP>, lphillips@lpami.van-bc.UUCP (Larry Phillips) writes: > Compile a non-trivial program using the Lattice C compiler. Use no special > command line switches. Compile the same code using the Manx C compiler, again > with no special command line switches. First, there is K&R 'C' and ANSI 'C'. Neither Lattice or Manx is full ANSI, but both have extensions over K&R. These extensions don't match. You don't make clear what a non-trivial program is. If you restrict yourself to K&R (that is, write what's called a portable program) and don't use any extensions or Amiga-isms, and don't depend on any emulation of UNIX-isms that the Amiga doesn't properly support. > Do they both successfully run? Yes. Even if you use the Amiga libraries, so long as you don't use ANSI declarations and are scrupulous about casting arguments to functions. > Do either of the compilers break any significant rules as defined by > K&R? Depends on how you interpret the language in K&R about sizing of integers. -- Peter da Silva `-_-' peter@sugar.uu.net Have you hugged U your wolf today? Disclaimer: My typos are my own damn busines#!rne