CN106155757A - A kind of method compiling and running program execution based on computer - Google Patents
A kind of method compiling and running program execution based on computer Download PDFInfo
- Publication number
- CN106155757A CN106155757A CN201610624971.2A CN201610624971A CN106155757A CN 106155757 A CN106155757 A CN 106155757A CN 201610624971 A CN201610624971 A CN 201610624971A CN 106155757 A CN106155757 A CN 106155757A
- Authority
- CN
- China
- Prior art keywords
- program
- environment
- computer
- execution
- little code
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/44—Encoding
- G06F8/443—Optimisation
- G06F8/4432—Reducing the energy consumption
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
Abstract
The invention discloses a kind of method compiling and running program execution based on computer.Comprise the steps: when program compiles, determine that the optimum efficiency of the little code of described program performs environment;With at program runtime, it is at least partially based on and described determines, perform environment according to the optimum efficiency of little code and place and dispatch little code.The present invention is by compiling and runs computer program, it is incorporated to perform controller, this execution controller is configured in the second electronic execution environment being different from described first electronic execution environment perform as debugger, when program compiles, determine that the optimum efficiency of the little code of described program performs environment, at program runtime, be at least partially based on and described determine, optimum efficiency according to little code performs environment and places and dispatch little code, improves the efficiency that this program performs.
Description
Technical field
The invention belongs to field of computer technology, particularly relate to a kind of compile based on computer and run program perform
Method.
Background technology
Modern high end computer configuation comprises thousands of the most millions for the treatment of elements, a large amount of distributed memory,
And non local memorizer, networking component and the storage infrastructure of various rank.These systems are that execution is application consumed
Static state and the dynamic optimization of resource provide huge challenge.Traditionally, computer configuation makes great efforts to provide the most single, simply
The application in space, location, and offer itself is the most semantic to carry out code execution subsequently and data access.The normal form produced
For many years use good, but when by parallel processing rather than being distributed calculating and data and reality by faster clock rate
On realize all hardware accelerate time, described normal form hinders optimized allocation of resources.
Summary of the invention
It is an object of the invention to provide a kind of method compiling and running program execution based on computer, pass through, solve
Existing problem.
For solving above-mentioned technical problem, the present invention is achieved by the following technical solutions:
The present invention is a kind of method compiling and running program execution based on computer, comprises the steps:
P1, when program compiles, determines that the optimum efficiency of the little code of described program performs environment;With
P2, at program runtime, is at least partially based on and described determines, performs environment according to the optimum efficiency of little code and puts
Put and dispatch little code.
Preferably, described computer program is configured in the first electronic execution environment perform.
Preferably, being incorporated to perform controller in described appliance computer program, this execution controller is configured in difference
Perform as debugger in the second electronic execution environment of described first electronic execution environment.
The method have the advantages that
The present invention is by compiling and runs computer program, is incorporated to perform controller, and this execution controller is configured to
It is different from the second electronic execution environment of described first electronic execution environment and performs as debugger, when program compiles, really
The optimum efficiency of the little code of fixed described program performs environment, at program runtime, is at least partially based on and described determines, according to little
The optimum efficiency of code performs environment and places and dispatch little code, improves the efficiency that this program performs.
Certainly, the arbitrary product implementing the present invention it is not absolutely required to reach all the above advantage simultaneously.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, embodiment will be described required use below
Accompanying drawing is briefly described, it should be apparent that, the accompanying drawing in describing below is only some embodiments of the present invention, for ability
From the point of view of the those of ordinary skill of territory, on the premise of not paying creative work, it is also possible to obtain the attached of other according to these accompanying drawings
Figure.
Fig. 1 is a kind of flow chart compiling and running the method that program performs based on computer of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on
Embodiment in the present invention, those of ordinary skill in the art obtained under not making creative work premise all other
Embodiment, broadly falls into the scope of protection of the invention.
Referring to shown in Fig. 1, the present invention is a kind of method compiling and running program execution based on computer, including as follows
Step:
P1, when program compiles, determines that the optimum efficiency of the little code of described program performs environment;With
P2, at program runtime, is at least partially based on and described determines, performs environment according to the optimum efficiency of little code and puts
Put and dispatch little code.
Wherein, computer program is configured in the first electronic execution environment perform.
Wherein, appliance computer program is incorporated to perform controller, this execution controller be configured to be different from described
Second electronic execution environment of the first electronic execution environment performs as debugger.
It should be noted that in said system embodiment, included unit simply carries out drawing according to function logic
Point, but it is not limited to above-mentioned division, as long as being capable of corresponding function;It addition, each functional unit is concrete
Title also only to facilitate mutually distinguish, is not limited to protection scope of the present invention.
It addition, one of ordinary skill in the art will appreciate that all or part of step realizing in the various embodiments described above method
The program that can be by completes to instruct relevant hardware, and corresponding program can be stored in an embodied on computer readable storage and be situated between
In matter, described storage medium, such as ROM/RAM, disk or CD etc..
Present invention disclosed above preferred embodiment is only intended to help to illustrate the present invention.Preferred embodiment is the most detailed
Describe all of details, be also not intended to the detailed description of the invention that this invention is only described.Obviously, according to the content of this specification,
Can make many modifications and variations.These embodiments are chosen and specifically described to this specification, is to preferably explain the present invention
Principle and actual application so that skilled artisan can be best understood by and utilize the present invention.The present invention is only
Limited by claims and four corner thereof and equivalent.
Claims (3)
1. one kind compiles and runs the method that program performs based on computer, it is characterised in that comprise the steps:
P1, when program compiles, determines that the optimum efficiency of the little code of described program performs environment;With
P2, at program runtime, is at least partially based on and described determines, performs environment according to the optimum efficiency of little code and places also
Dispatch little code.
A kind of method compiling and running program execution based on computer the most according to claim 1, it is characterised in that institute
State computer program to be configured in the first electronic execution environment perform.
A kind of method compiling and running program execution based on computer the most according to claim 2, it is characterised in that institute
Stating and be incorporated in appliance computer program perform controller, this execution controller is configured to be different from described first electronics execution
Second electronic execution environment of environment performs as debugger.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610624971.2A CN106155757A (en) | 2016-08-02 | 2016-08-02 | A kind of method compiling and running program execution based on computer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610624971.2A CN106155757A (en) | 2016-08-02 | 2016-08-02 | A kind of method compiling and running program execution based on computer |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106155757A true CN106155757A (en) | 2016-11-23 |
Family
ID=57328683
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610624971.2A Pending CN106155757A (en) | 2016-08-02 | 2016-08-02 | A kind of method compiling and running program execution based on computer |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106155757A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100440140C (en) * | 2003-02-11 | 2008-12-03 | Vi实验室有限公司 | System and method for regulating execution of computer software |
CN102934081A (en) * | 2010-04-13 | 2013-02-13 | Et国际有限公司 | Runspace method, system and apparatus |
US20140173624A1 (en) * | 2012-12-17 | 2014-06-19 | Empire Technology Development Llc | Load balancing scheme |
-
2016
- 2016-08-02 CN CN201610624971.2A patent/CN106155757A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100440140C (en) * | 2003-02-11 | 2008-12-03 | Vi实验室有限公司 | System and method for regulating execution of computer software |
CN102934081A (en) * | 2010-04-13 | 2013-02-13 | Et国际有限公司 | Runspace method, system and apparatus |
US20140173624A1 (en) * | 2012-12-17 | 2014-06-19 | Empire Technology Development Llc | Load balancing scheme |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10776087B2 (en) | Sequence optimizations in a high-performance computing environment | |
US9720740B2 (en) | Resource management in MapReduce architecture and architectural system | |
US9128747B2 (en) | Methods and systems for optimizing the performance of software applications at runtime | |
CN103729235A (en) | Java virtual machine (JVM) and compiling method thereof | |
CN105868093B (en) | A kind of log wiring method and server-side | |
CN103455376A (en) | Managing use of a field programmable gate array by multiple processes in an operating system | |
CN102279766A (en) | Method and system for concurrently simulating processors and scheduler | |
KR20130122619A (en) | Runtime agnostic representation of user code for execution with selected execution runtime | |
CN102929656A (en) | Method for using ActiveX plug-in in browser, and client | |
CN103699437A (en) | Resource scheduling method and device | |
CN103763346A (en) | Distributed resource scheduling method and device | |
CN105630491A (en) | Method and device for changing functions of program | |
CN104346211A (en) | Method and system for realizing virtual machine migration under cloud computing | |
CN104205780A (en) | Data storage method and device | |
CN103488536A (en) | Task scheduling method and device and operating system | |
CN105808346A (en) | Task scheduling method and device | |
US9189405B2 (en) | Placement of data in shards on a storage device | |
CN103927244A (en) | Plug-in scheduling process monitoring method implemented based on dynamic proxy | |
CN106155757A (en) | A kind of method compiling and running program execution based on computer | |
US10445077B2 (en) | Techniques to remove idle cycles for clock-sensitive threads in hardware simulators | |
CN104572275A (en) | Process loading method, process loading device and process loading system | |
CN105653364A (en) | Application process management method and application process management device | |
CN104506630A (en) | Method, server and system for generating authority data on basis of user roles | |
CN109901831A (en) | The multi-platform compatibility operation method and compatibility operation device of software | |
CN104572194A (en) | Module loading method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161123 |