home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / aix / 13147 < prev    next >
Encoding:
Text File  |  1993-01-08  |  1.4 KB  |  31 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!usc!sdd.hp.com!saimiri.primate.wisc.edu!ames!agate!linus!philabs!acheron!scifi!watson!yktnews!admin!yktnews!prener
  3. From: prener@watson.ibm.com (Dan Prener)
  4. Subject: Re: optimisation and volatile
  5. Sender: news@watson.ibm.com (NNTP News Poster)
  6. Message-ID: <PRENER.93Jan7234844@prener.watson.ibm.com>
  7. In-Reply-To: phil@dhcs.demon.co.uk's message of Thu, 7 Jan 1993 14:52:33 +0000
  8. Date: Fri, 8 Jan 1993 04:48:44 GMT
  9. Disclaimer: This posting represents the poster's views, not necessarily those of IBM
  10. References: <PHIL.93Jan7143750@lurch.dhcs.demon.co.uk>
  11. Nntp-Posting-Host: prener.watson.ibm.com
  12. Organization: IBM T.J. Watson Research Center, Hawthorne, New York
  13. Lines: 16
  14.  
  15. In article <PHIL.93Jan7143750@lurch.dhcs.demon.co.uk> phil@dhcs.demon.co.uk (phil) writes:
  16.  
  17. > Can anyone help with this. We are building code which uses shared memory
  18. > heavily for interprocess communication. Everything works great, but now we
  19. > would like to compile the code with -O optimization. The last time we tried
  20. > this the compiler would remove repeated shared memory reads with no intervening
  21. > writes, which makes use for IPC a little fraught!
  22.  
  23. > gcc has a switch `-fvolatile' : Consider all memory references through pointers
  24. > to be volatile.
  25.  
  26. > Is there an equivalent for xlc?
  27.  
  28. Declare the pointers as pointers to volatile objects?
  29. --
  30.                                    Dan Prener (prener@watson.ibm.com)
  31.