CN101645017A - Cross-platform byte order processing method, device and byte code running platform - Google Patents

Cross-platform byte order processing method, device and byte code running platform Download PDF

Info

Publication number
CN101645017A
CN101645017A CN200910161947A CN200910161947A CN101645017A CN 101645017 A CN101645017 A CN 101645017A CN 200910161947 A CN200910161947 A CN 200910161947A CN 200910161947 A CN200910161947 A CN 200910161947A CN 101645017 A CN101645017 A CN 101645017A
Authority
CN
China
Prior art keywords
data
syllable sequence
platform
bytecode
expression
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN200910161947A
Other languages
Chinese (zh)
Inventor
徐佳宏
程伯钦
朱吕亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ipanel TV Inc
Original Assignee
Shenzhen Ipanel TV Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Ipanel TV Inc filed Critical Shenzhen Ipanel TV Inc
Priority to CN200910161947A priority Critical patent/CN101645017A/en
Publication of CN101645017A publication Critical patent/CN101645017A/en
Pending legal-status Critical Current

Links

Images

Abstract

The embodiment of the invention provides a cross-platform byte order processing method which solves the problem that byte codes are directly run on a platform with different byte order when processingthe byte codes expressing multi-byte data, the result is caused to be inaccurate. The method comprises: the byte codes expressing multi-byte data are pre-processed; if the byte codes expressing multi-byte data are pre-processed into the byte codes expressing single-byte data, the byte codes expressing single-byte data is run, if not, the byte order of the multi-byte data is adjusted according toweather the byte order on a pre-processing platform is the same with the byte order on a running platform. The method avoids the problem that error is caused by byte order when the same byte code is run by the platform with different byte order, at the moment, the running platform adjust the byte order of the multi-byte data to be same with the byte order of the running platform, so as to lead themulti-byte data to be accurately stored in the running platform and be convenient for accurately using the multi-byte data in the follow-up steps.

Description

