CPC G06F 8/41 (2013.01) [G06F 8/53 (2013.01); G06F 9/30094 (2013.01); G06F 9/30032 (2013.01)] | 9 Claims |
1. An apparatus comprising:
at least one interface configured to read one or more high-level code instructions; and
at least one processor configured to
read the one or more high-level code instructions using the interface,
determine atomic operations in the high-level code instructions, and
translate the one or more high-level code instructions into assembly code instructions, wherein atomic operations are indicated in the assembly code instructions based on the atomic operations in the high-level code instruction,
wherein the at least one processor is configured to indicate the atomic operations in the assembly code instructions using information that is ignored by a processor architecture for which the assembly code instructions are translated,
wherein the at least one processor is configured to indicate the atomic operations in the assembly code instructions by:
i) using meta information, wherein the meta information is ineffective on a result of an execution of the assembly code instructions;
ii) using instruction prefixes that do not affect a result of an instruction execution;
iii) using distinguishable code patterns to mark atomic memory operations;
iv) using excessive segment prefixes;
v) using a one-byte prefix before an atomic instruction in the assembly code instructions; or
vi) using a duplicated segment prefix that atomic operations use or imply.
|