CN103136060B - Progress control method and operating control device - Google Patents
Progress control method and operating control device Download PDFInfo
- Publication number
- CN103136060B CN103136060B CN201110376727.6A CN201110376727A CN103136060B CN 103136060 B CN103136060 B CN 103136060B CN 201110376727 A CN201110376727 A CN 201110376727A CN 103136060 B CN103136060 B CN 103136060B
- Authority
- CN
- China
- Prior art keywords
- executable program
- hardware structure
- operating system
- run
- electronic equipment
- 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.)
- Active
Links
Landscapes
- Debugging And Monitoring (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of progress control method and operating control device, it is applied to one and has in the first electronic equipment of the first hardware structure, described first electronic equipment is provided with the first operating system, described first operating system at least can run on described first hardware structure and the second hardware structure, and described progress control method specifically includes: determine executable program to be run;Analyze described executable program, determine whether described executable program can run on described first hardware structure, obtain one first analysis result;Described first analysis result is no when, control the operation of described executable program, it is to avoid report an error.Present invention, avoiding the problem that the process of application program is reported an error by the operating system of same version.
Description
Technical field
The invention belongs to electronic applications, particularly to a kind of progress control method and operating control device.
Background technology
At present, occur in that diversified hardware structure, such as X86-based, ARM framework, and grasped
Various version is there is also, such as operating system, the behaviour of linux version of Window version as system
Make system, the operating system of Android version, the operating system etc. of iOS version.
The operating system of different editions is in order to capture more market, and the operating system of each version can be for
Different hardware structures derives multiple branch, and the Win8 operating system as released will be for X86
Framework and ARM framework release Liang Ge branch, are respectively applied to X86-based and ARM framework.
Inventor finds during realizing the embodiment of the present invention, and prior art at least exists following shortcoming.
For the operating system of same version, from the user point of view, the form of expression phase of its executable program
With (such as icon, suffix etc.), but for executable program, although it corresponds to same operating system
Version, but the executable program that can run under a branch/hardware structure of operating system is same behaviour
Make under another branch of system, it may appear that the situation cannot run and report an error, cause 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 ensure
The correct process of the application program under different hardware framework.
To achieve these goals, embodiments provide a kind of progress control method, be applied to a tool
Have in the first electronic equipment of the first hardware structure, described first electronic equipment be provided with the first operating system,
Described first operating system at least can run on described first hardware structure and the second hardware structure, described fortune
Row control method specifically includes:
Determine executable program to be run;
Analyze described executable program, determine whether described executable program can run on described first hardware
Framework, obtains one first analysis result;
Described first analysis result is no when, control the operation of described executable program, it is to avoid report an error.
Above-mentioned progress control method, wherein, described first operating system is Windows operating system,
Described first hardware structure is X86-based, and described second hardware structure is advanced reduced instruction set machine
ARM framework.
Above-mentioned progress control method, wherein, the operation of the described executable program of described control particularly as follows:
When described executable program can run on described second hardware structure, at described first electronic equipment
Start an analog platform corresponding with described second hardware structure;
Described first operating system is run based on described analog platform;
The first operating system run based on described analog platform is utilized to perform described executable program.
Above-mentioned progress control method, wherein, the operation of the described executable program of described control particularly as follows:
When described executable program can run on described second hardware structure, send described executable program
To having the second hardware structure, and it is provided with in the second electronic equipment of described first operating system;
Receive described second electronic equipment and run the service data that described executable program produces;
Show the operation result of described executable program at described first electronic equipment according to described service data.
Above-mentioned progress control method, wherein, the operation of the described executable program of described control particularly as follows:
Described executable program is stoped to start;
The hardware structure that described executable program is corresponding is exported at described first electronic equipment.
Above-mentioned progress control method, wherein, the described executable program of described analysis, determine and described can perform
Whether program can run on described first hardware structure, obtains in the step of one first analysis result, specifically
Machine Machine field in file header according to described executable program determines that described executable program is
No can run on described first hardware structure.
Above-mentioned progress control method, wherein, the described executable program of described analysis, determine and described can perform
Whether program can run on described first hardware structure, and the step obtaining one first analysis result specifically includes:
Obtain the code segment in described executable program;
Resolve the machine code of the byte that described code segment includes;
Judge that whether described machine code is effective instruction under described first hardware structure, obtains described first
Analysis result;
Wherein, when under described first hardware structure, described machine code is for effectively instructing, described first analyzes
Result is yes, is otherwise no.
To achieve these goals, embodiments provide a kind of progress control method, be applied to a tool
Have in the first electronic equipment of the first hardware structure, described first electronic equipment be provided with the first operating system,
Described progress control method specifically includes:
Determine executable program to be run;
Analyze described executable program, determine whether described executable program is to run on the second operating system
Executable program, obtain the second analysis result;Described second operating system and described first operating system tool
There is identical operating system version, and described second operating system can run on the second hardware structure;
Described second analysis result for being when, control the operation of described executable program, it is to avoid report an error.
Above-mentioned progress control method, wherein, described first operating system and the second operating system are
Windows operating system, described first hardware structure is X86-based, and described second hardware structure is first
Enter reduced instruction set machine ARM framework.
Above-mentioned progress control method, wherein, the operation of the described executable program of described control particularly as follows:
An analog platform corresponding with described second hardware structure is started at described first electronic equipment;
Described second operating system is run based on described analog platform;
The second operating system run based on described analog platform is utilized to perform described executable program.
Above-mentioned progress control method, wherein, the operation of the described executable program of described control particularly as follows:
Send described executable program to having the second hardware structure, and described second operating system is installed
In second electronic equipment;
Receive described second electronic equipment and run the service data that described executable program produces;
Show the operation result of described executable program at described first electronic equipment according to described service data.
Above-mentioned progress control method, wherein, the operation of the described executable program of described control particularly as follows:
Described executable program is stoped to start;
The hardware structure that described executable program is corresponding is exported at described first electronic equipment.
Above-mentioned progress control method, wherein, the described executable program of described analysis, determine and described can perform
Whether program is the executable program that should run on the second operating system, obtains in the step of the second analysis result,
Determine with specific reference to the machine Machine field in the file header of described executable program and described can perform journey
Whether sequence 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 and described can perform
Whether program is the executable program that should run on the second operating system, obtains the step tool of the second analysis result
Body includes:
Obtain the code segment in described executable program;
Resolve the machine code of the byte that described code segment includes;
Judge that whether described machine code is effective instruction under described second hardware structure, obtains described second
Analysis result;
Wherein, when under described second hardware structure, described machine code is for effectively instructing, described second analyzes
Result is yes, is otherwise no.
To achieve these goals, embodiments provide a kind of operating control device, be applied to a tool
Have in the first electronic equipment of the first hardware structure, described first electronic equipment be provided with the first operating system,
Described first operating system at least can run on described first hardware structure and the second hardware structure, described fortune
Row controls device and specifically includes:
Determine module, for determining executable program to be run;
First analyzes module, is used for analyzing described executable program, determines that described executable program whether can
Run on described first hardware structure, obtain one first analysis result;
First control module, for described first analysis result is no when, can perform journey described in control
The operation of sequence, it is to avoid report an error.
Above-mentioned operating control device, wherein, described first operating system is Windows operating system,
Described first hardware structure is X86-based, and described second hardware structure is advanced reduced instruction set machine
ARM framework.
Above-mentioned operating control device, wherein, described first control module specifically for:
An analog platform corresponding with described second hardware structure is started at described first electronic equipment, and at base
After described analog platform runs described first operating system, utilize first run based on described analog platform
Operating system performs described executable program;Or
Send described executable program to having the second hardware structure, and described first operating system is installed
In second electronic equipment, and run, receiving described second electronic equipment, the fortune that described executable program produces
After row data, show the operation of described executable program at described first electronic equipment according to described service data
Result;Or
Stop described executable program to start, and export described executable program pair at described first electronic equipment
The hardware structure answered.
Above-mentioned operating control device, wherein, described first analyzes module specifically for described executable program
File header in machine Machine field determine whether described executable program can run on described
One hardware structure.
Above-mentioned operating control device, wherein, described first analyzes module specifically includes:
Acquiring unit, for obtaining the code segment in described executable program;
Resolution unit, for resolving the machine code of the byte that described code segment includes;
First judging unit, for judging whether described machine code is effective under described first hardware structure
Instruction, obtains described first analysis result;
Wherein, when under described first hardware structure, described machine code is for effectively instructing, described first analyzes
Result is yes, is otherwise no.
To achieve these goals, embodiments provide a kind of operating control device, be applied to a tool
Have in the first electronic equipment of the first hardware structure, described first electronic equipment be provided with the first operating system,
Described operating control device specifically includes:
Determine module, for determining executable program to be run;
Second analyzes module, is used for analyzing described executable program, determines whether described executable program is should
Run on the executable program of the second operating system, obtain the second analysis result;Described second operating system with
Described first operating system has identical operating system version, and described second operating system can run on
Second hardware structure;
Second control module, for described second analysis result for being when, control described in can perform journey
The operation of sequence, it is to avoid report an error.
Above-mentioned operating control device, wherein, described first operating system and the second operating system are
Windows operating system, described first hardware structure is X86-based, and described second hardware structure is first
Enter reduced instruction set machine ARM framework.
Above-mentioned operating control device, wherein, described second control module specifically for:
An analog platform corresponding with described second hardware structure is started at described first electronic equipment, and at base
After described analog platform runs described first operating system, utilize first run based on described analog platform
Operating system performs described executable program;Or
Send described executable program to having the second hardware structure, and described first operating system is installed
In second electronic equipment, and run, receiving described second electronic equipment, the fortune that described executable program produces
After row data, show the operation of described executable program at described first electronic equipment according to described service data
Result;Or
Stop described executable program to start, and export described executable program pair at described first electronic equipment
The hardware structure answered.
Above-mentioned operating control device, wherein, described second analyzes module specifically for performing according to described
Machine Machine field in the file header of program determines whether described executable program is to run on
The executable program of two operating systems.
Above-mentioned operating control device, wherein, described second analyzes module specifically includes:
Acquiring unit, for obtaining the code segment in described executable program;
Resolution unit, for resolving the machine code of the byte that described code segment includes;
Second judging unit, for judging whether described machine code is effective under described second hardware structure
Instruction, obtains described second analysis result;
Wherein, when under described second hardware structure, described machine code is for effectively instructing, described second analyzes
Result is yes, is otherwise no.
The embodiment of the present invention has the advantages that
In the specific embodiment of the invention, when there is an executable program, this can perform to first pass through analysis
Program, it is judged that whether it can run on described first hardware structure (such as X86-based, or ARM
Framework), when its can not described first hardware structure run time, can voluntarily one control process so that it is with
When family instruction runs, will not report an error, improve Consumer's Experience.
Accompanying drawing explanation
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.
Detailed description of the invention
In the progress control method of the embodiment of the present invention and operating control device, first analyze to be run holding
Line program determines its hardware structure/operating system adapted to, and then treats operation according to analysis result
Executable program carries out respective handling, it is to avoid report an error.
A kind of progress control method of one of them embodiment of the present invention is applied to one and has the first hardware structure
The first electronic equipment in, described first electronic equipment is provided with the first operating system, described first operation
System at least can run on described first hardware structure and the second hardware structure, as it is shown in figure 1, described fortune
Row control method specifically includes:
Step 11, determines executable program to be run;
Step 12, analyzes described executable program, determines whether described executable program can run on institute
State the first hardware structure, obtain one first analysis result;
Step 13, described first analysis result is no when, controls the operation of described executable program,
Avoid reporting an error.
In the specific embodiment of the invention, when there is an executable program, this can perform to first pass through analysis
Program, it is judged that whether it can run on described first hardware structure (such as X86-based, or ARM
Framework), when its can not described first hardware structure run time, can voluntarily one control process so that it is with
When family instruction runs, also will not make mistakes.
In a particular embodiment of the present invention, above-mentioned operating system can be existing can run on multiple
The operating system (such as Win8 operating system) of hardware structure, it is also possible to be can only to run on now one in the future
Individual hardware structure, but possess the operating system expanding to run under multiple hardware structures.
And the hardware structure in the specific embodiment of the present invention can be to apply X86 frame widely at present
Structure, ARM framework, it is also possible to be the following hardware structure occurred.
In a word, the embodiment of the present invention is applicable to the operating system can run under at least two hardware structure.
In one embodiment of the invention, the first operating system is Windows operating system, described
One hardware structure is X86-based, and described second hardware structure is advanced reduced instruction set machine ARM framework
As a example by be described in detail.
In one embodiment of the invention, the operation of described executable program is controlled, it is to avoid reporting an error to be
Realize in several ways, be respectively described below.
<mode one>
In mode one, realize in the way of analog platform.
Under this mode, the operation of the described executable program of described control particularly as follows:
When described executable program can run on described second hardware structure, at described first electronic equipment
Start an analog platform corresponding with described second hardware structure;
Described first operating system is run based on described analog platform;
The first operating system run based on described analog platform is utilized to perform described executable program.
Describe in detail as follows below as a example by this analog platform of virtual machine.
Virtual machine refer to by software simulate have complete hardware system function, to operate in one completely isolated
Complete computer in environment.
By software virtual machine, can be simulated another based on the second hardware structure based on the first hardware structure
Electronic equipment, these virtual machines are operated completely just as real computer, can install operation
System, set up applications, access Internet resources etc..
Currently a popular software virtual machine has VMware (VMWare ACE), Virtual Box and Virtual
PC etc., can fictionalize multiple computer in Windows system.
Therefore, in mode one, when judging that executable program cannot run on described first hardware structure,
Then determine whether whether this executable program can run on the second hardware structure, when executable program can
When running on the second hardware structure, utilizing a hardware-initiated virtual machine of the first hardware structure, this virtual machine is
Second hardware structure, the virtual machine being then based on this second hardware structure carrys out another of load operating operating system
Individual branch, then utilizes the operating system branch of this operation to perform described executable program.
For the application program run in virtual machine, it is exactly a real computer, therefore should
Application program can obtain correct operation, without reporting an error.
<mode two>
Scheme employed in mode one be a kind of in this locality by the way of virtual machine solves the problem of reporting an error,
In mode two, can be processed by external equipment.
Under this mode, the operation of the described executable program of described control particularly as follows:
When described executable program can run on described second hardware structure, send described executable program
To having the second hardware structure, and it is provided with in the second electronic equipment of described first operating system;
Receive described second electronic equipment and run the service data that described executable program produces;
Show the operation result of described executable program at described first electronic equipment according to described service data.
Describe in detail as follows.
In mode two, when judging that executable program cannot run on described first hardware structure, then enter
One step judges whether this executable program can run on the second hardware structure, when executable program can run
When the second hardware structure, then find another electronic equipment, this electronic equipment have the second hardware structure and
First operating system is installed, and described executable program is sent to the second electronic equipment searched out
In, the second electronic equipment perform this executable program.
Meanwhile, this second electronic equipment is after receiving this executable program, i.e. available hard based on second
The first operating system that part framework runs performs this executable program.
During second electronic equipment performs, at any time data are returned the first electronic equipment, and the first electronics sets
After the standby service data receiving described second electronic equipment operation described executable program generation, can be based on this
Data show, make user can see the ruuning situation of application program on the first electronic equipment.From with
From the point of view of the angle of family, this application program has obtained correct operation, without reporting an error.
<mode three>
This executable program finally it has been carried out under above two mode, but by prompting user in mode three
Mode avoid reporting an error.
Under this mode, the operation of the described executable program of described control particularly as follows:
Described executable program is stoped to start;
The hardware structure that described executable program is corresponding is exported at described first electronic equipment.
Under this mode, it is only to stop continuing executing with of executable program, and can hold described in informing the user
The hardware structure that line program is corresponding, and this output can be the output of audio frequency, it is also possible to it is the output shown,
It is not especially limited at this.
A kind of progress control method of another embodiment of the present invention, is applied to one and has the first hardware structure
In first electronic equipment, described first electronic equipment is provided with the first operating system, as in figure 2 it is shown, institute
State progress control method to specifically include:
Step 21, determines executable program to be run;
Step 22, analyzes described executable program, determines whether described executable program is to run on
The executable program of two operating systems, obtains the second analysis result;Described second operating system and described first
Operating system has identical operating system version, and described second operating system can run on the second hardware
Framework;
Step 23, described second analysis result for being when, control the operation of described executable program,
Avoid reporting an error.
Here, first identical operating system version is illustrated below:
As the Win8 system for the Win8 system of x86 framework with for ARM framework has identical
Operating system version.
From another perspective, the operating system that so-called version is identical be exactly same operating system for
The different branches of different hardware framework.
Hardware structure, operating system and hardware structure before and the behaviour related in the above-described embodiment
Making system identical, no further details to be given herein.
And the operation controlling described executable program is in place of the difference of the embodiment described before, its
Being not required to analyze the hardware structure that executable program can run further, other process are identical,
This is not described in further detail.
In two embodiments before making the present invention, one of which needs to judge that executable program whether can
Run on described first hardware structure, and another embodiment needs to determine whether to run on the second behaviour
Make the executable program of system, it is found that the difference of the two only object, it is possible to use identical
Mode judge, and concrete judgement can be accomplished in several ways, and is described as follows.
<mode one>
In mode one, judged have under this mode by the field of the file header of executable program
Body determines described executable program according to the machine Machine field in the file header of described executable program
Whether can run on described first hardware structure.
It is described as follows as a example by Windows operating system.
Under Windows operating system, executable program (.exe file) meets the file map structure of PE,
Which includes PE file header part.
And wherein PE file header structure is defined as C language form, as follows:
typedef struct_IMAGE_FILE_HEADER
{
WORD Machine;CPU required for the operation of // this document
WORD NumberOfSections;The joint number mesh 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 labelling, distinguishing file is exe or dll
IMAGE_FILE_HEADER, * PIMAGE_FILE_HEADER;
The assignment implication of Machine field therein is as shown in the table, wherein first is classified as mark, secondary series
For value, the 3rd is classified as implication:
Mark | Value | Implication |
IMAGE_FILE_MACHINE-AM33 | 1d3 | Panasonic AM33 |
IMAGE_FILE_MACHINE_AMD64 | 8664 | X64 |
IMAGE_FILE_MACHINE_ARM | 1c0 | ARM small end |
IMAGE_FILE_MACHINE_I386 | 14c | Intel 386 family and compatible CPU thereof |
…… | …… | …… |
The hardware structure that executable program is corresponding is i.e. can determine that from upper table, if value is 1c0, then corresponding hardware frame
Structure is ARM, and value is 14c, then corresponding hardware structure is X86.
<mode two>
In mode two, judge by resolving code segment, under this mode, can perform described in described analysis
Program, determines whether described executable program can run on described first hardware structure, obtains one first point
The step of analysis result specifically includes:
Obtain the code segment in described executable program;
Resolve the machine code of the byte that described code segment includes;
Judge that whether described machine code is effective instruction under described first/second hardware structure, obtains institute
State the first/bis-analysis result;
Wherein, when under described the first/bis-hardware structure, described machine code is for effectively instructing, described first/
Two analysis results are yes, are otherwise no.
Each executable program includes substantial amounts of code segment, and these code segments can be translated into upon execution
Machine code, is finally performed these machine codes by hardware and realizes the operation of executable program, therefore, if generation
Byte in code section is not effective instruction after resolving, then it represents that executable program is not under this hardware structure
Executable program.
When some executable program does not include above-mentioned Machine field or has the field of similar functions,
Then can realize the judgement of corresponding hardware structure in this way.
Certainly, in a particular embodiment of the present invention, need to stop before judged result is out and can perform journey
Sequence operates according to existing method, and it can realize by the way of edit the registry item, as follows:
Hkey_classes_root exefile shell open command, point to an executable program, this
Executable program completes hardware structure detection, and determines to take which kind of processing mode according to testing result.
The embodiment of the present invention additionally provides a kind of operating control device, is applied to one and has the first hardware structure
In first electronic equipment, described first electronic equipment is provided with the first operating system, described first operation system
System at least can run on described first hardware structure and the second hardware structure, as it is shown on figure 3, described operation
Control device to specifically include:
Determine module, for determining executable program to be run;
First analyzes module, is used for analyzing described executable program, determines that described executable program whether can
Run on described first hardware structure, obtain one first analysis result;
First control module, for described first analysis result is no when, can perform journey described in control
The operation of sequence, it is to avoid report an error.
Described first control module can be avoided reporting an error in several ways, as follows:
<analog platform mode>
When described executable program can run on described second hardware structure, at described first electronic equipment
Start an analog platform corresponding with described second hardware structure, and described running based on described analog platform
After first operating system, utilize based on described analog platform run first operating system perform described in can perform
Program;Or
<by the mode of other electronic equipments>
When described executable program can run on described second hardware structure, send described executable program
To having the second hardware structure, and it is provided with in the second electronic equipment of described first operating system, and is connecing
After receiving the service data that described second electronic equipment runs the generation of described executable program, according to described operation
Data show the operation result of described executable program at described first electronic equipment;Or
<prompting user mode>
Stop described executable program to start, and export described executable program pair at described first electronic equipment
The hardware structure answered.
And judge whether executable program can run on a certain hardware structure and can pass through executable program
Machine Machine field in file header determines whether described executable program can run on described first
Hardware structure.
Can also be by following code analysis mode, described first analyzes module specifically includes:
Acquiring unit, for obtaining the code segment in described executable program;
Resolution unit, for resolving the machine code of the byte that described code segment includes;
First judging unit, for judging whether described machine code is effective under described first hardware structure
Instruction, obtains described first analysis result;
Wherein, when under described first hardware structure, described machine code is for effectively instructing, described first analyzes
Result is yes, is otherwise no.
The another kind of operating control device of the embodiment of the present invention, is applied to one and has the first of the first hardware structure
In electronic equipment, described first electronic equipment is provided with the first operating system, the most described operation
Control device to specifically include:
Determine module, for determining executable program to be run;
Second analyzes module, is used for analyzing described executable program, determines whether described executable program is should
Run on the executable program of the second operating system, obtain the second analysis result;Described second operating system with
Described first operating system has identical operating system version, and described second operating system can run on
Second hardware structure;
Second control module, for described second analysis result for being when, control described in can perform journey
The operation of sequence, it is to avoid report an error.
Described second control module can be avoided reporting an error in several ways, as follows:
<analog platform mode>
An analog platform corresponding with described second hardware structure is started at described first electronic equipment, and at base
After described analog platform runs described first operating system, utilize first run based on described analog platform
Operating system performs described executable program;Or
<by the mode of other electronic equipments>
Send described executable program to having the second hardware structure, and described first operating system is installed
In second electronic equipment, and run, receiving described second electronic equipment, the fortune that described executable program produces
After row data, show the operation of described executable program at described first electronic equipment according to described service data
Result;Or
<prompting user mode>
Stop described executable program to start, and export described executable program pair at described first electronic equipment
The hardware structure answered.
Described second analyzes module specifically for the machine in the file header according to described executable program
Machine field determines whether described executable program is the performed journey that should run on the second operating system
Sequence.
Can also be judged the hardware structure of correspondence by following code analysis mode, described second analyzes mould
Block specifically includes:
Acquiring unit, for obtaining the code segment in described executable program;
Resolution unit, for resolving the machine code of the byte that described code segment includes;
Second judging unit, for judging whether described machine code is effective under described second hardware structure
Instruction, obtains described second analysis result;
Wherein, when under described second hardware structure, described machine code is for effectively instructing, described second analyzes
Result is yes, is otherwise no.
In the embodiment of the present invention, module can realize with software, in order to is performed by various types of processors.
For example, the executable code module of a mark can include one or more physics of computer instruction
Or logical block, for example, it can be built as object, process or function.While it is true, marked
The executable code knowing module need not be physically located together, but can include being stored on not in coordination
Different instructions, when combining in these command logics, it constitutes module and realizes this module
Regulation purpose.
It practice, executable code module can be individual instructions or many bar instructions, and even may be used
To be distributed on multiple different code segment, it is distributed in the middle of distinct program, and crosses over multiple memorizer and set
Back-up cloth.Similarly, operation data can be identified in module, and can be according to any suitable shape
Formula realizes and is organized in the data structure of any suitable type.Described operation data can be as single
Data set is collected, or can be distributed on diverse location and (be included in different storage device), and
Electronic signal can be only used as at least in part be present on system or network.
When module can utilize software to realize, it is contemplated that the level of existing hardware technique, it is possible to soft
The module that part realizes, in the case of not considering cost, those skilled in the art can build the hard of correspondence
Part circuit realizes the function of correspondence, and described hardware circuit includes ultra-large integrated (VLSI) of routine
Circuit or gate array and the existing quasiconductor of such as logic chip, transistor etc or other is discrete
Element.Module can also use programmable hardware device, such as field programmable gate array, programmable array
Logic, programmable logic device etc. realize.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all at this
Within bright spirit and principle, any modification, equivalent substitution and improvement etc. made, should be included in this
Within bright protection domain.
Claims (20)
1. a progress control method, is applied to one and has in the first electronic equipment of the first hardware structure,
Being provided with the first operating system in described first electronic equipment, described first operating system at least can run on
Described first hardware structure and the second hardware structure, it is characterised in that described progress control method specifically includes:
Determine executable program to be run;
Analyze described executable program, determine whether described executable program can run on described first hardware
Framework, obtains one first analysis result;
Described first analysis result is no when, control the operation of described executable program, it is to avoid report an error;
The described executable program of described analysis, determines whether described executable program can run on described first
Hardware structure, the step obtaining one first analysis result specifically includes:
Obtain the code segment in described executable program;
Resolve the machine code of the byte that described code segment includes;
Judge that whether described machine code is effective instruction under described first hardware structure, obtains described first
Analysis result;
Wherein, when under described first hardware structure, described machine code is for effectively instructing, described first analyzes
Result is yes, is otherwise no.
Progress control method the most according to claim 1, it is characterised in that described first operation system
System is Windows operating system, and described first hardware structure is X86-based, described second hardware structure
For advanced reduced instruction set machine ARM framework.
Progress control method the most according to claim 1 and 2, it is characterised in that described control institute
State the operation of executable program particularly as follows:
When described executable program can run on described second hardware structure, at described first electronic equipment
Start an analog platform corresponding with described second hardware structure;
Described first operating system is run based on described analog platform;
Described first operating system run based on described analog platform is utilized to perform described executable program.
Progress control method the most according to claim 1 and 2, it is characterised in that described control institute
State the operation of executable program particularly as follows:
When described executable program can run on described second hardware structure, send described executable program
To having the second hardware structure, and it is provided with in the second electronic equipment of described first operating system;
Receive described second electronic equipment and run the service data that described executable program produces;
Show the operation result of described executable program at described first electronic equipment according to described service data.
Progress control method the most according to claim 1 and 2, it is characterised in that described control institute
State the operation of executable program particularly as follows:
Described executable program is stoped to start;
The hardware structure that described executable program is corresponding is exported at described first electronic equipment.
Progress control method the most according to claim 2, it is characterised in that can described in described analysis
Execution program, determines whether described executable program can run on described first hardware structure, obtains one the
In the step of one analysis result, with specific reference to the machine Machine in the file header of described executable program
Field determines whether described executable program can run on described first hardware structure.
7. a progress control method, is applied to one and has in the first electronic equipment of the first hardware structure,
Described first electronic equipment is provided with the first operating system, it is characterised in that described progress control method has
Body includes:
Determine executable program to be run;
Analyze described executable program, determine whether described executable program is to run on the second operating system
Executable program, obtain the second analysis result;Described second operating system and described first operating system tool
There is identical operating system version, and described second operating system can run on the second hardware structure;
Described second analysis result for being when, control the operation of described executable program, it is to avoid report an error;
The described executable program of described analysis, determines whether described executable program is to run on the second operation
The executable program of system, the step obtaining the second analysis result specifically includes:
Obtain the code segment in described executable program;
Resolve the machine code of the byte that described code segment includes;
Judge that whether described machine code is effective instruction under described second hardware structure, obtains described second
Analysis result;
Wherein, when under described second hardware structure, described machine code is for effectively instructing, described second analyzes
Result is yes, is otherwise no.
Progress control method the most according to claim 7, it is characterised in that described first operation system
System and the second operating system are Windows operating system, and described first hardware structure is X86-based, institute
State the second hardware structure for advanced reduced instruction set machine ARM framework.
9. according to the progress control method described in claim 7 or 8, it is characterised in that described control institute
State the operation of executable program particularly as follows:
An analog platform corresponding with described second hardware structure is started at described first electronic equipment;
Described second operating system is run based on described analog platform;
The second operating system run based on described analog platform is utilized to perform described executable program.
10. according to the progress control method described in claim 7 or 8, it is characterised in that described control institute
State the operation of executable program particularly as follows:
Send described executable program to having the second hardware structure, and described second operating system is installed
In second electronic equipment;
Receive described second electronic equipment and run the service data that described executable program produces;
Show the operation result of described executable program at described first electronic equipment according to described service data.
11. according to the progress control method described in claim 7 or 8, it is characterised in that described control institute
State the operation of executable program particularly as follows:
Described executable program is stoped to start;
The hardware structure that described executable program is corresponding is exported at described first electronic equipment.
12. progress control methods according to claim 8, it is characterised in that can described in described analysis
Execution program, determines 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, with specific reference to the machine in the file header of described executable program
Machine field determines whether described executable program is the performed journey that should run on the second operating system
Sequence.
13. 1 kinds of operating control devices, are applied to one and have in the first electronic equipment of the first hardware structure,
Being provided with the first operating system in described first electronic equipment, described first operating system at least can run on
Described first hardware structure and the second hardware structure, described operating control device specifically includes:
Determine module, for determining executable program to be run;
First analyzes module, is used for analyzing described executable program, determines that described executable program whether can
Run on described first hardware structure, obtain one first analysis result;
First control module, for described first analysis result is no when, can perform journey described in control
The operation of sequence, it is to avoid report an error;
Described first analyzes module specifically includes:
Acquiring unit, for obtaining the code segment in described executable program;
Resolution unit, for resolving the machine code of the byte that described code segment includes;
First judging unit, for judging whether described machine code is effective under described first hardware structure
Instruction, obtains described first analysis result;
Wherein, when under described first hardware structure, described machine code is for effectively instructing, described first analyzes
Result is yes, is otherwise no.
14. operating control devices according to claim 13, it is characterised in that described first operation
System is Windows operating system, and described first hardware structure is X86-based, described second hardware frame
Structure is advanced reduced instruction set machine ARM framework.
15. according to the operating control device described in claim 13 or 14, it is characterised in that described first
Control module specifically for:
When described executable program can run on described second hardware structure, at described first electronic equipment
Start an analog platform corresponding with described second hardware structure, and described running based on described analog platform
After first operating system, utilize based on described analog platform run first operating system perform described in can perform
Program;Or
When described executable program can run on described second hardware structure, send described executable program
To having the second hardware structure, and it is provided with in the second electronic equipment of described first operating system, and is connecing
After receiving the service data that described second electronic equipment runs the generation of described executable program, according to described operation
Data show the operation result of described executable program at described first electronic equipment;Or
Stop described executable program to start, and export described executable program pair at described first electronic equipment
The hardware structure answered.
16. according to the operating control device described in claim 13 or 14, it is characterised in that described first
Analyze module and determine specifically for the machine Machine field in the file header of described executable program described
Whether executable program can run on described first hardware structure.
17. 1 kinds of operating control devices, are applied to one and have in the first electronic equipment of the first hardware structure,
Being provided with the first operating system in described first electronic equipment, described operating control device specifically includes:
Determine module, for determining executable program to be run;
Second analyzes module, is used for analyzing described executable program, determines whether described executable program is should
Run on the executable program of the second operating system, obtain the second analysis result;Described second operating system with
Described first operating system has identical operating system version, and described second operating system can run on
Second hardware structure;
Second control module, for described second analysis result for being when, control described in can perform journey
The operation of sequence, it is to avoid report an error;
Described second analyzes module specifically includes:
Acquiring unit, for obtaining the code segment in described executable program;
Resolution unit, for resolving the machine code of the byte that described code segment includes;
Second judging unit, for judging whether described machine code is effective under described second hardware structure
Instruction, obtains described second analysis result;
Wherein, when under described second hardware structure, described machine code is for effectively instructing, described second analyzes
Result is yes, is otherwise no.
18. operating control devices according to claim 17, it is characterised in that described first operation
System and the second operating system are Windows operating system, and described first hardware structure is X86-based,
Described second hardware structure is advanced reduced instruction set machine ARM framework.
19. according to the operating control device described in claim 17 or 18, it is characterised in that described second
Control module specifically for:
An analog platform corresponding with described second hardware structure is started at described first electronic equipment, and at base
After described analog platform runs described first operating system, utilize first run based on described analog platform
Operating system performs described executable program;Or
Send described executable program to having the second hardware structure, and described first operating system is installed
In second electronic equipment, and run, receiving described second electronic equipment, the fortune that described executable program produces
After row data, show the operation of described executable program at described first electronic equipment according to described service data
Result;Or
Stop described executable program to start, and export described executable program pair at described first electronic equipment
The hardware structure answered.
20. operating control devices according to claim 18, it is characterised in that described second analyzes
Module determines described specifically for the machine Machine field in the file header according to described executable program
Whether executable program is the executable program that should run on the second operating system.
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 CN103136060A (en) | 2013-06-05 |
CN103136060B true 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) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103136004B (en) * | 2011-11-25 | 2018-07-06 | 联想(北京)有限公司 | A kind of application program hardware structure display methods and device |
CN103885814B (en) * | 2014-03-20 | 2017-05-17 | 百度在线网络技术(北京)有限公司 | Simulator device and method for operating ARM APKs on x86 framework |
CN115145696B (en) * | 2022-08-30 | 2022-11-29 | 统信软件技术有限公司 | Method, system and computing device for determining running difference of process virtual machine |
Citations (5)
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 |
-
2011
- 2011-11-23 CN CN201110376727.6A patent/CN103136060B/en active Active
Patent Citations (5)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN103136060A (en) | 2013-06-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9665469B2 (en) | System and method of runtime downloading of debug code and diagnostics tools in an already deployed baseboard management controller (BMC) devices | |
US11010505B2 (en) | Simulation of virtual processors | |
US9921949B2 (en) | Software testing | |
US10108763B2 (en) | Method and simulation arrangement for simulating an automated industrial plant | |
CN105204913A (en) | Method and system for running Linux application on Android operating system and system | |
US11250193B1 (en) | Productivity platform using system-on-chip with programmable circuitry | |
CN103136060B (en) | Progress control method and operating control device | |
CN106020905A (en) | Microcontroller firmware developing and updating method and system | |
CN103810222A (en) | Sample file processing method and device | |
CN110516447A (en) | A kind of method and apparatus of identification terminal simulator | |
CN113076143A (en) | Artificial intelligence environment adaptation method and compatibility testing method for domestic platform | |
CN113868174B (en) | Verification platform building method and device and storage medium | |
CN102054088B (en) | Virtual platform for prototyping system-on-chip designs | |
CN108874656A (en) | Code test method, device, readable storage medium storing program for executing and computer equipment | |
CN112699041B (en) | Automatic deployment method, system and equipment for embedded software | |
CN108459906A (en) | A kind of dispatching method and device of VCPU threads | |
CN105224453A (en) | The automatic test approach of system compatibility and device | |
Nativ et al. | Cost evaluation of coverage directed test generation for the IBM mainframe | |
US10474610B1 (en) | Hardware trace and introspection for productivity platform using a system-on-chip | |
CN115374017A (en) | Method for capturing site during simulation running of executable file and computing equipment | |
Karmore et al. | Universal methodology for embedded system testing | |
JP2019179284A (en) | Simulation system and simulation program | |
JP2828590B2 (en) | Microprogram verification method | |
CN107273105B (en) | Firmware starting method and device | |
EP2487588A1 (en) | Method and apparatus for on load virtualization of a software application |
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 |