home *** CD-ROM | disk | FTP | other *** search
- Path: tank.news.pipex.net!pipex!demon!simes
- From: simes@amdev.demon.co.uk (Simon Brown)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: PPC compilers
- Date: 11 Jan 96 22:00:38 GMT
- Organization: Simes' Incredible Internet Interchange
- Message-ID: <simes.0dy0@amdev.demon.co.uk>
- References: <john.hendrikx.40ka@grafix.xs4all.nl> <MQAQx*XOe@yaps.rhein.de> <OWhVx*42f@yaps.rhein.de> <4cuhng$dmn@maureen.teleport.com> <jasonb.821247870@cs.uwa.edu.au> <4d359i$ii7$1@sydney.DIALix.oz.au>
- NNTP-Posting-Host: amdev.demon.co.uk
- X-NNTP-Posting-Host: amdev.demon.co.uk
- X-WordOfTheDay: Goosnargh.
- X-Newsreader: ADMaN 1.7 Copyright 1995 S.T.Brown
-
- Troy Till? We have reason to believe that on or around Fri, 12 Jan 96
- you did type the following:
-
- > Jason S Birch (jasonb@cs.uwa.edu.au) wrote:
- > : sschaem@teleport.com (Stephan Schaem) writes:
- > : >Arno Eigenwillig (arno@yaps.rhein.de) wrote:
- > : >: Why don't you read what he wrote? A reasonable example for that would
- > : >: be operations on clock_t.
- > :
- > : > The claim was general: you can forget your variable type when you use
- > : > them in C... I'm just saying thats its not wise.
- > :
- > : What we've been (repeatedly) trying to say, is that's *not* what he
- > : said. He said you can forget about the *implementation* of your
- > : variable type on a particular machine (if the data is encapsulated
- > : correctly). The whole point being that in assembler, you cannot forget
- > : the implementation, because pratically every time you do *use* a
- > : "variable" of that type, you have to specify how big it is.
- >
- > Bear with me here, 'cause I don't know the second thing about C..
- >
- > can you do something to the equivalent of:
- >
- > addx.l d0,d1
- > move.w d1,d2
- >
- > Which is treating d1 as a long word, then a word. How would you implement
- > this in C?
-
- longword1 += longword2;
- word1 = (WORD) longword1;
-
- What's this got to do with the discussion?
-
- --
- Simon Brown <simes@amdev.demon.co.uk> // Amazing Developments - When we
- http://uptown.turnpike.net/S/simes/ \X/ develop something, it's amazing.
-
- "If life is a shared hallucination, I don't think much of the drug."
-
-