CN103136060A - Operational control method and operational control device - Google Patents

Operational control method and operational control device Download PDF

Info

Publication number
CN103136060A
CN103136060A CN2011103767276A CN201110376727A CN103136060A CN 103136060 A CN103136060 A CN 103136060A CN 2011103767276 A CN2011103767276 A CN 2011103767276A CN 201110376727 A CN201110376727 A CN 201110376727A CN 103136060 A CN103136060 A CN 103136060A
Authority
CN
China
Prior art keywords
executable program
hardware structure
operating system
electronic equipment
run
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.)
Granted
Application number
CN2011103767276A
Other languages
Chinese (zh)
Other versions
CN103136060B (en
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201110376727.6A priority Critical patent/CN103136060B/en
Publication of CN103136060A publication Critical patent/CN103136060A/en
Application granted granted Critical
Publication of CN103136060B publication Critical patent/CN103136060B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses an operational control method and an operational control device which are applied in a first electronic device which is provided with first hardware architecture. A first operation system is installed inside the first electronic device and at least can operate on the first hardware architecture and second hardware architecture. The operational control method specifically comprises a step of determining an executable program to be operated, and a step of analyzing the executable program and determining whether the executable program can operate on the first hardware architecture or not to acquire a first analyzing result. When the first analyzing result is that the executable program cannot operate on the first hardware architecture, the operation of the executable program is controlled to operate, and errors are avoided. According to the operational control method and the operational control device, the problem that an operation system of the same version makes wrong reports on an application program is avoided.

Description

Progress control method and operating control device
Technical field
The invention belongs to electronic applications, particularly a kind of progress control method and operating control device.
Background technology
At present, diversified hardware structure has appearred, as X86-based, ARM framework, and also there are various versions in operating system, as the operating system of Window version, the operating system of linux version, the operating system of Android version, the operating system of iOS version etc.
The operating system of different editions is in order to capture more market, the operating system of each version can derive for different hardware structures a plurality of branches, will release two branches for X86-based and ARM framework as the Win8 operating system that is about to release, be applied to respectively X86-based and ARM framework.
The inventor finds in realizing the process of the embodiment of the present invention, and there is following shortcoming at least in prior art.
Operating system for same version, from the user point of view, the form of expression of its executable program identical (as icon, suffix etc.), but for executable program, although it is corresponding to same operating system version, but under another branch of executable program in same operating system that can move under a branch/hardware structure of operating system, the situation that to move and to report an error can occur, cause the user to experience decline.
Summary of the invention
The purpose of the embodiment of the present invention is to provide a kind of progress control method and operating control device, to guarantee the correct processing of the application program under the different hardware framework.
To achieve these goals, the embodiment of the present invention provides a kind of progress control method, being applied to one has in the first electronic equipment of the first hardware structure, in described the first electronic equipment, the first operating system is installed, described the first operating system can run on described the first hardware structure and the second hardware structure at least, and described progress control method specifically comprises:
Determine executable program to be moved;
Analyze described executable program, determine that whether described executable program can run on described the first hardware structure, obtains one first analysis result;
When described the first analysis result is no, control the operation of described executable program, avoid reporting an error.
Above-mentioned progress control method, wherein, described the first operating system is Windows operating system, and described the first hardware structure is X86-based, and described the second hardware structure is advanced reduced instruction set computer machine ARM framework.
Above-mentioned progress control method, wherein, the operation of the described executable program of described control is specially:
When described executable program can run on described the second hardware structure, start an analog platform corresponding with described the second hardware structure at described the first electronic equipment;
Based on described the first operating system of described analog platform operation;
Utilization is carried out described executable program based on the first operating system of described analog platform operation.
Above-mentioned progress control method, wherein, the operation of the described executable program of described control is specially:
When described executable program can run on described the second hardware structure, send described executable program to having the second hardware structure, and be equipped with in the second electronic equipment of described the first operating system;
Receive the service data that described the second described executable program of electronic equipment operation produces;
Show the operation result of described executable program at described the first electronic equipment according to described service data.
Above-mentioned progress control method, wherein, the operation of the described executable program of described control is specially:
Stop described executable program to start;
At described the first hardware structure corresponding to the electronic equipment described executable program of output.
Above-mentioned progress control method, wherein, the described executable program of described analysis, determine whether described executable program can run on described the first hardware structure, obtain in the step of one first analysis result, specifically determine according to the machine Machine field in the file header of described executable program whether described executable program can run on described the first hardware structure.
Above-mentioned progress control method, wherein, the described executable program of described analysis, determine whether described executable program can run on described the first hardware structure, and the step of obtaining one first analysis result specifically comprises:
Obtain the code segment in described executable program;
Resolve the machine code of the byte that described code segment comprises;
Whether judgement described machine code under described the first hardware structure is effective instruction, obtains described the first analysis result;
Wherein, when described machine code was effective instruction under described the first hardware structure, described the first analysis result was yes, otherwise was no.
To achieve these goals, the embodiment of the present invention provides a kind of progress control method, is applied to one and has in the first electronic equipment of the first hardware structure, in described the first electronic equipment, the first operating system is installed, and described progress control method specifically comprises:
Determine executable program to be moved;
Analyze described executable program, determine that whether described executable program is the executable program that should run on the second operating system, obtains the second analysis result; Described the second operating system has identical operating system version with described the first operating system, and described the second operating system can run on the second hardware structure;
For when being, control the operation of described executable program at described the second analysis result, avoid reporting an error.
Above-mentioned progress control method, wherein, described the first operating system and the second operating system are Windows operating system, and described the first hardware structure is X86-based, and described the second hardware structure is advanced reduced instruction set computer machine ARM framework.
Above-mentioned progress control method, wherein, the operation of the described executable program of described control is specially:
Start an analog platform corresponding with described the second hardware structure at described the first electronic equipment;
Based on described the second operating system of described analog platform operation;
Utilization is carried out described executable program based on the second operating system of described analog platform operation.
Above-mentioned progress control method, wherein, the operation of the described executable program of described control is specially:
Send described executable program to having the second hardware structure, and be equipped with in the second electronic equipment of described the second operating system;
Receive the service data that described the second described executable program of electronic equipment operation produces;
Show the operation result of described executable program at described the first electronic equipment according to described service data.
Above-mentioned progress control method, wherein, the operation of the described executable program of described control is specially:
Stop described executable program to start;
At described the first hardware structure corresponding to the electronic equipment described executable program of output.
Above-mentioned progress control method, wherein, the described executable program of described analysis, determine whether described executable program is the executable program that should run on the second operating system, obtain in the step of the second analysis result, specifically determine according to the machine Machine field in the file header of described executable program whether described executable program is the executable program that should run on the second operating system.
Above-mentioned progress control method, wherein, the described executable program of described analysis, determine whether described executable program is the executable program that should run on the second operating system, and the step of obtaining the second analysis result specifically comprises:
Obtain the code segment in described executable program;
Resolve the machine code of the byte that described code segment comprises;
Whether judgement described machine code under described the second hardware structure is effective instruction, obtains described the second analysis result;
Wherein, when described machine code was effective instruction under described the second hardware structure, described the second analysis result was yes, otherwise was no.
To achieve these goals, the embodiment of the present invention provides a kind of operating control device, being applied to one has in the first electronic equipment of the first hardware structure, in described the first electronic equipment, the first operating system is installed, described the first operating system can run on described the first hardware structure and the second hardware structure at least, and described operating control device specifically comprises:
Determination module is used for determining executable program to be moved;
The first analysis module is used for analyzing described executable program, determines that whether described executable program can run on described the first hardware structure, obtains one first analysis result;
The first control module is used for controlling the operation of described executable program when described the first analysis result is no, avoids reporting an error.
Above-mentioned operating control device, wherein, described the first operating system is Windows operating system, and described the first hardware structure is X86-based, and described the second hardware structure is advanced reduced instruction set computer machine ARM framework.
Above-mentioned operating control device, wherein, described the first control module specifically is used for:
Start an analog platform corresponding with described the second hardware structure at described the first electronic equipment, and after moving described the first operating system based on described analog platform, utilize based on the first operating system of described analog platform operation and carry out described executable program; Or
Send described executable program to having the second hardware structure, and be equipped with in the second electronic equipment of described the first operating system, and after the service data that receives described the second described executable program generation of electronic equipment operation, show the operation result of described executable program at described the first electronic equipment according to described service data; Or
Stop described executable program to start, and at described the first hardware structure corresponding to the electronic equipment described executable program of output.
Above-mentioned operating control device, wherein, described the first analysis module specifically is used for the machine Machine field of the file header of described executable program and determines whether described executable program can run on described the first hardware structure.
Above-mentioned operating control device, wherein, described the first analysis module specifically comprises:
Acquiring unit is for the code segment that obtains described executable program;
Resolution unit is used for resolving the machine code of the byte that described code segment comprises;
The first judging unit is used for whether judgement described machine code under described the first hardware structure is effective instruction, obtains described the first analysis result;
Wherein, when described machine code was effective instruction under described the first hardware structure, described the first analysis result was yes, otherwise was no.
To achieve these goals, the embodiment of the present invention provides a kind of operating control device, is applied to one and has in the first electronic equipment of the first hardware structure, in described the first electronic equipment, the first operating system is installed, and described operating control device specifically comprises:
Determination module is used for determining executable program to be moved;
The second analysis module is used for analyzing described executable program, determines that whether described executable program is the executable program that should run on the second operating system, obtains the second analysis result; Described the second operating system has identical operating system version with described the first operating system, and described the second operating system can run on the second hardware structure;
The second control module is used at described the second analysis result controlling the operation of described executable program for when being, avoids reporting an error.
Above-mentioned operating control device, wherein, described the first operating system and the second operating system are Windows operating system, and described the first hardware structure is X86-based, and described the second hardware structure is advanced reduced instruction set computer machine ARM framework.
Above-mentioned operating control device, wherein, described the second control module specifically is used for:
Start an analog platform corresponding with described the second hardware structure at described the first electronic equipment, and after moving described the first operating system based on described analog platform, utilize based on the first operating system of described analog platform operation and carry out described executable program; Or
Send described executable program to having the second hardware structure, and be equipped with in the second electronic equipment of described the first operating system, and after the service data that receives described the second described executable program generation of electronic equipment operation, show the operation result of described executable program at described the first electronic equipment according to described service data; Or
Stop described executable program to start, and at described the first hardware structure corresponding to the electronic equipment described executable program of output.
Above-mentioned operating control device, wherein, described the second analysis module specifically is used for determining according to the machine Machine field of the file header of described executable program whether described executable program is the executable program that should run on the second operating system.
Above-mentioned operating control device, wherein, described the second analysis module specifically comprises:
Acquiring unit is for the code segment that obtains described executable program;
Resolution unit is used for resolving the machine code of the byte that described code segment comprises;
The second judging unit is used for whether judgement described machine code under described the second hardware structure is effective instruction, obtains described the second analysis result;
Wherein, when described machine code was effective instruction under described the second hardware structure, described the second analysis result was yes, otherwise was no.
The embodiment of the present invention has following beneficial effect:
In the specific embodiment of the invention, when having an executable program, at first can be by analyzing this executable program, judge whether it can run on described the first hardware structure (as X86-based, or ARM framework), when it can not be in described the first hardware structure operation, can one control processing voluntarily, make it when the user indicates operation, can not report an error, improved user's experience.
Description of drawings
Fig. 1 is the schematic flow sheet of a kind of progress control method of the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the another kind of progress control method of the embodiment of the present invention;
Fig. 3 is the structural representation of a kind of operating control device of the embodiment of the present invention;
Fig. 4 is the structural representation of the another kind of operating control device of the embodiment of the present invention.
Embodiment
In the progress control method and operating control device of the embodiment of the present invention, at first analyze executable program to be moved and determine the hardware structure/operating system of its adaptation, and then carry out respective handling according to the executable program that analysis result is treated operation, avoid reporting an error.
A kind of progress control method of one of them embodiment of the present invention is applied to one to have in the first electronic equipment of the first hardware structure, in described the first electronic equipment, the first operating system is installed, described the first operating system can run on described the first hardware structure and the second hardware structure at least, as shown in Figure 1, described progress control method specifically comprises:
Step 11 is determined executable program to be moved;
Step 12 is analyzed described executable program, determines that whether described executable program can run on described the first hardware structure, obtains one first analysis result;
Step 13 when described the first analysis result is no, is controlled the operation of described executable program, avoids reporting an error.
In the specific embodiment of the invention, when having an executable program, at first can be by analyzing this executable program, judge whether it can run on described the first hardware structure (as X86-based, or ARM framework), can not when described the first hardware structure moves, can one control processing voluntarily when it, make it when the user indicates operation, also can not make mistakes.
In specific embodiments of the invention, above-mentioned operating system can be the existing operating system (as Win8 operating system) that can run on a plurality of hardware structures, can be also in the future can only run on now a hardware structure, expand to but possess the operating system of moving under a plurality of hardware structures.
And the hardware structure in specific embodiments of the invention can be to use at present X86-based, ARM framework very widely, can be also the following hardware structure that occurs.
In a word, the embodiment of the present invention is applicable to the operating system that can move under at least two hardware structures.
In one embodiment of the invention, the first operating system is Windows operating system, and described the first hardware structure is X86-based, and described the second hardware structure is that advanced reduced instruction set computer machine ARM framework is that example is elaborated.
In one embodiment of the invention, control the operation of described executable program, avoiding reporting an error can be to realize in several ways, is respectively described below.
<mode one 〉
In mode one, realize in the mode of analog platform.
Under this mode, the operation of the described executable program of described control is specially:
When described executable program can run on described the second hardware structure, start an analog platform corresponding with described the second hardware structure at described the first electronic equipment;
Based on described the first operating system of described analog platform operation;
Utilization is carried out described executable program based on the first operating system of described analog platform operation.
The below is described in detail as follows as an example of this analog platform of virtual machine example.
Virtual machine refer to by software simulation have the complete hardware system function, operate in a complete computer in complete isolation environment.
Pass through software virtual machine, can simulate another based on the electronic equipment of the second hardware structure based on the first hardware structure, these virtual machines carry out work fully just as real computing machine, can installing operating system, set up applications, accesses network resource etc.
At present popular software virtual machine has VMware (VMWare ACE), Virtual Box and Virtual PC etc., can fictionalize a plurality of computing machines in the Windows system.
Therefore, in mode one, when judging executable program and can't run on described the first hardware structure, judge further whether this executable program can run on the second hardware structure, when executable program can run on the second hardware structure, utilize a hardware-initiated virtual machine of the first hardware structure, this virtual machine is the second hardware structure, then come another branch of load operating operating system based on the virtual machine of this second hardware structure, then utilize the operating system branch of this operation to carry out described executable program.
For for the application program of moving in virtual machine, it is exactly a real computing machine, so this application program can access correct operation, and can not report an error.
<mode two 〉
The scheme that adopts in mode one is a kind of mode that solves the problem of reporting an error in this locality by virtual machine, in mode two, can process by external unit.
Under this mode, the operation of the described executable program of described control is specially:
When described executable program can run on described the second hardware structure, send described executable program to having the second hardware structure, and be equipped with in the second electronic equipment of described the first operating system;
Receive the service data that described the second described executable program of electronic equipment operation produces;
Show the operation result of described executable program at described the first electronic equipment according to described service data.
Be described in detail as follows.
In mode two, when judging executable program and can't run on described the first hardware structure, judge further whether this executable program can run on the second hardware structure, when executable program can run on the second hardware structure, seek another electronic equipment, this electronic equipment has the second hardware structure and the first operating system is installed and gets final product, and described executable program is sent in the second electronic equipment that searches out, and carries out this executable program by the second electronic equipment.
Simultaneously, this second electronic equipment can utilize based on the first operating system of the second hardware structure operation and carry out this executable program after receiving this executable program.
In the second electronic equipment implementation, at any time data are returned to the first electronic equipment, and after the service data that described the second described executable program of electronic equipment operation of the first electronic equipment reception produces, can show based on these data, make the user can see the ruuning situation of application program on the first electronic equipment.From the user point of view, this application program has obtained correct operation, and can not report an error.
<mode three 〉
Finally all carried out this executable program under above-mentioned dual mode, but avoided reporting an error by prompting user's mode in mode three.
Under this mode, the operation of the described executable program of described control is specially:
Stop described executable program to start;
At described the first hardware structure corresponding to the electronic equipment described executable program of output.
Under this mode, be only to stop the continuation of executable program to be carried out, and to hardware structure corresponding to the described executable program of user notification, and this output can be the output of audio frequency, can be also the output that shows, does not do concrete restriction at this.
A kind of progress control method of another embodiment of the present invention is applied to one and has in the first electronic equipment of the first hardware structure, in described the first electronic equipment, the first operating system is installed, and as shown in Figure 2, described progress control method specifically comprises:
Step 21 is determined executable program to be moved;
Step 22 is analyzed described executable program, determines that whether described executable program is the executable program that should run on the second operating system, obtains the second analysis result; Described the second operating system has identical operating system version with described the first operating system, and described the second operating system can run on the second hardware structure;
Step 23 for when being, is controlled the operation of described executable program at described the second analysis result, avoids reporting an error.
At this, first illustrate as follows to identical operating system version:
Has identical operating system version as the Win8 system that is used for the x86 framework and the Win8 system that is used for the ARM framework.
From another perspective, the operating system that so-called version is identical is exactly the different branches for the different hardware framework of same operating system.
The hardware structure that relates in the above-described embodiment, operating system and hardware structure before and operating system are identical, and no further details to be given herein.
And the difference part of controlling the operation of described executable program and the embodiment of describing before is, it does not need further to analyze the hardware structure that executable program can move, and other processing are identical, also are not described in further detail at this.
In two embodiments before the present invention, wherein a kind of the needs judges whether executable program can run on described the first hardware structure, and another kind of embodiment need to determine whether to run on the executable program of the second operating system, can find, the difference of object only both, judge so can adopt in a like fashion, and concrete judgement can be accomplished in several ways, be described as follows.
<mode one 〉
In mode one, the field of the file header by executable program judges, specifically determines according to the machine Machine field in the file header of described executable program whether described executable program can run on described the first hardware structure under this mode.
Be described as follows as an example of Windows operating system example.
Under Windows operating system, executable program (.exe file) meets the file map structure of PE, comprising PE file header part is arranged.
And wherein PE file header organization definition is the C language format, and is as follows:
typedef struct_IMAGE_FILE_HEADER
{
WORD Machine; The needed CPU of // this document operation
WORD NumberOfSections; The joint number order of // file
DWORD TimeDateStamp; // file creation date and time
DWORD PointerToSymbolTable; // be used for debugging
DWORD NumberOfSymbols; Symbol numbers in // symbol table
WORD SizeOfOptionalHeader; //OptionalHeader structure size
WORD Characteristics; // fileinfo mark, distinguishing file is exe or dll
}IMAGE_FILE_HEADER,*PIMAGE_FILE_HEADER;
The assignment implication of Machine field wherein is as shown in the table, wherein first classifies sign as, and second classifies value as, and the 3rd classifies implication as:
Sign Value Implication
IMAGE_FILE_MACHINE-AM33 1d3 The AM33 of Panasonic
IMAGE_FILE_MACHINE_AMD64 8664 X64
IMAGE_FILE_MACHINE_ARM 1c0 The ARM small end
IMAGE_FILE_MACHINE_I386 14c Intel 386 families and compatible CPU thereof
…… …… ……
Can determine from upper table the hardware structure that executable program is corresponding, be 1c0 as value, and corresponding hardware structure is ARM, and value is 14c, and corresponding hardware structure is X86.
<mode two 〉
In mode two, judge by the resolving code section, under this mode, the described executable program of described analysis, determine whether described executable program can run on described the first hardware structure, and the step of obtaining one first analysis result specifically comprises:
Obtain the code segment in described executable program;
Resolve the machine code of the byte that described code segment comprises;
Whether judgement described machine code under described the first/the second hardware structure is effective instruction, obtains described the first/two analysis result;
Wherein, when described machine code was effective instruction under described the first/two hardware structure, described the first/two analysis result was yes, otherwise was no.
Each executable program comprises a large amount of code segments, these code segments can be translated into machine code when carrying out, finally carry out by hardware the operation that these machine codes realize executable program, therefore, if the byte in code segment is not effective instruction after resolving, represent that executable program is not the executable program under this hardware structure.
When some executable program does not comprise above-mentioned Machine field or has the field of similar functions, can realize the judgement of corresponding hardware structure in this way.
Certainly, in specific embodiments of the invention, need to stop executable program to operate according to existing method before out in judged result, it can be realized by the mode of edit the registry item, and be as follows:
Hkey_classes_root exefile shell open command, point to an executable program, this executable program is completed hardware structure and is detected, and determines to take which kind of processing mode according to testing result.
The embodiment of the present invention also provides a kind of operating control device, being applied to one has in the first electronic equipment of the first hardware structure, in described the first electronic equipment, the first operating system is installed, described the first operating system can run on described the first hardware structure and the second hardware structure at least, as shown in Figure 3, described operating control device specifically comprises:
Determination module is used for determining executable program to be moved;
The first analysis module is used for analyzing described executable program, determines that whether described executable program can run on described the first hardware structure, obtains one first analysis result;
The first control module is used for controlling the operation of described executable program when described the first analysis result is no, avoids reporting an error.
Described the first control module can be avoided reporting an error in several ways, and is as follows:
<analog platform mode 〉
When described executable program can run on described the second hardware structure, start an analog platform corresponding with described the second hardware structure at described the first electronic equipment, and after moving described the first operating system based on described analog platform, utilize based on the first operating system of described analog platform operation and carry out described executable program; Or
<by the mode of other electronic equipments 〉
When described executable program can run on described the second hardware structure, send described executable program to having the second hardware structure, and be equipped with in the second electronic equipment of described the first operating system, and after the service data that receives described the second described executable program generation of electronic equipment operation, show the operation result of described executable program at described the first electronic equipment according to described service data; Or
<prompting user mode 〉
Stop described executable program to start, and at described the first hardware structure corresponding to the electronic equipment described executable program of output.
And judge whether executable program can run on a certain hardware structure and can determine whether described executable program can run on described the first hardware structure by the machine Machine field in the file header of executable program.
Also can be by following code analysis mode, described the first analysis module specifically comprises:
Acquiring unit is for the code segment that obtains described executable program;
Resolution unit is used for resolving the machine code of the byte that described code segment comprises;
The first judging unit is used for whether judgement described machine code under described the first hardware structure is effective instruction, obtains described the first analysis result;
Wherein, when described machine code was effective instruction under described the first hardware structure, described the first analysis result was yes, otherwise was no.
The another kind of operating control device of the embodiment of the present invention is applied to one and has in the first electronic equipment of the first hardware structure, in described the first electronic equipment, the first operating system is installed, and described operating control device specifically comprises as shown in Figure 4:
Determination module is used for determining executable program to be moved;
The second analysis module is used for analyzing described executable program, determines that whether described executable program is the executable program that should run on the second operating system, obtains the second analysis result; Described the second operating system has identical operating system version with described the first operating system, and described the second operating system can run on the second hardware structure;
The second control module is used at described the second analysis result controlling the operation of described executable program for when being, avoids reporting an error.
Described the second control module can be avoided reporting an error in several ways, and is as follows:
<analog platform mode 〉
Start an analog platform corresponding with described the second hardware structure at described the first electronic equipment, and after moving described the first operating system based on described analog platform, utilize based on the first operating system of described analog platform operation and carry out described executable program; Or
<by the mode of other electronic equipments 〉
Send described executable program to having the second hardware structure, and be equipped with in the second electronic equipment of described the first operating system, and after the service data that receives described the second described executable program generation of electronic equipment operation, show the operation result of described executable program at described the first electronic equipment according to described service data; Or
<prompting user mode 〉
Stop described executable program to start, and at described the first hardware structure corresponding to the electronic equipment described executable program of output.
Described the second analysis module specifically is used for determining according to the machine Machine field of the file header of described executable program whether described executable program is the executable program that should run on the second operating system.
Also can judge by following code analysis mode corresponding hardware structure, described the second analysis module specifically comprises:
Acquiring unit is for the code segment that obtains described executable program;
Resolution unit is used for resolving the machine code of the byte that described code segment comprises;
The second judging unit is used for whether judgement described machine code under described the second hardware structure is effective instruction, obtains described the second analysis result;
Wherein, when described machine code was effective instruction under described the second hardware structure, described the second analysis result was yes, otherwise was no.
In the embodiment of the present invention, module can realize with software, in order to carried out by various types of processors.For instance, the executable code module of a sign can comprise one or more physics or the logical block of computer instruction, and for instance, it can be built as object, process or function.However, the executable code of institute's identification module need not to be physically located in together, but can comprise the different instruction on being stored in coordination not, when combining on these command logics, and its composition module and realize the regulation purpose of this module.
In fact, executable code module can be individual instructions or many instructions, and even can be distributed on a plurality of different code segments, is distributed in the middle of distinct program, and crosses over a plurality of memory devices distributions.Similarly, service data can be identified in module, and can realize and be organized in the data structure of any suitable type according to any suitable form.Described service data can be used as the individual data collection and is collected, and perhaps can be distributed on diverse location (to be included on different storage device), and can only be present on system or network as electronic signal at least in part.
When module can utilize software to realize, consider the level of existing hardware technique, so can be with the module of software realization, in the situation that do not consider cost, those skilled in the art can build corresponding hardware circuit and realize corresponding function, and described hardware circuit comprises conventional ultra-large integrated (VLSI) circuit or gate array and the existing semiconductor such as logic chip, transistor or other discrete element.Module can also be used programmable hardware device, realizations such as field programmable gate array, programmable logic array, programmable logic device.
The above is only preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, is equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (24)

1. progress control method, being applied to one has in the first electronic equipment of the first hardware structure, in described the first electronic equipment, the first operating system is installed, described the first operating system can run on described the first hardware structure and the second hardware structure at least, it is characterized in that, described progress control method specifically comprises:
Determine executable program to be moved;
Analyze described executable program, determine that whether described executable program can run on described the first hardware structure, obtains one first analysis result;
When described the first analysis result is no, control the operation of described executable program, avoid reporting an error.
2. progress control method according to claim 1, is characterized in that, described the first operating system is Windows operating system, and described the first hardware structure is X86-based, and described the second hardware structure is advanced reduced instruction set computer machine ARM framework.
3. progress control method according to claim 1 and 2, is characterized in that, the operation of the described executable program of described control is specially:
When described executable program can run on described the second hardware structure, start an analog platform corresponding with described the second hardware structure at described the first electronic equipment;
Based on described the first operating system of described analog platform operation;
Utilization is carried out described executable program based on described first operating system of described analog platform operation.
4. progress control method according to claim 1 and 2, is characterized in that, the operation of the described executable program of described control is specially:
When described executable program can run on described the second hardware structure, send described executable program to having the second hardware structure, and be equipped with in the second electronic equipment of described the first operating system;
Receive the service data that described the second described executable program of electronic equipment operation produces;
Show the operation result of described executable program at described the first electronic equipment according to described service data.
5. progress control method according to claim 1 and 2, is characterized in that, the operation of the described executable program of described control is specially:
Stop described executable program to start;
At described the first hardware structure corresponding to the electronic equipment described executable program of output.
6. progress control method according to claim 2, it is characterized in that, the described executable program of described analysis, determine whether described executable program can run on described the first hardware structure, obtain in the step of one first analysis result, specifically determine according to the machine Machine field in the file header of described executable program whether described executable program can run on described the first hardware structure.
7. progress control method according to claim 1, is characterized in that, the described executable program of described analysis determines whether described executable program can run on described the first hardware structure, and the step of obtaining one first analysis result specifically comprises:
Obtain the code segment in described executable program;
Resolve the machine code of the byte that described code segment comprises;
Whether judgement described machine code under described the first hardware structure is effective instruction, obtains described the first analysis result;
Wherein, when described machine code was effective instruction under described the first hardware structure, described the first analysis result was yes, otherwise was no.
8. a progress control method, be applied to one and have in the first electronic equipment of the first hardware structure, in described the first electronic equipment, the first operating system is installed, and it is characterized in that, described progress control method specifically comprises:
Determine executable program to be moved;
Analyze described executable program, determine that whether described executable program is the executable program that should run on the second operating system, obtains the second analysis result; Described the second operating system has identical operating system version with described the first operating system, and described the second operating system can run on the second hardware structure;
For when being, control the operation of described executable program at described the second analysis result, avoid reporting an error.
9. progress control method according to claim 8, it is characterized in that, described the first operating system and the second operating system are Windows operating system, and described the first hardware structure is X86-based, and described the second hardware structure is advanced reduced instruction set computer machine ARM framework.
10. according to claim 8 or 9 described progress control methods, is characterized in that, the operation of the described executable program of described control is specially:
Start an analog platform corresponding with described the second hardware structure at described the first electronic equipment;
Based on described the second operating system of described analog platform operation;
Utilization is carried out described executable program based on the second operating system of described analog platform operation.
11. according to claim 8 or 9 described progress control methods is characterized in that, the operation of the described executable program of described control is specially:
Send described executable program to having the second hardware structure, and be equipped with in the second electronic equipment of described the second operating system;
Receive the service data that described the second described executable program of electronic equipment operation produces;
Show the operation result of described executable program at described the first electronic equipment according to described service data.
12. according to claim 8 or 9 described progress control methods is characterized in that, the operation of the described executable program of described control is specially:
Stop described executable program to start;
At described the first hardware structure corresponding to the electronic equipment described executable program of output.
13. progress control method according to claim 9, it is characterized in that, the described executable program of described analysis, determine whether described executable program is the executable program that should run on the second operating system, obtain in the step of the second analysis result, specifically determine according to the machine Machine field in the file header of described executable program whether described executable program is the executable program that should run on the second operating system.
14. progress control method according to claim 8 is characterized in that, the described executable program of described analysis determines whether described executable program is the executable program that should run on the second operating system, and the step of obtaining the second analysis result specifically comprises:
Obtain the code segment in described executable program;
Resolve the machine code of the byte that described code segment comprises;
Whether judgement described machine code under described the second hardware structure is effective instruction, obtains described the second analysis result;
Wherein, when described machine code was effective instruction under described the second hardware structure, described the second analysis result was yes, otherwise was no.
15. operating control device, being applied to one has in the first electronic equipment of the first hardware structure, in described the first electronic equipment, the first operating system is installed, described the first operating system can run on described the first hardware structure and the second hardware structure at least, and described operating control device specifically comprises:
Determination module is used for determining executable program to be moved;
The first analysis module is used for analyzing described executable program, determines that whether described executable program can run on described the first hardware structure, obtains one first analysis result;
The first control module is used for controlling the operation of described executable program when described the first analysis result is no, avoids reporting an error.
16. operating control device according to claim 15 is characterized in that, described the first operating system is Windows operating system, and described the first hardware structure is X86-based, and described the second hardware structure is advanced reduced instruction set computer machine ARM framework.
17. according to claim 15 or 16 described operating control devices is characterized in that, described the first control module specifically is used for:
When described executable program can run on described the second hardware structure, start an analog platform corresponding with described the second hardware structure at described the first electronic equipment, and after moving described the first operating system based on described analog platform, utilize based on the first operating system of described analog platform operation and carry out described executable program; Or
When described executable program can run on described the second hardware structure, send described executable program to having the second hardware structure, and be equipped with in the second electronic equipment of described the first operating system, and after the service data that receives described the second described executable program generation of electronic equipment operation, show the operation result of described executable program at described the first electronic equipment according to described service data; Or
Stop described executable program to start, and at described the first hardware structure corresponding to the electronic equipment described executable program of output.
18. according to claim 15 or 16 described operating control devices, it is characterized in that, described the first analysis module specifically is used for the machine Machine field of the file header of described executable program and determines whether described executable program can run on described the first hardware structure.
19. operating control device according to claim 15 is characterized in that, described the first analysis module specifically comprises:
Acquiring unit is for the code segment that obtains described executable program;
Resolution unit is used for resolving the machine code of the byte that described code segment comprises;
The first judging unit is used for whether judgement described machine code under described the first hardware structure is effective instruction, obtains described the first analysis result;
Wherein, when described machine code was effective instruction under described the first hardware structure, described the first analysis result was yes, otherwise was no.
20. an operating control device is applied to one and has in the first electronic equipment of the first hardware structure, in described the first electronic equipment, the first operating system is installed, described operating control device specifically comprises:
Determination module is used for determining executable program to be moved;
The second analysis module is used for analyzing described executable program, determines that whether described executable program is the executable program that should run on the second operating system, obtains the second analysis result; Described the second operating system has identical operating system version with described the first operating system, and described the second operating system can run on the second hardware structure;
The second control module is used at described the second analysis result controlling the operation of described executable program for when being, avoids reporting an error.
21. operating control device according to claim 20, it is characterized in that, described the first operating system and the second operating system are Windows operating system, and described the first hardware structure is X86-based, and described the second hardware structure is advanced reduced instruction set computer machine ARM framework.
22. according to claim 20 or 21 described operating control devices is characterized in that, described the second control module specifically is used for:
Start an analog platform corresponding with described the second hardware structure at described the first electronic equipment, and after moving described the first operating system based on described analog platform, utilize based on the first operating system of described analog platform operation and carry out described executable program; Or
Send described executable program to having the second hardware structure, and be equipped with in the second electronic equipment of described the first operating system, and after the service data that receives described the second described executable program generation of electronic equipment operation, show the operation result of described executable program at described the first electronic equipment according to described service data; Or
Stop described executable program to start, and at described the first hardware structure corresponding to the electronic equipment described executable program of output.
23. operating control device according to claim 21, it is characterized in that, described the second analysis module specifically is used for determining according to the machine Machine field of the file header of described executable program whether described executable program is the executable program that should run on the second operating system.
24. operating control device according to claim 20 is characterized in that, described the second analysis module specifically comprises:
Acquiring unit is for the code segment that obtains described executable program;
Resolution unit is used for resolving the machine code of the byte that described code segment comprises;
The second judging unit is used for whether judgement described machine code under described the second hardware structure is effective instruction, obtains described the second analysis result;
Wherein, when described machine code was effective instruction under described the second hardware structure, described the second analysis result was yes, otherwise was no.
CN201110376727.6A 2011-11-23 2011-11-23 Progress control method and operating control device Active CN103136060B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110376727.6A CN103136060B (en) 2011-11-23 2011-11-23 Progress control method and operating control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110376727.6A CN103136060B (en) 2011-11-23 2011-11-23 Progress control method and operating control device

Publications (2)

Publication Number Publication Date
CN103136060A true CN103136060A (en) 2013-06-05
CN103136060B CN103136060B (en) 2016-10-05

Family

ID=48495915

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110376727.6A Active CN103136060B (en) 2011-11-23 2011-11-23 Progress control method and operating control device

Country Status (1)

Country Link
CN (1) CN103136060B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136004A (en) * 2011-11-25 2013-06-05 联想(北京)有限公司 Method of application program hardware architecture display and device
CN103885814A (en) * 2014-03-20 2014-06-25 百度在线网络技术(北京)有限公司 Simulator device and method for operating ARM APKs on x86 framework
CN115145696A (en) * 2022-08-30 2022-10-04 统信软件技术有限公司 Method, system and computing device for determining running difference of process virtual machine

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1047407A (en) * 1989-05-17 1990-11-28 国际商业机器公司 The method and apparatus of spare system characteristic is provided in data handling system
US6091414A (en) * 1996-10-31 2000-07-18 International Business Machines Corporation System and method for cross-environment interaction in a computerized graphical interface environment
CN101118499A (en) * 2006-08-04 2008-02-06 深圳市研祥智能科技股份有限公司 System for software transplantation between isomerization hardware systems
CN101382906A (en) * 2007-09-06 2009-03-11 戴尔产品有限公司 Virtual machine (vm) migration between processor architectures
CN101986266A (en) * 2010-10-22 2011-03-16 浙江大学 Method for transplanting Android mobile phone operating system to Atom development board

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1047407A (en) * 1989-05-17 1990-11-28 国际商业机器公司 The method and apparatus of spare system characteristic is provided in data handling system
US6091414A (en) * 1996-10-31 2000-07-18 International Business Machines Corporation System and method for cross-environment interaction in a computerized graphical interface environment
CN101118499A (en) * 2006-08-04 2008-02-06 深圳市研祥智能科技股份有限公司 System for software transplantation between isomerization hardware systems
CN101382906A (en) * 2007-09-06 2009-03-11 戴尔产品有限公司 Virtual machine (vm) migration between processor architectures
CN101986266A (en) * 2010-10-22 2011-03-16 浙江大学 Method for transplanting Android mobile phone operating system to Atom development board

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136004A (en) * 2011-11-25 2013-06-05 联想(北京)有限公司 Method of application program hardware architecture display and device
CN103136004B (en) * 2011-11-25 2018-07-06 联想(北京)有限公司 A kind of application program hardware structure display methods and device
CN103885814A (en) * 2014-03-20 2014-06-25 百度在线网络技术(北京)有限公司 Simulator device and method for operating ARM APKs on x86 framework
CN115145696A (en) * 2022-08-30 2022-10-04 统信软件技术有限公司 Method, system and computing device for determining running difference of process virtual machine
CN115145696B (en) * 2022-08-30 2022-11-29 统信软件技术有限公司 Method, system and computing device for determining running difference of process virtual machine

Also Published As

Publication number Publication date
CN103136060B (en) 2016-10-05

Similar Documents

Publication Publication Date Title
Chen et al. Challenges and trends in modern SoC design verification
CN100555218C (en) Be used to improve the apparatus and method of the simulation velocity of the middle-and-high-ranking language of analogue system on the sheet
Zaddach et al. Embedded devices security and firmware reverse engineering
CN101344899B (en) Simulation test method and system of on-chip system
TWI410864B (en) Controlling instruction execution in a processing environment
CN101027640A (en) Providing support for a timer associated with a virtual machine monitor
CN102799461B (en) A kind of manner of execution of application, device and electronic equipment
US11250193B1 (en) Productivity platform using system-on-chip with programmable circuitry
US10108763B2 (en) Method and simulation arrangement for simulating an automated industrial plant
CN110516447A (en) A kind of method and apparatus of identification terminal simulator
CN102054088B (en) Virtual platform for prototyping system-on-chip designs
CN103136060A (en) Operational control method and operational control device
Palm et al. Large-scale parameter studies of cell-based models of tissue morphogenesis using CompuCell3D or VirtualLeaf
CN115374017A (en) Method for capturing site during simulation running of executable file and computing equipment
US10430200B2 (en) Slave processor within a system-on-chip
US10474610B1 (en) Hardware trace and introspection for productivity platform using a system-on-chip
US20160224000A1 (en) Programming system for device control
US20170140080A1 (en) Performing And Communicating Sheet Metal Simulations Employing A Combination Of Factors
CN102508697B (en) Method for realizing 8-bit embedded CPU (central processing unit) simulation running environment by aid of Java
Ziemke et al. An integrated development framework for rapid development of platform-independent and reusable satellite on-board software
CN115185638A (en) Method for acquiring call stack during simulation running of application program and computing equipment
Borgatti et al. An integrated design and verification methodology for reconfigurable multimedia systems
CN113495094B (en) Training method of molecular mass spectrum model, molecular mass spectrum simulation method and computer
JP2012155519A (en) Simulation device, simulation method and computer program thereof
Yeh et al. Optimizing the simulation speed of qemu and systemc-based virtual 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
C14 Grant of patent or utility model
GR01 Patent grant