home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: alt.sys.amiga.demos
- Path: sparky!uunet!lysator.liu.se!marvil
- From: marvil@lysator.liu.se (Martin Vilcans)
- Subject: Re: Phenomena egos??
- Message-ID: <1957@lysator.liu.se>
- Sender: news@lysator.liu.se
- Nntp-Posting-Host: robert.lysator.liu.se
- Organization: Lysator Academic Computer Society, Linkoping University, Sweden
- 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>
- Date: Fri, 13 Nov 1992 13:56:13 GMT
- Lines: 27
-
- njale@dhhalden.no (NJAL EIDE) writes:
-
- >>Just writing programs in C doesn't make them portable to newer
- >>machines. C programmers can do the very same mistakes as assembler
- >>programmers. The only difference in portability between C and assembler is
- >>that C programs sometimes can be ported to a machine with a different
- >>processor, but since we're talking Amiga, that's off subject.
- >>
- >Sorry, but you are wrong. Pure C programs are much more portable. You will
- >at worst have to recompile with a newer compiler (if your old compiler
- >generates code that doesn't follow Commodores programming guidelines.)
- >Anyway your source-code would still be the same.
-
- No, you are wrong. C programmers can do the same mistakes as assembler
- programmers. A few examples:
- Assuming structures of private system structures
- Altering system structures which shouldn't be altered
- No proper error handling, which causes the computer to crash
- Assuming the order of which separate task will finish
-
- These are some of the things Commodore has warned us of, and both C and
- assembler programmers can do these mistakes. The difference is that is is
- easier to program the hardware directly in assembler, but just writing in
- assembler don't make the programs unportable and 'nasty'.
-
- And, OS-coded demos would not be as amazing as the hardcoded ones.
-
-