Cross-platform byte order processing method, device and byte code running platform
Technical field
The present invention relates to computer network field, relate in particular to cross-platform byte order processing method, device and byte code running platform.
Background technology
Bytecode (bytecode) is different from the object code of process compiler compiling back output generally, and it is a kind of intermediate code through compiling but still cannot allowing target machine directly carry out." intermediate code " means that the bytecode in that a platform generates may move on the platform different with the platform that generates this bytecode, for example, for embedded environment, carry out parsing, the time of compiling and required memory headroom in order to save embedded client, a kind of way is to detach out with resolving, compiling from the process of handling bytecode, promptly, server resolves and compiles (being called " precompile ") in advance to source code, the bytecode that the direct runtime server of client generates gets final product.Because the platform at server place may be also inequality with the platform at client place, cross-platform bytecode unavoidably can run into the problem of syllable sequence (endianness) in processing procedure.
So-called syllable sequence is special data type at a plurality of bytes, and popular definition is data type the depositing in proper order in internal memory greater than a byte.According to the relative position of high low byte in internal memory of data, can simply syllable sequence be divided into big end syllable sequence (Big Endianness) and small end syllable sequence (Little Endianness).Big end syllable sequence refers to the low address end that upper byte is emitted on internal memory, and low byte is emitted on the high address end of internal memory, the small end syllable sequence just in contrast, low byte is emitted on the low address end of internal memory, upper byte is emitted on the high address end of internal memory.
In the prior art, when the syllable sequence of the syllable sequence of the platform that generates bytecode and the platform of this bytecode of operation not simultaneously, for example, the syllable sequence that generates the platform of bytecode is big end syllable sequence, the syllable sequence that moves the platform of this bytecode is the small end syllable sequence, perhaps, the syllable sequence that generates the platform of bytecode is the small end syllable sequence, the syllable sequence that moves the platform of this bytecode is big end syllable sequence, if the bytecode that generates directly moves on the platform different with the platform that generates this bytecode, so, this disposal route obviously can only obtain the operation result of a mistake.
Summary of the invention
The embodiment of the invention provides cross-platform byte order processing method and device, when solving prior art and handling the bytecode of expression multibyte data, and direct operation bytecode and cause the problem of erroneous results on the different platform of syllable sequence.
A kind of cross-platform byte order processing method that the embodiment of the invention provides comprises:
Bytecode to the expression multibyte data carries out pre-service, described multibyte data comprises the first kind data and second categorical data, described first kind data are 16 integer data or 32 integer data, and described second categorical data is 64 integer data, single-precision floating-point data or double-precision floating point data;
If the bytecode of described expression multibyte data is through converting the bytecode of expression byte data to after the pre-service, then move the bytecode of described expression byte data, otherwise, according to the whether identical syllable sequence of described multibyte data of adjusting of syllable sequence of the syllable sequence of pre-service platform and operation platform to reduce described multibyte data.
A kind of cross-platform syllable sequence treating apparatus that the embodiment of the invention provides comprises compiling platform and operation platform, and described compiling platform and operation platform are discrete, wherein,
Described compiling platform comprises pretreatment module, be used for the bytecode of expression multibyte data is carried out pre-service, described multibyte data comprises the first kind data and second categorical data, first kind data are 16 integer data or 32 integer data, and described second categorical data is 64 integer data, single-precision floating-point data or double-precision floating point data;
Described operation platform comprises execution module, be used for if the bytecode of described expression multibyte data is when converting the bytecode of expression byte data to after the described pretreatment module pre-service, directly move the bytecode of described expression byte data, otherwise, according to the whether identical syllable sequence of described multibyte data of adjusting of syllable sequence of the syllable sequence of pre-service platform and operation platform to reduce described multibyte data.
A kind of cross-platform byte order processing method that the embodiment of the invention provides comprises:
Bytecode to the expression multibyte data carries out pre-service to obtain representing the bytecode of byte data, and described multiword joint number comprises 16 integer data, 32 integer data, 64 shaping data, single-precision floating-point data or double-precision floating point data;
Move the bytecode of described expression byte data.
The embodiment of the invention provides a kind of cross-platform syllable sequence treating apparatus, comprises compiling platform and operation platform, and described compiling platform and operation platform are discrete, wherein,
Described compiling platform comprises pretreatment module, be used for the bytecode of expression multibyte data is carried out pre-service to obtain representing the bytecode of byte data, described multibyte data comprises 16 integer data, 32 integer data, 64 shaping data, single-precision floating-point data or double-precision floating point data;
Described operation platform comprises the operation module, is used to move the bytecode through the expression byte data that obtain after the described pretreatment module processing.
A kind of cross-platform byte order processing method that the embodiment of the invention provides, comprise: the bytecode to the expression multibyte data carries out pre-service so that comprise the syllable sequence of pre-service platform in the bytecode of described expression multibyte data, and described multiword joint number comprises 16 integer data, 32 integer data, 64 shaping data, single-precision floating-point data or double-precision floating point data;
According to the whether identical syllable sequence of described multibyte data of adjusting of syllable sequence of the syllable sequence of pre-service platform and operation platform to reduce described multibyte data.
A kind of cross-platform syllable sequence treating apparatus that the embodiment of the invention provides comprises compiling platform and operation platform, and described compiling platform and operation platform are discrete, wherein,
Described compiling platform comprises the precompile module, be used for the bytecode of expression multibyte data is carried out pre-service so that the bytecode of described expression multibyte data comprises the syllable sequence of pre-service platform, described multiword joint number comprises 16 integer data, 32 integer data, 64 shaping data, single-precision floating-point data or double-precision floating point data;
Described operation platform comprises adjusting module, is used for whether identical syllable sequence according to the syllable sequence of pre-service platform and operation platform is adjusts syllable sequence through the multibyte data of described precompile resume module to reduce described multibyte data.。
A kind of byte code running platform that the embodiment of the invention provides comprises:
Receiver module is used to receive the bytecode of representing multibyte data, and described bytecode comprises the syllable sequence that described bytecode is carried out pretreated pre-service platform;
Adjusting module is used for the whether identical syllable sequence of described multibyte data of adjusting of syllable sequence according to the syllable sequence of operation platform and described pre-service platform to reduce described multibyte data.
In embodiments of the present invention, pre-service by the pre-service platform so that the bytecode of expression multibyte data resolve into the bytecode of expression byte data or in the bytecode of expression multibyte data, add the syllable sequence of pre-service platform, operation platform directly the described expression byte data of operation bytecode or be adjusted into the syllable sequence of described multibyte data identical with the syllable sequence of described operation platform.Resolve into the bytecode of expression byte data owing to will represent the bytecode of multibyte data, compared with prior art, the mistake that the platform that in fact the present invention has evaded different syllable sequences causes because of the syllable sequence problem when the same bytecode of operation, meanwhile, the syllable sequence of multibyte data is adjusted to identical at operation platform with the syllable sequence of operation platform, described multibyte data correctly can be stored in operation platform, be convenient to the described multibyte data of follow-up correct use.
Description of drawings
Fig. 1 is the cross-platform byte order processing method basic procedure synoptic diagram that the embodiment of the invention one provides;
Fig. 2 A is the pre-service platform that provides of the embodiment of the invention two and wherein a kind of syllable sequence synoptic diagram of operation platform;
Fig. 2 B is the pre-service platform that provides of the embodiment of the invention two and wherein a kind of syllable sequence synoptic diagram of operation platform;
Fig. 2 C is the pre-service platform that provides of the embodiment of the invention two and wherein a kind of syllable sequence synoptic diagram of operation platform;
Fig. 3 is the cross-platform byte order processing method basic procedure synoptic diagram that the embodiment of the invention three provides;
Fig. 4 is the cross-platform byte order processing method basic procedure synoptic diagram that the embodiment of the invention four provides;
Fig. 5 A is the pre-service platform that provides of the embodiment of the invention five and wherein a kind of syllable sequence synoptic diagram of operation platform;
Fig. 5 B is the pre-service platform that provides of the embodiment of the invention five and wherein a kind of syllable sequence synoptic diagram of operation platform;
Fig. 5 C is the pre-service platform that provides of the embodiment of the invention five and wherein a kind of syllable sequence synoptic diagram of operation platform;
Fig. 6 is the cross-platform syllable sequence treating apparatus basic logical structure synoptic diagram that the embodiment of the invention six provides;
Fig. 7 is the cross-platform syllable sequence treating apparatus basic logical structure synoptic diagram that the embodiment of the invention seven provides;
Fig. 8 is the cross-platform syllable sequence treating apparatus basic logical structure synoptic diagram that the embodiment of the invention eight provides;
Fig. 9 is a kind of byte code running platform basic logical structure synoptic diagram that the embodiment of the invention nine provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.The embodiment of the invention provides cross-platform byte order processing method and corresponding cross-platform syllable sequence treating apparatus.Below be elaborated respectively.
See also Fig. 1, the cross-platform byte order processing method basic procedure that the embodiment of the invention one provides comprises:
Step S101 carries out pre-service to the bytecode of representing multibyte data.
In the present embodiment, multibyte data can be divided into the first kind data and second categorical data, first kind data are 16 integer data or 32 integer data, and second categorical data is 64 integer data, single-precision floating-point data or double-precision floating point data.Bytecode to the expression multibyte data carries out the bytecode that pre-service comprises generation expression multibyte data; If the bytecode of expression multibyte data is the bytecode of expression first kind data, then the bytecode of representing multibyte data is carried out pre-service and further comprises:
The bytecode of expression first kind data is decomposed into the bytecode of expression byte data.
The method of decomposing can be that the binary representation to first kind data carries out left and right sidesing shifting, for example, the bytecode of 32 integer data of expression (representing with ival) is decomposed into the bytecode of expression byte data, a kind ofly represents that the compiler compiled code of its decomposition method is as follows:
*dst++=(uint8)((ival>>24)&0xFF);
*dst++=(uint8)((ival>>16)&0xFF);
*dst++=(uint8)((ival>>8)&0xFF);
*dst++=(uint8)(ival&0xFF);
Above-mentioned code it will be appreciated by those skilled in the art that the method that its implication is represented based on the C language, does not do and gives unnecessary details.
For the bytecode of expression second categorical data, not long (for example, machine word-length is 16 or 32 s' a platform) in the machine word-length of platform, can take to be different from the preprocess method of the bytecode of expression first kind data, comprising:
Generate the bytecode of expression second categorical data, for example, the compiler compiled code that generates a bytecode method of representing 64 integer data (representing with value) is as follows:
*dst++=JSC_OP_CONST_INT64;
sval=(char*)&value;
for(j=0;j<8;j++){
*dst++=*sval++;
}
Above-mentioned code it will be appreciated by those skilled in the art that the method that its implication is represented based on the C language, does not do and gives unnecessary details.
Further comprise afterwards:
In the bytecode of expression second categorical data, add the syllable sequence of pre-service platform.
In embodiments of the present invention, the pre-service platform can be the platform of carrying out the server of compilation process or generating the bytecode of expression second categorical data.The syllable sequence reason of adding the pre-service platform in the bytecode of expression second categorical data is: the syllable sequence of pre-service platform may be different with the syllable sequence of byte code running platform, the syllable sequence that adds the pre-service platform helps the comparison of subsequent process to two kinds of different platform syllable sequences, thereby makes corresponding operation.Adding the syllable sequence of pre-service platform in the bytecode of representing second categorical data can finish by for example add one section code, numerical value or a parameter of illustrating or identifying the syllable sequence of pre-service platform in the bytecode of expression second categorical data.
Step S102, if the bytecode of described expression multibyte data is through converting the bytecode of expression byte data to after the pre-service, then move the bytecode of described expression byte data, otherwise, according to the whether identical syllable sequence of described multibyte data of adjusting of syllable sequence of the syllable sequence of pre-service platform and operation platform to reduce described multibyte data.
As previously mentioned, bytecode for expression first kind data, after pre-service through step S101, in fact resolved into the bytecode of a plurality of expression byte data, for example, the bytecode of 16 integer data of an expression resolves into the bytecode of 2 expression byte data, and the bytecode of 32 integer data of an expression resolves into the bytecode of 4 expression byte data.Because syllable sequence is at multibyte, therefore, can directly move the bytecode of described expression byte data, the reduction multibyte data.For example, the bytecode that is decomposed into expression byte data with the bytecode of representing 32 integer data (representing with ival) among the step S101 is corresponding, and the code of 32 integer data of a kind of reduction is as follows:
value=(uint32)((pc[0]<<24)|(pc[1]<<16)|(pc[2]<<8)|(pc[3]));
Pc[0], pc[1], pc[2] and pc[3] expression byte data, code it will be appreciated by those skilled in the art that the method that its implication is represented based on the C language, does not do and gives unnecessary details.。
From above scheme explanation, as can be known,, resolved into the bytecode of expression byte data owing in preprocessing process, just will represent the bytecode of multibyte data for the bytecode of expression first kind data; And syllable sequence is at multibyte, and therefore, compared with prior art, the embodiment of the invention has been evaded the direct syllable sequence problem that causes of preserving because the syllable sequence of platform is different.
For the bytecode of expression second categorical data,, when the bytecode of operation platform operation expression second categorical data, solve the syllable sequence problem in the following manner owing to added the syllable sequence of pre-service platform therein:
S1021 directly copies to the bytecode of representing second categorical data in the internal memory of operation platform;
Directly duplicate (for example, directly duplicating) and mean that the location mode of bytecode in the operation platform internal memory of representing second categorical data is identical with the syllable sequence of pre-service platform by internal memory.For example, if the syllable sequence of pre-service platform is to hold syllable sequence greatly, when the bytecode of then representing second categorical data directly copies in the internal memory of operation platform, the upper byte that its method of depositing should be second categorical data is deposited in the low address internal storage location of this section internal memory, low byte is deposited in the high address internal storage location of this section internal memory, and do not consider that the syllable sequence of operation platform is to hold syllable sequence or small end syllable sequence greatly this moment.
S1022 reads the syllable sequence of pre-service platform;
S1023, the relatively syllable sequence of operation platform and the syllable sequence of described pre-service platform;
In the present embodiment, operation platform is the platform of the bytecode of operation expression second categorical data, for example, and the platform at virtual machine place, set-top box or client or the like.Operation platform and pre-service platform discrete means that the syllable sequence of two platforms may be different, and this is the immediate cause of the syllable sequence of the syllable sequence of comparison operation platform and described pre-service platform.
S1024, if the syllable sequence of described operation platform is identical with the syllable sequence of described pre-service platform, the syllable sequence that keeps described second categorical data, otherwise, the syllable sequence of described second categorical data adjusted so that the syllable sequence of described second categorical data is identical with the syllable sequence of described operation platform.
As previously mentioned, syllable sequence generally is divided into big end syllable sequence and small end syllable sequence, and therefore, result relatively and disposal route are shown in following table one.
Pre-service platform syllable sequence The operation platform syllable sequence Comparative result The adjustment scheme
Big end syllable sequence Big end syllable sequence Syllable sequence is identical Do not adjust, directly use
Big end syllable sequence The small end syllable sequence The syllable sequence difference High low level is exchanged
The small end syllable sequence Big end syllable sequence The syllable sequence difference High low level is exchanged
The small end syllable sequence The small end syllable sequence Syllable sequence is identical Do not adjust, directly use
Table one
For example, if the syllable sequence of the syllable sequence of pre-service platform (compiler place platform) and operation platform (virtual machine place platform) all is big end syllable sequence, and 64 integer data are F 8F 7F 6F 5F 4F 3F 2F 1Constitute (wherein, F 1To F 8Represent a byte respectively, and F 8The most significant digit byte, F 1Be the lowest order byte), so, at F 8F 7F 6F 5F 4F 3F 2F 1When directly being copied in the internal memory of operation platform, F 8Left the low address internal storage location of this section internal memory in, F 1Left the high address internal storage location of this section internal memory in, shown in Fig. 2 A, location mode conforms to the big end syllable sequence of operation platform, therefore, and F 8F 7F 6F 5F 4F 3F 2F 1Location mode in internal memory does not need to adjust, and, does not need to adjust F that is 8F 7F 6F 5F 4F 3F 2F 1Syllable sequence.
And if the syllable sequence of pre-service platform (compiler place platform) is different with the syllable sequence of operation platform (virtual machine place platform), for example, the syllable sequence of pre-service platform is the small end syllable sequence, and the syllable sequence of operation platform is big end syllable sequence, and 64 integer data are F 8F 7F 6F 5F 4F 3F 2F 1Constitute (wherein, F 1To F 8Represent a byte respectively, and F 8The most significant digit byte, F 1Be the lowest order byte), that is, and F 8F 7F 6F 5F 4F 3F 2F 1Location mode in the internal memory of pre-service platform is: F 8Leave the high address internal storage location of one section internal memory in, F 1Leave the low address internal storage location of this section internal memory in.Work as F 8F 7F 6F 5F 4F 3F 2F 1When directly being copied in the internal memory of operation platform, F 8F 7F 6F 5F 4F 3F 2F 1Location mode in the internal memory of operation platform still is: F 8Leave the high address internal storage location of one section internal memory of operation platform in, F 1Leave the low address internal storage location of this section internal memory in, shown in Fig. 2 B.This location mode big end syllable sequence obvious and operation platform is not inconsistent, therefore, and need be to F 8F 7F 6F 5F 4F 3F 2F 1Location mode in internal memory is made adjustment, and the adjustment mode is with F 8Leave the low address internal storage location of one section internal memory in, F 1Leave the high address internal storage location in this section in, shown in Fig. 2 C, after the syllable sequence adjustment, F 8F 7F 6F 5F 4F 3F 2F 1Syllable sequence identical with the syllable sequence of described operation platform, just at last with F 8F 7F 6F 5F 4F 3F 2F 1Reduction is at follow-up use F 8F 7F 6F 5F 4F 3F 2F 1The time unlikely makeing mistakes.
Certainly, for the long platform of machine word-length (for example, machine word-length is 64 a platform), the cross-platform byte order processing method that can adopt the embodiment of the invention three to provide, basic procedure sees also Fig. 3, comprising:
Step S301 carries out pre-service to obtain representing the bytecode of byte data to the bytecode of representing multibyte data.
In the present embodiment, multibyte data comprises 16 integer data, 32 integer data, 64 shaping data, single-precision floating-point data or double-precision floating point data.
The bytecode of representing multibyte data is carried out pre-service to be comprised:
Generate the bytecode of expression multibyte data;
The bytecode of expression multibyte data is decomposed into the bytecode of expression byte data.
The method of decomposing can be that the binary representation to multibyte data carries out left and right sidesing shifting, for example, the bytecode of 64 integer data of expression (representing with ival) is decomposed into the bytecode of expression byte data, a kind ofly represents that the compiler compiled code of its decomposition method is as follows:
*dst++=(uint8)((ival>>56)&0xFF);
*dst++=(uint8)((ival>>48)&0xFF);
*dst++=(uint8)((ival>>40)&0xFF);
*dst++=(uint8)((ival>>32)&0xFF);
*dst++=(uint8)((ival>>24)&0xFF);
*dst++=(uint8)((ival>>16)&0xFF);
*dst++=(uint8)((ival>>8)&0xFF);
*dst++=(uint8)(ival&0xFF);
Above-mentioned code it will be appreciated by those skilled in the art that the method that its implication is represented based on the C language, does not do and gives unnecessary details.
Step S302 moves the bytecode of described expression byte data.
After pre-service through step S101, in fact resolved into the bytecode of a plurality of expression byte data, for example, the bytecode of 32 integer data of an expression resolves into the bytecode of 4 expression byte data, and the bytecode of 64 integer data of an expression resolves into the bytecode of 8 expression byte data.Because syllable sequence is at multibyte, therefore, can directly move the bytecode of described expression byte data, the reduction multibyte data.For example, the bytecode that is decomposed into expression byte data with the bytecode of representing 64 integer data (representing with ival) among the step S301 is corresponding, and the code of 64 integer data of a kind of reduction is as follows:
value=(uint32)((pc[0]<<56)|(pc[1]<<48)|(pc[2]<<40)|(pc[3]<<32)|(pc[4]<<24)|(pc[5]<<16)|(pc[6]<<8)|(pc[7]));
Pc[0], pc[1], pc[2], pc[3], pc[4], pc[5], pc[6] and pc[7] expression byte data, code it will be appreciated by those skilled in the art that the method that its implication is represented based on the C language, does not do and gives unnecessary details.
From above scheme explanation, as can be known,, resolved into the bytecode of expression byte data owing in preprocessing process, just will represent the bytecode of multibyte data for the bytecode of expression multibyte data; And syllable sequence is at multibyte, and therefore, compared with prior art, the embodiment of the invention has been evaded the direct syllable sequence problem that causes of preserving because the syllable sequence of platform is different.
For the machine word-length of platform is not long (for example, machine word-length is 16 or 32 s' a platform), the cross-platform byte order processing method that can also adopt the embodiment of the invention four to provide, and basic procedure sees also Fig. 4, comprising:
Step S401 carries out pre-service so that comprise the syllable sequence of pre-service platform in the bytecode of described expression multibyte data to the bytecode of representing multibyte data.
In the present embodiment, the multiword joint number comprises 16 integer data, 32 integer data, 64 shaping data, single-precision floating-point data or double-precision floating point data.The bytecode of representing multibyte data is carried out pre-service to be comprised:
Generate the bytecode of expression expression multibyte data, for example, the compiler compiled code that generates a bytecode method of representing 64 integer data (representing with value) is as follows:
*dst++=JSC_OP_CONST_INT64;
sval=(char*)&value;
for(j=0;j<8;j++){
*dst++=*sval++;
}
Above-mentioned code it will be appreciated by those skilled in the art that the method that its implication is represented based on the C language, does not do and gives unnecessary details.
Further comprise afterwards:
In the bytecode of expression multibyte data, add the syllable sequence of pre-service platform.
In embodiments of the present invention, the pre-service platform can be the platform of carrying out the server of compilation process or generating the bytecode of expression multibyte data.The syllable sequence reason of adding the pre-service platform in the bytecode of expression multibyte data is: the syllable sequence of pre-service platform may be different with the syllable sequence of byte code running platform, the syllable sequence that adds the pre-service platform helps the comparison of subsequent process to two kinds of different platform syllable sequences, thereby makes corresponding operation.Adding the syllable sequence of pre-service platform in the bytecode of representing multibyte data can finish by for example add one section code, numerical value or a parameter of illustrating or identifying the syllable sequence of pre-service platform in the bytecode of expression multibyte data.
Step S402, according to the whether identical syllable sequence of described multibyte data of adjusting of syllable sequence of the syllable sequence of pre-service platform and operation platform to reduce described multibyte data.
For the bytecode of expression multibyte data,, when the bytecode of operation platform operation expression multibyte data, solve the syllable sequence problem in the following manner owing to added the syllable sequence of pre-service platform therein:
S4021 directly copies to the bytecode of representing multibyte data in the internal memory of operation platform.
Directly duplicate (for example, directly duplicating) and mean that the location mode of bytecode in the operation platform internal memory of representing multibyte data is identical with the syllable sequence of pre-service platform by internal memory.For example, if the syllable sequence of pre-service platform is to hold syllable sequence greatly, when the bytecode of then representing multibyte data directly copies in the internal memory of operation platform, the upper byte that its method of depositing should be a multibyte data is deposited in the low address internal storage location of this section internal memory, low byte is deposited in the high address internal storage location of this section internal memory, and do not consider that the syllable sequence of operation platform is to hold syllable sequence or small end syllable sequence greatly this moment.
S4022 reads the syllable sequence of pre-service platform.
S4023, the relatively syllable sequence of operation platform and the syllable sequence of described pre-service platform.
In the present embodiment, operation platform is the platform of the bytecode of operation expression multibyte data, for example, and the platform at virtual machine place, set-top box or client or the like.Operation platform and pre-service platform discrete means that the syllable sequence of two platforms may be different, and this is the immediate cause of the syllable sequence of the syllable sequence of comparison operation platform and described pre-service platform.
S4024, if the syllable sequence of described operation platform is identical with the syllable sequence of described pre-service platform, keep described multibyte data syllable sequence, otherwise, the syllable sequence of described multibyte data adjusted so that the syllable sequence of described multibyte data is identical with the syllable sequence of described operation platform.
As previously mentioned, syllable sequence generally is divided into big end syllable sequence and small end syllable sequence, and therefore, result relatively and disposal route are shown in following table two.
Pre-service platform syllable sequence The operation platform syllable sequence Comparative result The adjustment scheme
Big end syllable sequence Big end syllable sequence Syllable sequence is identical Do not adjust, directly use
Big end syllable sequence The small end syllable sequence The syllable sequence difference High low level is exchanged
The small end syllable sequence Big end syllable sequence The syllable sequence difference High low level is exchanged
The small end syllable sequence The small end syllable sequence Syllable sequence is identical Do not adjust, directly use
Table two
For example, if the syllable sequence of the syllable sequence of pre-service platform (compiler place platform) and operation platform (virtual machine place platform) all is big end syllable sequence, and 64 integer data are F 8F 7F 6F 5F 4F 3F 2F 1Constitute (wherein, F 1To F 8Represent a byte respectively, and F 8The most significant digit byte, F 1Be the lowest order byte), so, at F 8F 7F 6F 5F 4F 3F 2F 1When directly being copied in the internal memory of operation platform, F 8Left the low address internal storage location of this section internal memory in, F 1Left the high address internal storage location of this section internal memory in, shown in Fig. 5 A of Fig. 5, location mode conforms to the big end syllable sequence of operation platform, therefore, and F 8F 7F 6F 5F 4F 3F 2F 1Location mode in internal memory does not need to adjust, and, does not need to adjust F that is 8F 7F 6F 5F 4F 3F 2F 1Syllable sequence.
And if the syllable sequence of pre-service platform (compiler place platform) is different with the syllable sequence of operation platform (virtual machine place platform), for example, the syllable sequence of pre-service platform is the small end syllable sequence, and the syllable sequence of operation platform is big end syllable sequence, and 64 integer data are F 8F 7F 6F 5F 4F 3F 2F 1Constitute (wherein, F 1To F 8Represent a byte respectively, and F 8The most significant digit byte, F 1Be the lowest order byte), that is, and F 8F 7F 6F 5F 4F 3F 2F 1Location mode in the internal memory of pre-service platform is: F 8Leave the high address internal storage location of one section internal memory in, F 1Leave the low address internal storage location of this section internal memory in.Work as F 8F 7F 6F 5F 4F 3F 2F 1When directly being copied in the internal memory of operation platform, F 8F 7F 6F 5F 4F 3F 2F 1Location mode in the internal memory of operation platform still is: F 8Leave the high address internal storage location of one section internal memory of operation platform in, F 1Leave the low address internal storage location of this section internal memory in, shown in Fig. 5 B of Fig. 5.This location mode big end syllable sequence obvious and operation platform is not inconsistent, therefore, and need be to F 8F 7F 6F 5F 4F 3F 2F 1Location mode in internal memory is made adjustment, and the adjustment mode is with F 8Leave the low address internal storage location of one section internal memory in, F 1Leave the high address internal storage location in this section in, shown in Fig. 5 C of Fig. 5, after the syllable sequence adjustment, just at last with F 8F 7F 6F 5F 4F 3F 2F 1Reduction, unlikely the makeing mistakes of ability when follow-up use.
See also Fig. 6, the cross-platform syllable sequence treating apparatus basic logical structure synoptic diagram that the embodiment of the invention six provides, the cross-platform byte order processing method that the syllable sequence treating apparatus that this is cross-platform and the embodiment of the invention one provide is corresponding.For convenience of explanation, only show the part relevant with the embodiment of the invention.This device comprises discrete pre-service platform 61 and operation platform 62, wherein:
Pre-service platform 61 comprises pretreatment module 611, is used for the bytecode of expression multibyte data is carried out pre-service, and it comprises:
Bytecode generation unit 6111 is used to generate the bytecode of described expression multibyte data;
First pretreatment unit 6112, the bytecode that is used for expression first kind data that described bytecode generation unit 6111 is generated is decomposed into the bytecode of expression byte data;
Second pretreatment unit 6113, the bytecode that is used for expression second categorical data that generates at described bytecode generation unit 6111 adds the syllable sequence of pre-service platform 61, and described pre-service platform 61 is the platform or the compiling platform of the bytecode that generates described expression second categorical data;
Wherein, multibyte data comprises the first kind data and second categorical data, and first kind data are 16 integer data or 32 integer data, and described second categorical data is 64 integer data, single-precision floating-point data or double-precision floating point data.
Operation platform 62 comprises execution module 621, be used for if the bytecode of described expression multibyte data is when converting the bytecode of expression byte data to after the described pretreatment module pre-service, directly move the bytecode of described expression byte data, otherwise, according to the whether identical syllable sequence of described multibyte data of adjusting of syllable sequence of the syllable sequence of pre-service platform 61 and operation platform 62 to reduce described multibyte data.Execution module 621 comprises:
First performance element 6211 is used to move the bytecode of the byte data after described first pretreatment unit 6112 decomposes;
Second performance element 6212, be used for will the expression second categorical data bytecode directly copy to the internal memory of operation platform after, read syllable sequence and the syllable sequence of more described operation platform 62 and the syllable sequence of described pre-service platform 61 of the pre-service platform 61 of described second pretreatment unit 6113 interpolations, when the syllable sequence of the syllable sequence of described pre-service platform 61 and described operation platform 62 is identical, the syllable sequence that keeps described second categorical data, at the syllable sequence of the syllable sequence of described pre-service platform 61 and described operation platform 62 not simultaneously, do not adjust the syllable sequence of described second categorical data so that the syllable sequence of described second categorical data is identical with the syllable sequence of described operation platform 62.
The function of pretreatment module 611 and bytecode generation unit 6111, first pretreatment unit 6112, second pretreatment unit 6113 and the execution module 621 that comprises thereof and first performance element 6211 that comprises thereof, second performance element 6212 or running illustrate in the corresponding method embodiment of preamble, repeat no more herein.
From above scheme explanation, as can be known,, resolved into the bytecode of expression byte data owing in preprocessing process, just will represent the bytecode of multibyte data for the bytecode of expression first kind data; And syllable sequence is at multibyte, and therefore, compared with prior art, the embodiment of the invention has been evaded the direct syllable sequence problem that causes of preserving because the syllable sequence of platform is different.Bytecode for expression second categorical data, by adjust the syllable sequence of second categorical data at the operation platform end, make that the syllable sequence of second categorical data is identical with the syllable sequence of described operation platform, so, can not make mistakes because of the problem of syllable sequence at follow-up use second categorical data.
See also Fig. 7, the cross-platform syllable sequence treating apparatus basic logical structure synoptic diagram that the embodiment of the invention seven provides, the cross-platform byte order processing method that the syllable sequence treating apparatus that this is cross-platform and the embodiment of the invention two provide is corresponding.For convenience of explanation, only show the part relevant with the embodiment of the invention.This device comprises discrete pre-service platform 71 and operation platform 72, wherein:
Pre-service platform 71 comprises pretreatment module 711, be used for the bytecode of expression multibyte data is carried out pre-service, described multibyte data comprises 16 integer data, 32 integer data, 64 shaping data, single-precision floating-point data or double-precision floating point data.Pretreatment module 711 comprises:
Bytecode generation unit 7111 is used to generate the bytecode of described expression multibyte data;
Resolving cell 7112, the bytecode that is used for expression multibyte data that described bytecode generation unit 7111 is generated is decomposed into the bytecode of a plurality of expression byte data.
Operation platform 72 comprises operation module 721, is used to move the bytecode through the expression byte data that obtain after the described pretreatment module processing.
The function or the running of pretreatment module 711 and the bytecode generation unit 7111 that comprises thereof, resolving cell 7112 and operation module 721 illustrate in the corresponding method embodiment of preamble, repeat no more herein.
From above scheme explanation, as can be known,, resolved into the bytecode of expression byte data owing in preprocessing process, just will represent the bytecode of multibyte data for the bytecode of expression multibyte data; And syllable sequence is at multibyte, and therefore, compared with prior art, the embodiment of the invention has been evaded the direct syllable sequence problem that causes of preserving because the syllable sequence of platform is different.
See also Fig. 8, the cross-platform syllable sequence treating apparatus basic logical structure synoptic diagram that the embodiment of the invention eight provides, the cross-platform byte order processing method that the syllable sequence treating apparatus that this is cross-platform and the embodiment of the invention three provide is corresponding.For convenience of explanation, only show the part relevant with the embodiment of the invention.This device comprises discrete pre-service platform 81 and operation platform 82, wherein:
Pre-service platform 81 comprises precompile module 811, be used for the bytecode of expression multibyte data is carried out pre-service so that the bytecode of described expression multibyte data comprises the syllable sequence of pre-service platform 81, described multiword joint number comprises 16 integer data, 32 integer data, 64 shaping data, single-precision floating-point data or double-precision floating point data.Precompile module 811 comprises:
Bytecode generation unit 8111 is used to generate the bytecode of described expression multibyte data;
Pretreatment unit 8112, the bytecode that is used for the expression multibyte data that generates at described bytecode generation unit 8111 adds the syllable sequence of pre-service platform, and described pre-service platform 81 is for the discrete compiling platform of described operation platform 82 or generate the platform of the bytecode of described expression multibyte data.
Operation platform 82 comprises adjusting module 821, and the syllable sequence that is used for the whether identical multibyte data of adjusting described precompile resume module of syllable sequence according to the syllable sequence of pre-service platform 81 and operation platform 82 is to reduce described multibyte data.It comprises:
Performance element 8211, be used for the bytecode of described expression multibyte data is directly copied to the internal memory of operation platform 82, read syllable sequence and the syllable sequence of more described operation platform 82 and the syllable sequence of described pre-service platform 81 of the pre-service platform 81 of described pretreatment unit 8112 interpolations, when the syllable sequence of the syllable sequence of described pre-service platform 81 and described operation platform 82 is identical, the syllable sequence that keeps described multibyte data, at the syllable sequence of the syllable sequence of described pre-service platform 81 and described operation platform 82 not simultaneously, do not adjust the syllable sequence of described multibyte data so that the syllable sequence of described multibyte data is identical with the syllable sequence of described operation platform 82.
The function of precompile module 811 and the bytecode generation unit 8111 that comprises, pretreatment unit 8112 and adjusting module 821 and the performance element 8211 that comprises thereof or running illustrate in the corresponding method embodiment of preamble, repeat no more herein.
By the explanation of above scheme as can be known, bytecode for multibyte data, by adjust the syllable sequence of multibyte data at the operation platform end, make that the syllable sequence of multibyte data is identical with the syllable sequence of described operation platform, so, can not make mistakes in follow-up use multibyte data because of the problem of syllable sequence.
See also Fig. 9, a kind of byte code running platform basic logical structure synoptic diagram that the embodiment of the invention nine provides for convenience of explanation, only shows the part relevant with the embodiment of the invention.This byte code running platform comprises:
Receiver module 901 is used to receive the bytecode of representing multibyte data, and described bytecode comprises the syllable sequence that described bytecode is carried out pretreated pre-service platform;
Adjusting module 902 is used for the whether identical syllable sequence of adjusting described multibyte data of syllable sequence according to the syllable sequence of operation platform and described pre-service platform to reduce described multibyte data, and it comprises:
Performance element 9021, be used for the bytecode of described expression multibyte data is directly copied to the internal memory of operation platform, read syllable sequence and the syllable sequence of more described operation platform and the syllable sequence of described pre-service platform of the pre-service platform of described receiver module 901 receptions, when the syllable sequence of the syllable sequence of described pre-service platform and described operation platform is identical, the syllable sequence that keeps described multibyte data, at the syllable sequence of the syllable sequence of described pre-service platform and described operation platform not simultaneously, do not adjust the syllable sequence of described multibyte data so that the syllable sequence of described multibyte data is identical with the syllable sequence of described operation platform.
By the explanation of above scheme as can be known, bytecode for multibyte data, by adjust the syllable sequence of multibyte data at the operation platform end, make that the syllable sequence of multibyte data is identical with the syllable sequence of described operation platform, so, can not make mistakes in follow-up use multibyte data because of the problem of syllable sequence.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of the foregoing description is to instruct relevant hardware to finish by program, this program can be stored in the computer-readable recording medium, storage medium can comprise: ROM (read-only memory) (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc.
More than cross-platform byte order processing method and device that the embodiment of the invention provided are described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (19)

1, a kind of cross-platform byte order processing method is characterized in that, comprising:
Bytecode to the expression multibyte data carries out pre-service, described multibyte data comprises the first kind data and second categorical data, described first kind data are 16 integer data or 32 integer data, and described second categorical data is 64 integer data, single-precision floating-point data or double-precision floating point data;
If the bytecode of described expression multibyte data is through converting the bytecode of expression byte data to after the pre-service, then move the bytecode of described expression byte data, otherwise, according to the whether identical syllable sequence of described multibyte data of adjusting of syllable sequence of the syllable sequence of pre-service platform and operation platform to reduce described multibyte data.
2, cross-platform according to claim 1 byte order processing method is characterized in that described bytecode to described expression multibyte data carries out pre-service and comprises:
Generate the bytecode of expression multibyte data;
The bytecode of described expression first kind data is decomposed into the bytecode of expression byte data.
3, as cross-platform byte order processing method as described in the claim 2, it is characterized in that, also comprise:
Add the syllable sequence of pre-service platform in the bytecode of described expression second categorical data, described pre-service platform is the platform of the bytecode of described expression second categorical data of generation.
As cross-platform byte order processing method as described in the claim 3, it is characterized in that 4, the syllable sequence that whether identical described syllable sequence according to the pre-service platform is with the syllable sequence of operation platform adjusts described multibyte data comprises to reduce described multibyte data:
The bytecode of expression second categorical data is directly copied in the internal memory of operation platform;
Read the syllable sequence of described pre-service platform;
The syllable sequence of the syllable sequence of more described operation platform and described pre-service platform;
If the syllable sequence of described operation platform is identical with the syllable sequence of described pre-service platform, the syllable sequence that keeps described second categorical data, otherwise, adjust the syllable sequence of described second categorical data so that the syllable sequence of described second categorical data is identical with the syllable sequence of described operation platform.
5, a kind of cross-platform syllable sequence treating apparatus comprises compiling platform and operation platform, it is characterized in that described pre-service platform and operation platform are discrete, wherein,
Described pre-service platform comprises pretreatment module, be used for the bytecode of expression multibyte data is carried out pre-service, described multibyte data comprises the first kind data and second categorical data, first kind data are 16 integer data or 32 integer data, and described second categorical data is 64 integer data, single-precision floating-point data or double-precision floating point data;
Described operation platform comprises execution module, be used for if the bytecode of described expression multibyte data is when converting the bytecode of expression byte data to after the described pretreatment module pre-service, directly move the bytecode of described expression byte data, otherwise, according to the whether identical syllable sequence of described multibyte data of adjusting of syllable sequence of the syllable sequence of pre-service platform and operation platform to reduce described multibyte data.
6, as cross-platform syllable sequence treating apparatus as described in the claim 5, it is characterized in that described pretreatment module comprises:
The bytecode generation unit is used to generate the bytecode of described expression multibyte data;
First pretreatment unit, the bytecode that is used for expression first kind data that described bytecode generation unit is generated is decomposed into the bytecode of expression byte data
Second pretreatment unit, the bytecode that is used for expression second categorical data that generates at described bytecode generation unit adds the syllable sequence of pre-service platform, and described pre-service platform is the platform or the compiling platform of the bytecode that generates described expression second categorical data.
7, as cross-platform syllable sequence treating apparatus as described in the claim 6, it is characterized in that described execution module comprises:
First performance element is used to move the bytecode of the byte data after described first pretreatment unit decomposes;
Second performance element, be used for will the expression second categorical data bytecode directly copy to the internal memory of operation platform after, read syllable sequence and the syllable sequence of more described operation platform and the syllable sequence of described pre-service platform of the pre-service platform of described second pretreatment unit interpolation, when the syllable sequence of the syllable sequence of described pre-service platform and described operation platform is identical, the syllable sequence that keeps described second categorical data, at the syllable sequence of the syllable sequence of described pre-service platform and described operation platform not simultaneously, do not adjust the syllable sequence of described second categorical data so that the syllable sequence of described second categorical data is identical with the syllable sequence of described operation platform.
8, a kind of cross-platform byte order processing method is characterized in that, comprising:
Bytecode to the expression multibyte data carries out pre-service to obtain representing the bytecode of byte data, and described multiword joint number comprises 16 integer data, 32 integer data, 64 shaping data, single-precision floating-point data or double-precision floating point data;
Move the bytecode of described expression byte data.
As cross-platform byte order processing method as described in the claim 8, it is characterized in that 9, described bytecode to the expression multibyte data carries out pre-service to obtain representing that the bytecode of byte data is specially:
Generate the bytecode of described expression multibyte data;
The bytecode of described expression multibyte data is decomposed into the bytecode of a plurality of expression byte data.
10, a kind of cross-platform syllable sequence treating apparatus comprises pre-service platform and operation platform, it is characterized in that, described pre-service platform and operation platform are discrete, wherein,
Described pre-service platform comprises pretreatment module, be used for the bytecode of expression multibyte data is carried out pre-service to obtain representing the bytecode of byte data, described multibyte data comprises 16 integer data, 32 integer data, 64 shaping data, single-precision floating-point data or double-precision floating point data;
Described operation platform comprises the operation module, is used to move the bytecode through the expression byte data that obtain after the described pretreatment module processing.
11, as cross-platform syllable sequence treating apparatus as described in the claim 10, it is characterized in that described pretreatment module comprises:
The bytecode generation unit is used to generate the bytecode of described expression multibyte data;
Resolving cell, the bytecode that is used for expression multibyte data that described bytecode generation unit is generated is decomposed into the bytecode of a plurality of expression byte data.
12, a kind of cross-platform byte order processing method is characterized in that, comprising:
Bytecode to the expression multibyte data carries out pre-service so that comprise the syllable sequence of pre-service platform in the bytecode of described expression multibyte data, and described multiword joint number comprises 16 integer data, 32 integer data, 64 shaping data, single-precision floating-point data or double-precision floating point data;
According to the whether identical syllable sequence of described multibyte data of adjusting of syllable sequence of the syllable sequence of pre-service platform and operation platform to reduce described multibyte data.
As cross-platform byte order processing method as described in the claim 12, it is characterized in that 13, described bytecode to the expression multibyte data carries out pre-service and comprises:
Generate the bytecode of described expression multibyte data;
In the bytecode of described expression multibyte data, add the syllable sequence of pre-service platform.
As cross-platform byte order processing method as described in the claim 13, it is characterized in that 14, the syllable sequence that whether identical described syllable sequence according to the pre-service platform is with the syllable sequence of operation platform adjusts described multibyte data comprises to reduce described multibyte data:
The bytecode of described expression multibyte data is directly copied in the internal memory of operation platform;
Read the syllable sequence of described pre-service platform;
The syllable sequence of the syllable sequence of more described operation platform and described pre-service platform, described operation platform are represented the platform of the bytecode of multibyte data for the described expression of operation;
If the syllable sequence of described operation platform is identical with the syllable sequence of described pre-service platform, the syllable sequence that keeps described multibyte data, otherwise, adjust the syllable sequence of described multibyte data so that the syllable sequence of described multibyte data is identical with the syllable sequence of described operation platform.
15, a kind of cross-platform syllable sequence treating apparatus comprises pre-service platform and operation platform, it is characterized in that, described pre-service platform and operation platform are discrete, wherein,
Described pre-service platform comprises the precompile module, be used for the bytecode of expression multibyte data is carried out pre-service so that the bytecode of described expression multibyte data comprises the syllable sequence of pre-service platform, described multiword joint number comprises 16 integer data, 32 integer data, 64 shaping data, single-precision floating-point data or double-precision floating point data;
Described operation platform comprises adjusting module, is used for whether identical syllable sequence according to the syllable sequence of pre-service platform and operation platform is adjusts syllable sequence through the multibyte data of described precompile resume module to reduce described multibyte data.
16, as cross-platform syllable sequence treating apparatus as described in the claim 15, it is characterized in that described precompile module comprises:
The bytecode generation unit is used to generate the bytecode of described expression multibyte data;
Pretreatment unit, the bytecode that is used for the expression multibyte data that generates at described bytecode generation unit adds the syllable sequence of pre-service platform, and described pre-service platform is for the discrete compiling platform of described operation platform or generate the platform of the bytecode of described expression multibyte data.
17, as cross-platform syllable sequence treating apparatus as described in the claim 16, it is characterized in that described adjusting module comprises:
Performance element, be used for the bytecode of described expression multibyte data is directly copied to the internal memory of operation platform, read syllable sequence and the syllable sequence of more described operation platform and the syllable sequence of described pre-service platform of the pre-service platform of described pretreatment unit interpolation, when the syllable sequence of the syllable sequence of described pre-service platform and described operation platform is identical, the syllable sequence that keeps described multibyte data, at the syllable sequence of the syllable sequence of described pre-service platform and described operation platform not simultaneously, do not adjust the syllable sequence of described multibyte data so that the syllable sequence of described multibyte data is identical with the syllable sequence of described operation platform.
18, a kind of byte code running platform is characterized in that, comprising:
Receiver module is used to receive the bytecode of representing multibyte data, and described bytecode comprises the syllable sequence that described bytecode is carried out pretreated pre-service platform;
Adjusting module is used for the whether identical syllable sequence of described multibyte data of adjusting of syllable sequence according to the syllable sequence of operation platform and described pre-service platform to reduce described multibyte data.
19, as byte code running platform as described in the claim 18, it is characterized in that described adjusting module comprises:
Performance element, be used for the bytecode of described expression multibyte data is directly copied to the internal memory of operation platform, read syllable sequence and the syllable sequence of more described operation platform and the syllable sequence of described pre-service platform of the pre-service platform of described receiver module reception, when the syllable sequence of the syllable sequence of described pre-service platform and described operation platform is identical, the syllable sequence that keeps described multibyte data, at the syllable sequence of the syllable sequence of described pre-service platform and described operation platform not simultaneously, do not adjust the syllable sequence of described multibyte data so that the syllable sequence of described multibyte data is identical with the syllable sequence of described operation platform.
CN200910161947A 2009-09-07 2009-09-07 Cross-platform byte order processing method, device and byte code running platform Pending CN101645017A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910161947A CN101645017A (en) 2009-09-07 2009-09-07 Cross-platform byte order processing method, device and byte code running platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910161947A CN101645017A (en) 2009-09-07 2009-09-07 Cross-platform byte order processing method, device and byte code running platform

Publications (1)

Publication Number Publication Date
CN101645017A true CN101645017A (en) 2010-02-10

Family

ID=41656913

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910161947A Pending CN101645017A (en) 2009-09-07 2009-09-07 Cross-platform byte order processing method, device and byte code running platform

Country Status (1)

Country Link
CN (1) CN101645017A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103886087A (en) * 2014-03-28 2014-06-25 上海斐讯数据通信技术有限公司 Calculating procedure and file verifying method for MD5
CN107423084A (en) * 2017-04-24 2017-12-01 武汉斗鱼网络科技有限公司 Modification of program method and device
CN109621405A (en) * 2018-11-21 2019-04-16 罗伊互娱(深圳)有限公司 Cross-platform interchange method, apparatus, computer equipment and storage medium
CN109621404A (en) * 2018-11-21 2019-04-16 罗伊互娱(深圳)有限公司 Cross-platform interchange system, method, apparatus, computer equipment and storage medium
CN110647355A (en) * 2018-06-27 2020-01-03 上海寒武纪信息科技有限公司 Data processor and data processing method
CN113867682A (en) * 2021-12-06 2021-12-31 广东省新一代通信与网络创新研究院 Coprocessor for realizing floating-point number out-of-order conversion

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070079295A1 (en) * 2005-09-30 2007-04-05 Zimmer Vincent J Mechanisms to support use of software running on platform hardware employing different endianness

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070079295A1 (en) * 2005-09-30 2007-04-05 Zimmer Vincent J Mechanisms to support use of software running on platform hardware employing different endianness

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103886087A (en) * 2014-03-28 2014-06-25 上海斐讯数据通信技术有限公司 Calculating procedure and file verifying method for MD5
CN103886087B (en) * 2014-03-28 2018-10-12 上海斐讯数据通信技术有限公司 The calculation process and file verification method of MD5
CN107423084A (en) * 2017-04-24 2017-12-01 武汉斗鱼网络科技有限公司 Modification of program method and device
CN107423084B (en) * 2017-04-24 2021-02-02 武汉斗鱼网络科技有限公司 Program modification method and device
CN110647355A (en) * 2018-06-27 2020-01-03 上海寒武纪信息科技有限公司 Data processor and data processing method
CN110647355B (en) * 2018-06-27 2021-11-26 上海寒武纪信息科技有限公司 Data processor and data processing method
CN109621405A (en) * 2018-11-21 2019-04-16 罗伊互娱(深圳)有限公司 Cross-platform interchange method, apparatus, computer equipment and storage medium
CN109621404A (en) * 2018-11-21 2019-04-16 罗伊互娱(深圳)有限公司 Cross-platform interchange system, method, apparatus, computer equipment and storage medium
CN113867682A (en) * 2021-12-06 2021-12-31 广东省新一代通信与网络创新研究院 Coprocessor for realizing floating-point number out-of-order conversion

Similar Documents

Publication Publication Date Title
CN101645017A (en) Cross-platform byte order processing method, device and byte code running platform
US7966609B2 (en) Optimal floating-point expression translation method based on pattern matching
US8799878B2 (en) Multi level virtual function tables
US8751823B2 (en) System and method for branch function based obfuscation
CN1197003C (en) Method and device for treating abnormal as normal control flow
WO2010070384A1 (en) Compiler optimisation like idiom recognition through pattern matching using value numbering
CN103116513B (en) A kind of heterogeneous multi-nucleus processor compiler
CN103440156A (en) Linux software package manufacturing method capable of being used in various systems
CN113283613A (en) Deep learning model generation method, optimization method, device, equipment and medium
CN101553779A (en) Migration apparatus which convert application program of mainframe system into application program of open system and method for thereof
CN109739508A (en) Compilation of source code method, apparatus, system and storage medium
CN110673856A (en) Data processing method and device and machine-readable storage medium
Grützmacher et al. A customized precision format based on mantissa segmentation for accelerating sparse linear algebra
CN115955365A (en) Network compiling system and method for endogenous safety
Leshchinskiy et al. Higher order flattening
US10416971B2 (en) Method of creating the balanced parse tree having optimized height
CN101645018B (en) Method, system and device for processing byte codes in multiple versions
HOUSEL III A study of decompiling machine languages into high-Level machine independent languages
CN113849781B (en) Go language source code confusion method, system, terminal and storage medium
CN114691151A (en) Optimized code decompiling method and system based on deep learning
CN115048184A (en) Method and device for optimizing execution of interpreter instruction
Grelck et al. Axis control in SAC
CN114168145A (en) LLVM compilation-based computational expression method, system, device and storage medium
US7774767B2 (en) System and method for compiler interprocedural optimization having support for object files in libraries
CN112527264A (en) Constant data access optimization method based on heterogeneous platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20100210