From: "Steve" <nospam_steved94@comcast.net>
Subject: Anyone have an IA-32 locked instruction library for GNAT?
Date: Mon, 3 Sep 2007 08:51:43 -0700
Date: 2007-09-03T08:51:43-07:00 [thread overview]
Message-ID: <7Kudnd0MZvyLsEHbnZ2dnUVZ_u6rnZ2d@comcast.com> (raw)
The IA-32 processors (and derivatives) support locked forms of the
instructions:
ADD, ADC, AND, BTC, BTR, BTS, CMPXCHG, CMPXCH8B, DEC, INC, NEG, NOT, OR,
SBB, SUB, XOR, XADD, and XCHG.
According to Intels' documentation, "In a multiprocessor environment, the
LOCK# signal insures that the processor has exclusive use of any shared
memory while the signal is asserted."
By any chance has anyone implemented the inline assembly functions for GNAT
to make these functions available on IA-32 systems?
The same library shuld work on Linux and Windows.
With the new multi-core processors these instructions can be useful for very
low overhead task safe access to shared resources.
Regards,
Steve
(The Duck)
reply other threads:[~2007-09-03 15:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox