This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Help with inline assembly.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]