home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / alt / sys / amiga / demos / 1596 < prev    next >
Encoding:
Text File  |  1992-11-13  |  1.9 KB  |  40 lines

  1. Newsgroups: alt.sys.amiga.demos
  2. Path: sparky!uunet!lysator.liu.se!marvil
  3. From: marvil@lysator.liu.se (Martin Vilcans)
  4. Subject: Re: Phenomena egos??
  5. Message-ID: <1957@lysator.liu.se>
  6. Sender: news@lysator.liu.se
  7. Nntp-Posting-Host: robert.lysator.liu.se
  8. Organization: Lysator Academic Computer Society, Linkoping University, Sweden
  9. References: <1992Nov6.093758.20621@lth.se> <1992Nov7.044209.25592@ringer.cs.utsa.edu> <1dg7r7INNjil@gap.caltech.edu> <1992Nov7.203516.9849@ringer.cs.utsa.edu> <1dhp99INNqn5@gap.caltech.edu> <1945@lysator.liu.se> <njale.29.721568722@dhhalden.no>
  10. Date: Fri, 13 Nov 1992 13:56:13 GMT
  11. Lines: 27
  12.  
  13. njale@dhhalden.no (NJAL EIDE) writes:
  14.  
  15. >>Just writing programs in C doesn't make them portable to newer
  16. >>machines. C programmers can do the very same mistakes as assembler
  17. >>programmers. The only difference in portability between C and assembler is
  18. >>that C programs sometimes can be ported to a machine with a different
  19. >>processor, but since we're talking Amiga, that's off subject.
  20. >>
  21. >Sorry, but you are wrong. Pure C programs are much more portable. You will 
  22. >at worst have to recompile with a newer compiler (if your old compiler 
  23. >generates code that doesn't follow Commodores programming guidelines.) 
  24. >Anyway your source-code would still be the same.
  25.  
  26. No, you are wrong. C programmers can do the same mistakes as assembler
  27. programmers. A few examples:
  28.   Assuming structures of private system structures
  29.   Altering system structures which shouldn't be altered
  30.   No proper error handling, which causes the computer to crash
  31.   Assuming the order of which separate task will finish
  32.  
  33. These are some of the things Commodore has warned us of, and both C and
  34. assembler programmers can do these mistakes. The difference is that is is
  35. easier to program the hardware directly in assembler, but just writing in
  36. assembler don't make the programs unportable and 'nasty'.
  37.  
  38. And, OS-coded demos would not be as amazing as the hardcoded ones.
  39.  
  40.