This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Help with inline assembly.
- To: "Tervel Atanassov (Anaheim)" <TAtanassov at printrak dot com>
- Subject: Re: Help with inline assembly.
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 03 May 2001 08:11:52 -0300
- Cc: "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- Organization: GCC Team, Red Hat
- References: <24F67ED9F66AD411B87D00B0D0493D910178F3C3@ANEX1>
On May 2, 2001, "Tervel Atanassov (Anaheim)" <TAtanassov@printrak.com> wrote:
>> For example, atomic_inc(). The problem I have is that these have a
>> void return value, whereas their Windows analogies return the
>> modified value. I am trying to use these functions as templates to
>> return the modified value.
I'm not sure it is possible to keep the bus locked across two
instructions, so as to be able to load the incremented value back from
memory being sure it hasn't been modified by another processor.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me