home *** CD-ROM | disk | FTP | other *** search
- Path: nntp.teleport.com!sschaem
- From: sschaem@teleport.com (Stephan Schaem)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: PPC compilers
- Date: 13 Jan 1996 14:52:04 GMT
- Organization: Teleport - Portland's Public Access (503) 220-1016
- Distribution: world
- Message-ID: <4d8guk$sjl@maureen.teleport.com>
- References: <john.hendrikx.40ka@grafix.xs4all.nl> <4b77tq$htp@serpens.rhein.de> <MQAQx*XOe@yaps.rhein.de> <4bqhnf$6g5@sunsystem5.informatik.tu-muenchen.de> <jasonb.820051107@cs.uwa.edu.au> <4c9i2l$h3i@sunsystem5.informatik.tu-muenchen.de> <4cf0ep$233@ra.i
- <4ck37m$g07@maureen.teleport.com> <4cs8ce$ljg@ra.ibr.cs.tu-bs.de> <4cujve$dmn@maureen.teleport.com> <4d43cq$ifg@ra.ibr.cs.tu-bs.de>
- NNTP-Posting-Host: linda.teleport.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- Lars Duening (duening@ibr.cs.tu-bs.de) wrote:
- : I still don't need to know or care about the _implementation_ and the
- : _size_ - and that's what this discussion was about.
- : Nobody denies that knowing the other type properties is still
- : necessary (more or less).
-
- I never said you have to know the _size_ of the type in bits.
-
- I never mentioned _implemetation_, only talked about the design process
- of the code... when you the programmer think, and convert its logical
- thought into the C language.
-
- : I usually try to outsmart the compiler, but should I fail it's nice
- : to know that the program won't go gaga.
-
- I never said typechecking was a negative side of the C language.
-
- But its not 100% full proof. my C and ASM program do some form of type
- checking at runtime level (debug on, structure type checking). And If you
- label your variable, its alot harder to make typos and not see them.
-
- I only jump into this discution because I saw
-
- 1) move.w (a0)+,(a1)+ is better then C because I know I copy 16 bit
- 2) a++ = b++ is better because I dont need to know my type
- definition
-
- And responded basicly with, its unwise to write code without knowing your
- variable type, and your type definition. And I dont see how you can write
- code that way relying on the compiler to tell you where you mix incompatible
- type.
-
- What came latter is argument with example to prove otherwise, and I
- use the same example given to prove my initial statement. Even if in some
- case it does not matter to even know the type definition because you wont
- do much with the variable but maybe clear it for a parameter in a support
- function, it doesn't show that my origninal statment is untrue.
-
- Stephan
-