home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / aix / 13093 < prev    next >
Encoding:
Text File  |  1993-01-07  |  999 b   |  28 lines

  1. Newsgroups: comp.unix.aix
  2. From: phil@dhcs.demon.co.uk (phil)
  3. Path: sparky!uunet!pipex!demon!dhcs.demon.co.uk!phil
  4. Subject: optimisation and volatile
  5. Nntp-Posting-Host: lurch
  6. Organization: IISC, Brain Surgery Dept.
  7. Apparently-To: mail2news@news.demon.co.uk
  8. Date: Thu, 7 Jan 1993 14:52:33 +0000
  9. Message-ID: <PHIL.93Jan7143750@lurch.dhcs.demon.co.uk>
  10. Sender: usenet@demon.co.uk
  11. Lines: 15
  12.  
  13. Can anyone help with this. We are building code which uses shared memory
  14. heavily for interprocess communication. Everything works great, but now we
  15. would like to compile the code with -O optimization. The last time we tried
  16. this the compiler would remove repeated shared memory reads with no intervening
  17. writes, which makes use for IPC a little fraught!
  18.  
  19. gcc has a switch `-fvolatile' : Consider all memory references through pointers
  20. to be volatile.
  21.  
  22. Is there an equivalent for xlc?
  23.  
  24. Thanks for any help.
  25.  
  26. ####        Phil Shotton    -    phil@dhcs.demon.co.uk    ####
  27. ####            It's life Jim, but not as we know it    ####
  28.