Code processing method and apparatus
AssigneeHuawei Technologies Co., Ltd.
InventorsGeng Chen, Ming Fu, Jitang Lei
Life of this patent
Estimating the term…
Loading patent…
AssigneeHuawei Technologies Co., Ltd.
InventorsGeng Chen, Ming Fu, Jitang Lei
Estimating the term…
This application provides a code processing method and apparatus. The method includes: After obtaining first code corresponding to a source hardware architecture, a code processing apparatus performs concurrency synchronization variable recognition on the first code to obtain at least one concurrency synchronization variable; and then queries, from the first code, concurrency synchronization memory access code corresponding to each of the at least one concurrency synchronization variable, and may convert the concurrency synchronization memory access code corresponding to each of the at least one concurrency synchronization variable into corresponding SC-atomic memory access code. The SC-atomic memory access code corresponding to each of the at least one concurrency synchronization variable is used to generate target code applicable to a target hardware architecture.
A code processing method, comprising:
A code processing apparatus, comprising:
A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program or instructions, and when the computer program or instructions are executed by a computer, the computer is enabled to perform the method comprising:
Dependencies are inferred from the claim text.