home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 905 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: tank.news.pipex.net!pipex!demon!simes
  2. From: simes@amdev.demon.co.uk (Simon Brown)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: PPC compilers
  5. Date: 11 Jan 96 22:00:38 GMT
  6. Organization: Simes' Incredible Internet Interchange
  7. Message-ID: <simes.0dy0@amdev.demon.co.uk>
  8. 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>
  9. NNTP-Posting-Host: amdev.demon.co.uk
  10. X-NNTP-Posting-Host: amdev.demon.co.uk
  11. X-WordOfTheDay: Goosnargh.
  12. X-Newsreader: ADMaN 1.7 Copyright 1995 S.T.Brown
  13.  
  14. Troy Till? We have reason to believe that on or around Fri, 12 Jan 96
  15. you did type the following:
  16.  
  17. > Jason S Birch (jasonb@cs.uwa.edu.au) wrote:
  18. > : sschaem@teleport.com (Stephan Schaem) writes:
  19. > : >Arno Eigenwillig (arno@yaps.rhein.de) wrote:
  20. > : >: Why don't you read what he wrote? A reasonable example for that would
  21. > : >: be operations on clock_t.
  22. > :
  23. > : > The claim was general: you can forget your variable type when you use
  24. > : > them in C... I'm just saying thats its not wise.
  25. > :
  26. > : What we've been (repeatedly) trying to say, is that's *not* what he
  27. > : said. He said you can forget about the *implementation* of your
  28. > : variable type on a particular machine (if the data is encapsulated
  29. > : correctly). The whole point being that in assembler, you cannot forget
  30. > : the implementation, because pratically every time you do *use* a
  31. > : "variable" of that type, you have to specify how big it is.
  32. >
  33. > Bear with me here, 'cause I don't know the second thing about C..
  34. >
  35. > can you do something to the equivalent of:
  36. >
  37. >   addx.l d0,d1
  38. >   move.w d1,d2
  39. >
  40. > Which is treating d1 as a long word, then a word. How would you implement
  41. > this in C?
  42.  
  43.     longword1 += longword2;
  44.     word1 = (WORD) longword1;
  45.  
  46. What's this got to do with the discussion?
  47.  
  48. --
  49. Simon Brown <simes@amdev.demon.co.uk> // Amazing Developments - When we
  50. http://uptown.turnpike.net/S/simes/ \X/ develop something, it's amazing.
  51.  
  52.      "If life is a shared hallucination, I don't think much of the drug."
  53.  
  54.