Patent ID: 8601450

Claim:
A method for converting a script into hardware machine code corresponding to the script for a graphics process integrated circuit, comprising: parsing the script and obtaining an operation and an argument of the operation; acquiring an operation mapping code from an operation mapping table based on the operation, wherein the operation mapping table comprises a plurality of operation mapping records corresponding to a script instruction set; acquiring an argument mapping code from an argument mapping table based on the argument, wherein a length of the operation mapping code and a length of the argument mapping code are each equal to a length of the hardware machine code, the hardware machine code being specific to the processor architecture of the integrated circuit used to carry out execution of the script and rendering of the script-driven graphics; and generating the hardware machine code by performing a bitwise OR operation on the operation mapping code and the argument mapping code by ORing corresponding bits of the operation mapping code and the argument mapping code; and transmitting the generated hardware machine code to a process integrated circuit (IC) for executing a process corresponding to the operation in the script; wherein the hardware machine code stores information associated with the operation in a first bit range, and the argument in a second bit range, the operation mapping code is operative to store zeros in bits other than the first bit range, and the argument mapping code is operative to store zeros in bits other than the second bit range.