home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / minix / 5127 < prev    next >
Encoding:
Internet Message Format  |  1993-01-11  |  2.0 KB

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