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: 5 Jan 1996 20:55:18 GMT
- Organization: Teleport - Portland's Public Access (503) 220-1016
- Message-ID: <4ck37m$g07@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
- NNTP-Posting-Host: linda.teleport.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- Organization: Teleport - Portland's Public Access (503) 220-1016
- Distribution: world
-
- Jim Cooper (jamie@jamie.interpath.net) wrote:
- : In article <4cgo3i$b8n@sunsystem5.informatik.tu-muenchen.de> fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer) writes:
- : > Lars Duening (duening@ibr.cs.tu-bs.de) wrote:
- : > : That doesn't count because in C you don't need to know if this statement
- : > : compiles to a .w, to a .l or even to a .q .
- : >
- : > but when the .l meets a real-world color-register, you will notice
- : > your claim is not always true.
-
- : Why do you insist on making this seem harder than it needs to be?
-
- : The answer is quite simple and straightforward:
-
- : In ASM, *you*, the programmer, must remember to add the '.w' by hand every
- : time you reference the "real-world color-register," otherwise, possible
- : fireworks.
-
- : In C, the structure is defined *once*, in a system header file, in fact, and
- : the programmer never needs to know if the compiler will generate '.w', '.l',
- : or anything else.
-
- Just a reminder... in C or ASM you need to know what a color register
- is if you want to operate on it, unless you call high level function
- to do the job for you (Even them you need to look in the .h or doc
- what type is needed as parameter).
- Otherwise you need to know that color0 is a word holding 12bit
- of valid data grouped in 4bit nibles, same as you need to know that
- a long is 32bit or a char is 8bit... etc...
-
- Not knowing on what data you operate can only create bad code.
-
- Stephan
-
-