home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!Q.icl.co.uk!dsbc!ozz!harvey!kdw
- From: kdw@oasis.icl.co.uk (Keith Walker)
- Newsgroups: comp.os.minix
- Subject: Re: ACK ANSI Compiler
- Message-ID: <1621@ozz.oasis.icl.co.uk>
- Date: 7 Jan 93 11:26:27 GMT
- References: <1993Jan3.115527.11032@klaava.Helsinki.FI> <1993Jan05.005757.13952@crash>
- Sender: news@oasis.icl.co.uk
- Organization: International Computers Limited
- Lines: 30
- Nntp-Posting-Host: harvey.oasis.icl.co.uk
-
- In article <1993Jan05.005757.13952@crash> cwr@crash.cts.com (Will Rose) writes:
- >There are two problems with using K&R - compiling 1.6 kernel and sources,
- >and debugging code without lint. The one advantage of ANSI C for my
- >money is that prototyping catches a number of errors that only lint can
- >otherwise reach, and there is no lint for Minix, and I don't have the
-
- The C386/C68000 compiler supports prototypes (shame that it's too big
- for standard PC minix as it requires more than 64K code and data :-().
- The prototypes do not cause "automatic" casting of parameters - they
- just allow type/size checking. When I implemented prototypes this was
- a deliberate decision as it allowed me to make a check on the size of
- the parameter passed with the size of the parameter expected. This is
- usefull for detecting code which would work under an ANSI C compiler
- but break when compiled with a K&R compiler.
-
- >time, interest or skill to write one. ANSI C does a number of things
- >I don't want it to do, but prototyping is handy.
-
- I'm interested in knowing what ANSI C does that you don't want it to do?
-
- I've always wondered why there isn't an public domain version of lint (I
- guess I'm hoping that someone will prove me wrong) as unlike a compiler I
- would expect a lint to be portable across any architecture.
-
- Keith Walker
-
- Keith Walker, ICL, Lovelace Rd., Bracknell, Berkshire, United Kingdom RG12 8SN
- Email: kdw@oasis.icl.co.uk; Phone: +44 344 424842 x2209; Fax: +44 344 487832
- Keith Walker, ICL, Lovelace Rd., Bracknell, Berkshire, United Kingdom RG12 8SN
- Email: kdw@oasis.icl.co.uk; Phone: +44 344 424842 x2209; Fax: +44 344 487832
-