public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "lapo_pasqui\@libero\.it" <lapo_pasqui@libero.it>
To: "gcc-help" <gcc-help@gcc.gnu.org>
Subject: Emulating diab compiler behaviour memory-is-volatile
Date: Mon, 10 Nov 2003 09:40:00 -0000	[thread overview]
Message-ID: <HO4QW3$1C5B4D38E89C35634A0C1C22A8B43A24@libero.it> (raw)

Hi,
I'm trying to build an application written whith the diab compiler using  gcc
version 3.3.

The whole software has been written in the assumption every global variable
should be threaten as volatile, thanks to the diab compiler specific  option
-Xmemory-is-volatile.
As the diab manual states:
«Do not perform optimizations that can cause device drivers, etc.,
to fail. By default, the compiler keeps data in registers as long as
possible whenever it is safe. Difficulties can arise if a memory
location changes because it is mapped to an external hardware
device and the compiler, unaware of this change, continues to use
the old value that is stored in a register. These situations can be
handled with the keyword volatile. However, in order to allow
for the compilation of older programs - compiler provides the
-Xmemory-is-volatile option»

Do you know if there is a similar option in the gcc?

Thanks
   Lapo


             reply	other threads:[~2003-11-10  9:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-10  9:40 lapo_pasqui [this message]
2003-11-10 12:42 ` Eljay Love-Jensen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='HO4QW3$1C5B4D38E89C35634A0C1C22A8B43A24@libero.it' \
    --to=lapo_pasqui@libero.it \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).