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