This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: sysdep/*/locks.h


Boehm, Hans writes:
 > Is it better to just pass the address (as opposed to its contents)
 > as an "r" input?  That probably costs an additional add
 > instruction, since gcc can no longer use base+offset addressing.

You need to tell gcc that your operand must be written to before the
asm executes.  I suppose you could pass the mem operand and its
address, but only refer to the address in the asm.

 > But I really hate to rely on programming language constructs whose
 > semantics are defined only by the gcc back-end source code.

Maybe we should get the gcc behavour documented.  Perhaps it is
already; I haven't looked.

Andrew.


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