CN107656739A - code compiling method and device based on windows systems - Google Patents

code compiling method and device based on windows systems Download PDF

Info

Publication number
CN107656739A
CN107656739A CN201711084626.5A CN201711084626A CN107656739A CN 107656739 A CN107656739 A CN 107656739A CN 201711084626 A CN201711084626 A CN 201711084626A CN 107656739 A CN107656739 A CN 107656739A
Authority
CN
China
Prior art keywords
compiling
translation
snapshot
main frame
cloud main
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
CN201711084626.5A
Other languages
Chinese (zh)
Other versions
CN107656739B (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.)
Beijing Qianxin Technology Co Ltd
Original Assignee
Beijing Qianxin Technology Co 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 Beijing Qianxin Technology Co Ltd filed Critical Beijing Qianxin Technology Co Ltd
Priority to CN201711084626.5A priority Critical patent/CN107656739B/en
Publication of CN107656739A publication Critical patent/CN107656739A/en
Application granted granted Critical
Publication of CN107656739B publication Critical patent/CN107656739B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation

Abstract

The embodiment of the present invention provides a kind of code compiling method and device based on windows systems, the translation and compiling environment inputted by receiving user identifies, the corresponding snapshot identification of translation and compiling environment mark of input is determined with the corresponding relation of snapshot identification according to translation and compiling environment mark, and obtain the use state of cloud main frame, compiling instruction is sent to snapshot corresponding to having the snapshot identification and the cloud main frame in idle condition according to the use state and the snapshot identification, so that the cloud main frame obtains source code, translation and compiling environment corresponding to starting the snapshot acquisition is compiled to the source code, and the storage information of compiling file is beamed back into central control system after compiling successfully and stored, realize the same more set translation and compiling environments of cloud main frame configuration, can concurrently it compile, lifting compiling efficiency and cloud main frame service efficiency.

Description

Code compiling method and device based on windows systems
Technical field
The present invention relates to technical field of software development, more particularly to a kind of code compiling method based on windows systems And device.
Background technology
In software development, it is necessary to release application program or driving when, be required for compiling source code into the file specified, Different language, be published to different platform dependence translation and compiling environment again it is different.
It is currently that the various translation and compiling environments for needing to use exploitation are pre- beyond the clouds to reduce the time of developer's compiling Configure, often cover the corresponding cloud main frame of translation and compiling environment.During exploitation compiling, the environment that autonomous selection needs is compiled.This side Case solves each tedious work developed and separately maintain different translation and compiling environments, but cloud main frame can be caused infinitely to increase, it is difficult to Safeguard, cloud main frame service efficiency is low.
The content of the invention
The present invention provides a kind of code compiling method and device based on windows systems, existing compiled for solving Cheng Zhongyun main frames are difficult to safeguard the problem of utilization rate is low.
In a first aspect, the embodiment of the present invention provides a kind of code compiling method based on windows systems, including:
Central control system receives the translation and compiling environment mark of user's input, is closed according to translation and compiling environment mark is corresponding with snapshot identification System determines snapshot identification corresponding to the translation and compiling environment mark of input, and there is each translation and compiling environment unique translation and compiling environment to identify;
The central control system obtains the use state of cloud main frame, according to the use state and the snapshot identification to having Snapshot corresponding to the snapshot identification and the cloud main frame in idle condition send compiling instruction, so that the cloud main frame obtains source Code, start the snapshot obtain corresponding to translation and compiling environment the source code is compiled, and will be compiled after compile successfully The storage information of file is sent;
The central control system receives the storage information for the compiling file that the cloud main frame is sent and storage.
Alternatively, in addition to:
To having snapshot corresponding to the snapshot identification and the transmission compiling instruction of the cloud main frame in idle condition, so that institute State cloud main frame and obtain source code, start the snapshot obtain corresponding to translation and compiling environment the source code is compiled, and compiling Generation memory image is asked according to user after translating unsuccessfully, the memory image is sent;
Receive the memory image that the cloud main frame is sent and store.
Second aspect, the embodiment of the present invention provide a kind of code compiling method based on windows systems, including:
Cloud main frame receives the compiling instruction that central control system is sent, and the compiling instruction includes snapshot identification, the fast sighting target Know the translation and compiling environment mark that user's input is received for the central control system, closed according to translation and compiling environment mark is corresponding with snapshot identification System determines to identify corresponding to the translation and compiling environment mark of input;The cloud main frame is to have snapshot and place corresponding to the snapshot identification In the main frame of idle condition;
The cloud main frame obtains source code, start the snapshot obtain corresponding to translation and compiling environment the source code is compiled Translate, and remove the translation and compiling environment after compiling successfully, the storage information of compiling file is sent to the central control system, with The central control system is set to store the storage information of compiling file.
Alternatively, in addition to:
The cloud main frame obtains source code, start the snapshot obtain corresponding to translation and compiling environment the source code is compiled Translate, and generation memory image is asked according to user after compiling fails, the memory image is sent to the central control system, with The central control system is set to store the memory image.
The third aspect, the embodiment of the present invention provide a kind of code compilation device based on windows systems, including:
Identification module, for receiving the translation and compiling environment mark of user's input, according to translation and compiling environment mark and snapshot identification Corresponding relation determines snapshot identification corresponding to the translation and compiling environment mark of input, and each translation and compiling environment has unique translation and compiling environment mark Know;
Sending module, for obtaining the use state of cloud main frame, according to the use state and the snapshot identification to depositing There is snapshot corresponding to the snapshot identification and the cloud main frame in idle condition sends compiling instruction, so that the cloud main frame obtains Source code, start the snapshot obtain corresponding to translation and compiling environment the source code is compiled, and by volume after compile successfully The storage information of translation part is sent;
First receiving module, the storage information of the compiling file sent for receiving the cloud main frame and storage.
Alternatively, the sending module, it is additionally operable to having snapshot corresponding to the snapshot identification and be in idle condition Cloud main frame send compiling instruction so that the cloud main frame obtains source code, start the snapshot obtain corresponding to translation and compiling environment The source code is compiled, and generation memory image is asked according to user after compiling fails, the memory image is sent out Go out;
First receiving module, it is additionally operable to receive the memory image that the cloud main frame is sent and stores.
Fourth aspect, the embodiment of the present invention provide a kind of code compilation device based on windows systems, including:
Second receiving module, for receiving the compiling instruction of central control system transmission, the compiling instruction includes snapshot identification, The snapshot identification is the translation and compiling environment mark that the central control system receives user's input, according to translation and compiling environment mark and fast sighting target The corresponding relation of knowledge determines to identify corresponding to the translation and compiling environment mark of input;The cloud main frame is corresponding there to be the snapshot identification Snapshot and in idle condition main frame;
Execution module, for obtaining source code, start the snapshot obtain corresponding to translation and compiling environment the source code is entered Row compiling, and remove the translation and compiling environment after compiling successfully, the storage information of compiling file is sent into the middle control is System, so that the central control system stores to the storage information of compiling file.
Alternatively, the execution module, it is additionally operable to obtain source code, starts translation and compiling environment pair corresponding to the snapshot acquisition The source code is compiled, and asks generation memory image according to user after compiling fails, and the memory image is sent To the central control system, so that the central control system stores to the memory image.
5th aspect, the embodiment of the present invention provide a kind of electronic equipment, including:Processor, memory, bus and it is stored in On memory and the computer program that can run on a processor;
Wherein, the processor, memory complete mutual communication by the bus;
Method described above is realized described in the computing device during computer program.
6th aspect, the embodiment of the present invention provide a kind of non-transient computer readable storage medium storing program for executing, the non-transient calculating Computer program is stored with machine readable storage medium storing program for executing, the computer program realizes method described above when being executed by processor.
As shown from the above technical solution, code compiling method provided in an embodiment of the present invention based on windows systems and Device, the translation and compiling environment inputted by receiving user are identified, determined according to the corresponding relation of translation and compiling environment mark and snapshot identification Snapshot identification corresponding to the translation and compiling environment mark of input, and to having snapshot corresponding to the snapshot identification and be in idle condition Cloud main frame send compiling instruction so that the cloud main frame obtains source code, start the snapshot obtain corresponding to translation and compiling environment The source code is compiled, and the storage information of compiling file is beamed back into central control system after compiling successfully and stored, The same more set translation and compiling environments of cloud main frame configuration are realized, can concurrently be compiled, lifting compiling efficiency and cloud main frame service efficiency.
Brief description of the drawings
Fig. 1 is the schematic flow sheet for the code compiling method based on windows systems that one embodiment of the invention provides;
Fig. 2 is the schematic flow sheet for the code compiling method based on windows systems that one embodiment of the invention provides;
Fig. 3 is the schematic flow sheet for the code compiling method based on windows systems that one embodiment of the invention provides;
Fig. 4 is the schematic flow sheet for the code compiling method based on windows systems that one embodiment of the invention provides;
Fig. 5 is the structural representation for the code compilation device based on windows systems that one embodiment of the invention provides;
Fig. 6 is the structural representation for the code compilation device based on windows systems that one embodiment of the invention provides;
Fig. 7 is the structural representation for the electronic equipment that one embodiment of the invention provides;
Fig. 8 is the structural representation for the electronic equipment that one embodiment of the invention provides.
Embodiment
With reference to the accompanying drawings and examples, the embodiment of the present invention is described in further detail.Implement below Example is used to illustrate the present invention, but is not limited to the scope of the present invention.
Fig. 1 shows that one embodiment of the invention provides a kind of code compiling method based on windows systems, including:
S11, central control system receive the translation and compiling environment mark of user's input, according to pair of translation and compiling environment mark and snapshot identification It should be related to and determine snapshot identification corresponding to the translation and compiling environment mark of input, each translation and compiling environment has unique translation and compiling environment mark Know;
S12, the central control system obtain the use state of cloud main frame, according to the use state and the snapshot identification to There is snapshot corresponding to the snapshot identification and the cloud main frame in idle condition sends compiling instruction, so that the cloud main frame obtains Take source code, start the snapshot obtain corresponding to translation and compiling environment the source code is compiled, and the general after compile successfully The storage information of compiling file is sent;
S13, the central control system receive storage information and the storage for the compiling file that the cloud main frame is sent.
For above-mentioned steps S11- steps S13, it is necessary to illustrate, in embodiments of the present invention, the central control system and The cloud main frame belongs to a complete cloud compiling system.This cloud compiling system is the code compilation system being directed under windows systems System.Different language, the translation and compiling environment for being published to different platform dependence are different, therefore, each translation and compiling environment have it is unique Translation and compiling environment identifies.Each translation and compiling environment is stored in the form of snapshot on cloud main frame, and each snapshot corresponds to unique snapshot mark. Different instruments or same tool different editions can be stored on same cloud main frame, ensure that cloud host number will not infinitely increase Add.
User inputs the compiling mark for the translation and compiling environment to be used, and central control system receives compiling mark, can be according to compiling ring Border identifies the corresponding snapshot identification of translation and compiling environment mark that input is determined with the corresponding relation of snapshot identification.Central control system can pass through Virtual platform learns the use state of all cloud main frames, and the use state includes the SNAPSHOT INFO and cloud main frame that cloud main frame has It is currently idle or working condition.Compiling instruction is sent to cloud main frame sequentially at first according to the preset order of idle cloud main frame, Compiling instruction includes snapshot identification obtained above, is corresponded to so that selected cloud main frame can start according to snapshot identification Snapshot.
The cloud main frame obtains source code, start the snapshot obtain corresponding to translation and compiling environment the source code is compiled Translate, and the storage information of compiling file is sent to the central control system after compiling successfully, described in the central control system receives The storage information for the compiling file that cloud main frame is sent and storage.The storage information includes the store path of compiling file and compiling is believed Breath etc..
Code compiling method provided in an embodiment of the present invention based on windows systems, the volume inputted by receiving user Environmental labelses are translated, determine that the translation and compiling environment mark of input is corresponding fast with the corresponding relation of snapshot identification according to translation and compiling environment mark Sighting target know, and to have snapshot corresponding to the snapshot identification and in idle condition cloud main frame send compiling instruction so that The cloud main frame obtains source code, start the snapshot obtain corresponding to translation and compiling environment the source code is compiled, and The storage information of compiling file is beamed back into central control system after compiling successfully to be stored, realizes the more set compilings of same cloud main frame configuration Environment, can concurrently it compile, lifting compiling efficiency and cloud main frame service efficiency.
Fig. 2 shows that one embodiment of the invention provides a kind of code compiling method based on windows systems, including:
S21, central control system receive the translation and compiling environment mark of user's input, according to pair of translation and compiling environment mark and snapshot identification It should be related to and determine snapshot identification corresponding to the translation and compiling environment mark of input, each translation and compiling environment has unique translation and compiling environment mark Know;
S22, the central control system obtain the use state of cloud main frame, according to the use state and the snapshot identification to There is snapshot corresponding to the snapshot identification and the cloud main frame in idle condition sends compiling instruction, so that the cloud main frame obtains Take source code, start the snapshot obtain corresponding to translation and compiling environment the source code is compiled, and the root after compiling fails Generation memory image is asked according to user, the memory image is sent;
S23, the central control system receive the memory image that the cloud main frame is sent and stored.
For above-mentioned steps S21- steps S23, it is necessary to illustrate, in embodiments of the present invention, for master control system to The process that cloud main frame sends edit instruction elaborates in above-described embodiment, will not be repeated here,
The cloud main frame obtains source code, start the snapshot obtain corresponding to translation and compiling environment the source code is compiled Translate, and generation memory image is asked according to user after compiling fails, the memory image is sent to the central control system, institute Central control system is stated to receive the memory image that the cloud main frame is sent and store.Herein, the memory image is to apply family The request pre-set, the situation carried out to the mistake occurred in compilation process record.
Code compiling method provided in an embodiment of the present invention based on windows systems, the volume inputted by receiving user Environmental labelses are translated, determine that the translation and compiling environment mark of input is corresponding fast with the corresponding relation of snapshot identification according to translation and compiling environment mark Sighting target know, and to have snapshot corresponding to the snapshot identification and in idle condition cloud main frame send compiling instruction so that The cloud main frame obtains source code, start the snapshot obtain corresponding to translation and compiling environment the source code is compiled, and Generation memory image is asked according to user after compiling failure, the memory image is beamed back into central control system and stored, is realized same The more set translation and compiling environments of one cloud main frame configuration, can concurrently be compiled, lifting compiling efficiency and cloud main frame service efficiency.
Fig. 3 shows a kind of code compiling method based on windows systems that one embodiment of the invention provides, including:
S31, cloud main frame receive the compiling instruction that central control system is sent, and the compiling instruction includes snapshot identification, described fast Identified according to the translation and compiling environment for being identified as central control system reception user's input, according to pair of translation and compiling environment mark and snapshot identification It should be related to and determine to identify corresponding to the translation and compiling environment mark of input;The cloud main frame is to have snapshot corresponding to the snapshot identification And the main frame in idle condition;
S32, the cloud main frame obtain source code, start the snapshot obtain corresponding to translation and compiling environment the source code is entered Row compiling, and remove the translation and compiling environment after compiling successfully, the storage information of compiling file is sent into the middle control is System, so that the central control system stores to the storage information of compiling file.
For step S31 and step S32, it is necessary to illustrate, this method is the side carried out using cloud main frame as executive agent Case illustrates, is discussed in detail, will not be repeated here in above-described embodiment for implementation principle.
Code compiling method provided in an embodiment of the present invention based on windows systems, system is controlled in being received by cloud main frame The compiling instruction that system is sent, and source code is obtained, start translation and compiling environment corresponding to the snapshot acquisition to source code progress Compiling, and remove the translation and compiling environment after compiling successfully, the storage information of compiling file is sent to the central control system, So that the central control system stores to the storage information of compiling file, the same more set translation and compiling environments of cloud main frame configuration are realized, Can concurrently it compile, lifting compiling efficiency and cloud main frame service efficiency.
Fig. 4 shows a kind of code compiling method based on windows systems that one embodiment of the invention provides, including:
S41, cloud main frame receive the compiling instruction that central control system is sent, and the compiling instruction includes snapshot identification, described fast Identified according to the translation and compiling environment for being identified as central control system reception user's input, according to pair of translation and compiling environment mark and snapshot identification It should be related to and determine to identify corresponding to the translation and compiling environment mark of input;The cloud main frame is to have snapshot corresponding to the snapshot identification And the main frame in idle condition;
S42, the cloud main frame obtain source code, start the snapshot obtain corresponding to translation and compiling environment the source code is entered Row compiling, and generation memory image is asked according to user after compiling fails, the memory image is sent into the middle control is System, so that the central control system stores to the memory image.
For step S41 and step S42, it is necessary to illustrate, this method is the side carried out using cloud main frame as executive agent Case illustrates, is discussed in detail, will not be repeated here in above-described embodiment for implementation principle.
Code compiling method provided in an embodiment of the present invention based on windows systems, system is controlled in being received by cloud main frame The compiling instruction that system is sent, and source code is obtained, start translation and compiling environment corresponding to the snapshot acquisition to source code progress Compiling, and generation memory image is asked according to user after compiling fails, the memory image is sent to the central control system, So that the central control system stores to the memory image, the same more set translation and compiling environments of cloud main frame configuration are realized, can be simultaneously Hair compiling, lifting compiling efficiency and cloud main frame service efficiency.
Fig. 5 shows a kind of code compilation device based on windows systems that one embodiment of the invention provides, including knows Other module 51, the receiving module 53 of sending module 52 and first, wherein:
Identification module 51, for receiving the translation and compiling environment mark of user's input, according to translation and compiling environment mark and snapshot identification Corresponding relation determine snapshot identification corresponding to the translation and compiling environment mark of input, each translation and compiling environment has unique translation and compiling environment Mark;
Sending module 52, for obtaining the use state of cloud main frame, according to the use state and the snapshot identification to There is snapshot corresponding to the snapshot identification and the cloud main frame in idle condition sends compiling instruction, so that the cloud main frame obtains Take source code, start the snapshot obtain corresponding to translation and compiling environment the source code is compiled, and the general after compile successfully The storage information of compiling file is sent;Generation memory image is also asked according to user after compiling fails, by the memory image Send;
First receiving module 53, the storage information of the compiling file sent for receiving the cloud main frame and storage;Also use In the memory image for receiving the cloud main frame transmission and store.
Because described device of the embodiment of the present invention is identical with the principle of above-described embodiment methods described, for more detailed Explain that content will not be repeated here.
It should be noted that can be by hardware processor (hardware processor) come real in the embodiment of the present invention Existing related function module.
Code compilation device provided in an embodiment of the present invention based on windows systems, the volume inputted by receiving user Environmental labelses are translated, determine that the translation and compiling environment mark of input is corresponding fast with the corresponding relation of snapshot identification according to translation and compiling environment mark Sighting target know, and to have snapshot corresponding to the snapshot identification and in idle condition cloud main frame send compiling instruction so that The cloud main frame obtains source code, start the snapshot obtain corresponding to translation and compiling environment the source code is compiled, and The storage information of compiling file is beamed back into central control system after compiling successfully to be stored;And please according to user after compiling fails Memory image is sought survival into, the memory image is beamed back into central control system is stored, and realizes the more set compilings of same cloud main frame configuration Environment, can concurrently it compile, lifting compiling efficiency and cloud main frame service efficiency.
Fig. 6 shows a kind of code compilation device based on windows systems that one embodiment of the invention provides, including the Two receive film 61 and execution module 62, wherein:
Second receiving module 61, for receiving the compiling instruction of central control system transmission, the compiling instruction includes fast sighting target Know, the snapshot identification identifies for the translation and compiling environment of central control system reception user's input, according to translation and compiling environment mark and soon The corresponding relation that sighting target is known determines to identify corresponding to the translation and compiling environment mark of input;The cloud main frame is to have the snapshot identification Corresponding snapshot and the main frame in idle condition;
Execution module 62, for obtaining source code, start translation and compiling environment corresponding to the snapshot acquisition to the source code It is compiled, and removes the translation and compiling environment after compiling successfully, the storage information of compiling file is sent to the middle control System, so that the central control system stores to the storage information of compiling file;It is additionally operable to obtain source code, starts described fast The source code is compiled according to translation and compiling environment corresponding to acquisition, and asks generation internal memory fast according to user after compiling fails According to the memory image being sent into the central control system, so that the central control system stores to the memory image.
Because described device of the embodiment of the present invention is identical with the principle of above-described embodiment methods described, for more detailed Explain that content will not be repeated here.
It should be noted that can be by hardware processor (hardware processor) come real in the embodiment of the present invention Existing related function module.
Code compilation device provided in an embodiment of the present invention based on windows systems, central control system is received by cloud and sent out The compiling instruction sent, and obtains source code, start the snapshot obtain corresponding to translation and compiling environment the source code is compiled, And generation memory image is asked according to user after compiling fails, the memory image is sent to the central control system, so that The central control system is stored to the memory image and asks generation memory image according to user after compiling fails, will The memory image is sent to the central control system and stored, and realizes the same more set translation and compiling environments of cloud main frame configuration, can be simultaneously Hair compiling, lifting compiling efficiency and cloud main frame service efficiency.
Fig. 7 shows a kind of electronic equipment that one embodiment of the invention provides, including:First processor 701, first stores Device 702, the first bus 703 and storage are on the first memory and the computer program that can be run on first processor;
Wherein, the first processor, first memory complete mutual communication by first bus;
The first processor realizes method described above when performing the computer program, such as including:Receive user The translation and compiling environment mark of input, determine that the translation and compiling environment of input identifies according to the corresponding relation of translation and compiling environment mark and snapshot identification There is unique translation and compiling environment to identify for corresponding snapshot identification, each translation and compiling environment;The use state of cloud main frame is obtained, according to institute State use state and the snapshot identification to have snapshot corresponding to the snapshot identification and in idle condition cloud main frame send out Send compiling to instruct, so that the cloud main frame obtains source code, start translation and compiling environment corresponding to the snapshot acquisition to the source generation Code is compiled, and sends the storage information of compiling file after compiling successfully;Receive the compiling text that the cloud main frame is sent The storage information of part and storage.
The embodiment of the present invention provides a kind of non-transient computer readable storage medium storing program for executing, the non-transient computer readable storage Computer program is stored with medium, the computer program realizes method described above when being executed by processor, such as including:Connect The translation and compiling environment mark of user's input is received, the compiling ring of input is determined according to the corresponding relation of translation and compiling environment mark and snapshot identification There is unique translation and compiling environment to identify for snapshot identification corresponding to the mark of border, each translation and compiling environment;The use state of cloud main frame is obtained, According to the use state and the snapshot identification to snapshot corresponding to having the snapshot identification and the cloud in idle condition Main frame sends compiling instruction, so that the cloud main frame obtains source code, starts translation and compiling environment corresponding to the snapshot acquisition to institute State source code to be compiled, and send the storage information of compiling file after compiling successfully;Receive what the cloud main frame was sent The storage information of compiling file and storage.
Fig. 8 shows a kind of electronic equipment that one embodiment of the invention provides, including:First processor 801, first stores Device 802, the first bus 803 and storage are on the first memory and the computer program that can be run on first processor;
Wherein, the first processor, first memory complete mutual communication by first bus;
The first processor realizes method described above when performing the computer program, such as including:Controlled in reception The compiling instruction that system is sent, the compiling instruction include snapshot identification, and the snapshot identification is received for the central control system and used The translation and compiling environment mark of family input, the translation and compiling environment mark of input is determined according to the corresponding relation of translation and compiling environment mark and snapshot identification Identified corresponding to knowing;Obtain source code, start the snapshot obtain corresponding to translation and compiling environment the source code is compiled, and The translation and compiling environment is removed after compiling successfully, the storage information of compiling file is sent to the central control system, so that institute Central control system is stated to store the storage information of compiling file.
The embodiment of the present invention provides a kind of non-transient computer readable storage medium storing program for executing, the non-transient computer readable storage Computer program is stored with medium, the computer program realizes method described above when being executed by processor, such as including:Connect The compiling instruction that central control system is sent is received, the compiling instruction includes snapshot identification, and the snapshot identification is the central control system The translation and compiling environment mark of user's input is received, the compiling of input is determined according to the corresponding relation of translation and compiling environment mark and snapshot identification Identified corresponding to environmental labelses;Source code is obtained, starts translation and compiling environment corresponding to the snapshot acquisition to source code progress Compiling, and remove the translation and compiling environment after compiling successfully, the storage information of compiling file is sent to the central control system, So that the central control system stores to the storage information of compiling file.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed One of meaning mode can use in any combination.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of some different elements and being come by means of properly programmed computer real It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame Claim.
One of ordinary skill in the art will appreciate that:Various embodiments above is merely illustrative of the technical solution of the present invention, and It is non-that it is limited;Although the present invention is described in detail with reference to foregoing embodiments, one of ordinary skill in the art It should be understood that:It can still modify to the technical scheme described in foregoing embodiments, either to which part or All technical characteristic carries out equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from this hair Bright claim limited range.

Claims (12)

  1. A kind of 1. code compiling method based on windows systems, it is characterised in that including:
    Central control system receives the translation and compiling environment mark of user's input, is identified according to translation and compiling environment true with the corresponding relation of snapshot identification Surely there is unique translation and compiling environment to identify for snapshot identification corresponding to the translation and compiling environment mark inputted, each translation and compiling environment;
    The central control system obtains the use state of cloud main frame, according to the use state and the snapshot identification to described in having Snapshot corresponding to snapshot identification and the cloud main frame in idle condition send compiling instruction, so that the cloud main frame obtains source generation Code, start the snapshot obtain corresponding to translation and compiling environment the source code is compiled, and will compile after compile successfully literary The storage information of part is sent;
    The central control system receives the storage information for the compiling file that the cloud main frame is sent and storage.
  2. 2. according to the method for claim 1, it is characterised in that also include:
    To having snapshot corresponding to the snapshot identification and the transmission compiling instruction of the cloud main frame in idle condition, so that the cloud Main frame obtains source code, start the snapshot obtain corresponding to translation and compiling environment the source code is compiled, and lost in compiling Generation memory image is asked according to user after losing, the memory image is sent;
    Receive the memory image that the cloud main frame is sent and store.
  3. A kind of 3. code compiling method based on windows systems, it is characterised in that including:
    Cloud main frame receives the compiling instruction that central control system is sent, and the compiling instruction includes snapshot identification, and the snapshot identification is The central control system receives the translation and compiling environment mark of user's input, is identified according to translation and compiling environment true with the corresponding relation of snapshot identification Surely identified corresponding to the translation and compiling environment mark inputted;The cloud main frame is to have snapshot corresponding to the snapshot identification and in sky The main frame of not busy state;
    The cloud main frame obtains source code, start the snapshot obtain corresponding to translation and compiling environment the source code is compiled, And remove the translation and compiling environment after compiling successfully, the storage information of compiling file is sent to the central control system, so that The central control system stores to the storage information of compiling file.
  4. 4. according to the method for claim 3, it is characterised in that also include:
    The cloud main frame obtains source code, start the snapshot obtain corresponding to translation and compiling environment the source code is compiled, And generation memory image is asked according to user after compiling fails, the memory image is sent to the central control system, so that The central control system stores to the memory image.
  5. A kind of 5. code compilation device based on windows systems, it is characterised in that including:
    Identification module, for receiving the translation and compiling environment mark of user's input, identified according to translation and compiling environment corresponding with snapshot identification Relation determines snapshot identification corresponding to the translation and compiling environment mark of input, and there is each translation and compiling environment unique translation and compiling environment to identify;
    Sending module, for obtaining the use state of cloud main frame, according to the use state and the snapshot identification to having State snapshot corresponding to snapshot identification and the cloud main frame in idle condition sends compiling instruction, so that the cloud main frame obtains source generation Code, start the snapshot obtain corresponding to translation and compiling environment the source code is compiled, and will compile after compile successfully literary The storage information of part is sent;
    First receiving module, the storage information of the compiling file sent for receiving the cloud main frame and storage.
  6. 6. device according to claim 5, it is characterised in that the sending module, be additionally operable to there being the fast sighting target Snapshot corresponding to knowledge and the cloud main frame in idle condition send compiling instruction, so that the cloud main frame obtains source code, start Translation and compiling environment corresponding to the snapshot acquisition is compiled to the source code, and asks to generate according to user after compiling fails Memory image, the memory image is sent;
    First receiving module, it is additionally operable to receive the memory image that the cloud main frame is sent and stores.
  7. A kind of 7. code compilation device based on windows systems, it is characterised in that including:
    Second receiving module, for receiving the compiling instruction of central control system transmission, the compiling instruction includes snapshot identification, described Snapshot identification is the translation and compiling environment mark that the central control system receives user's input, according to translation and compiling environment mark and snapshot identification Corresponding relation determines to identify corresponding to the translation and compiling environment mark of input;The cloud main frame is fast corresponding to the snapshot identification to have According to and in idle condition main frame;
    Execution module, for obtaining source code, start the snapshot obtain corresponding to translation and compiling environment the source code is compiled Translate, and remove the translation and compiling environment after compiling successfully, the storage information of compiling file is sent to the central control system, with The central control system is set to store the storage information of compiling file.
  8. 8. device according to claim 7, it is characterised in that the execution module, be additionally operable to obtain source code, start institute Translation and compiling environment corresponding to stating snapshot acquisition is compiled to the source code, and is asked after compiling fails according to user in generation Snapshot is deposited, the memory image is sent to the central control system, so that the central control system is deposited to the memory image Storage.
  9. 9. a kind of electronic equipment, it is characterised in that including:First processor, first memory, the first bus and it is stored in first On memory and the computer program that can be run on first processor;
    Wherein, the first processor, first memory complete mutual communication by first bus;
    The first processor realizes the method as any one of claim 1-2 when performing the computer program.
  10. 10. a kind of non-transient computer readable storage medium storing program for executing, it is characterised in that on the non-transient computer readable storage medium storing program for executing Computer program is stored with, the side as any one of claim 1-2 is realized when the computer program is executed by processor Method.
  11. 11. a kind of electronic equipment, it is characterised in that including:Second processor, second memory, the second bus and it is stored in On two memories and the computer program that can be run in second processor;
    Wherein, the second processor, second memory complete mutual communication by second bus;
    The second processor realizes the method as any one of claim 3-4 when performing the computer program.
  12. 12. a kind of non-transient computer readable storage medium storing program for executing, it is characterised in that on the non-transient computer readable storage medium storing program for executing Computer program is stored with, the side as any one of claim 3-4 is realized when the computer program is executed by processor Method.
CN201711084626.5A 2017-11-07 2017-11-07 Code compiling method and device based on windows system Active CN107656739B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711084626.5A CN107656739B (en) 2017-11-07 2017-11-07 Code compiling method and device based on windows system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711084626.5A CN107656739B (en) 2017-11-07 2017-11-07 Code compiling method and device based on windows system

Publications (2)

Publication Number Publication Date
CN107656739A true CN107656739A (en) 2018-02-02
CN107656739B CN107656739B (en) 2021-03-12

Family

ID=61120549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711084626.5A Active CN107656739B (en) 2017-11-07 2017-11-07 Code compiling method and device based on windows system

Country Status (1)

Country Link
CN (1) CN107656739B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109976748A (en) * 2019-02-28 2019-07-05 南京南瑞继保电气有限公司 A kind of program processing method, terminal, server and computer storage medium
CN111752572A (en) * 2020-06-29 2020-10-09 百度在线网络技术(北京)有限公司 Compiling method, device, equipment and storage medium
CN115080151A (en) * 2022-07-22 2022-09-20 平安银行股份有限公司 APP starting process control method, computer readable storage medium and terminal

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101290581A (en) * 2008-05-16 2008-10-22 北京星网锐捷网络技术有限公司 Compiling system and method
WO2011035663A1 (en) * 2009-09-23 2011-03-31 中兴通讯股份有限公司 Method and device for constructing compiling system
CN103514004A (en) * 2012-06-28 2014-01-15 联想(北京)有限公司 Method and device for managing system environment under Windows system
US8959484B2 (en) * 2012-06-21 2015-02-17 Microsoft Corporation System for hosted, shared, source control build
CN105893105A (en) * 2016-03-29 2016-08-24 乐视控股(北京)有限公司 Compiling system and method for multiple compiling platforms
CN106095522A (en) * 2016-06-03 2016-11-09 北京奇虎科技有限公司 A kind of method realizing distributed compilation and distributed compilation system
CN106648597A (en) * 2016-10-10 2017-05-10 许继集团有限公司 Multi-user concurrent remote compiling engine architecture
WO2017084275A1 (en) * 2015-11-20 2017-05-26 乐视控股(北京)有限公司 Software development integration method and apparatus

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101290581A (en) * 2008-05-16 2008-10-22 北京星网锐捷网络技术有限公司 Compiling system and method
WO2011035663A1 (en) * 2009-09-23 2011-03-31 中兴通讯股份有限公司 Method and device for constructing compiling system
US8959484B2 (en) * 2012-06-21 2015-02-17 Microsoft Corporation System for hosted, shared, source control build
CN103514004A (en) * 2012-06-28 2014-01-15 联想(北京)有限公司 Method and device for managing system environment under Windows system
WO2017084275A1 (en) * 2015-11-20 2017-05-26 乐视控股(北京)有限公司 Software development integration method and apparatus
CN105893105A (en) * 2016-03-29 2016-08-24 乐视控股(北京)有限公司 Compiling system and method for multiple compiling platforms
CN106095522A (en) * 2016-06-03 2016-11-09 北京奇虎科技有限公司 A kind of method realizing distributed compilation and distributed compilation system
CN106648597A (en) * 2016-10-10 2017-05-10 许继集团有限公司 Multi-user concurrent remote compiling engine architecture

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109976748A (en) * 2019-02-28 2019-07-05 南京南瑞继保电气有限公司 A kind of program processing method, terminal, server and computer storage medium
CN111752572A (en) * 2020-06-29 2020-10-09 百度在线网络技术(北京)有限公司 Compiling method, device, equipment and storage medium
CN111752572B (en) * 2020-06-29 2023-03-14 百度在线网络技术(北京)有限公司 Compiling method, device, equipment and storage medium
CN115080151A (en) * 2022-07-22 2022-09-20 平安银行股份有限公司 APP starting process control method, computer readable storage medium and terminal
CN115080151B (en) * 2022-07-22 2023-07-14 平安银行股份有限公司 APP starting flow control method, computer readable storage medium and terminal

Also Published As

Publication number Publication date
CN107656739B (en) 2021-03-12

Similar Documents

Publication Publication Date Title
US8392919B2 (en) Runtime environment for virtualizing information technology appliances
CN106104467B (en) A kind of Automation arranging method and terminal
US20170147476A1 (en) Method and apparatus for integration of software development
CN110096424B (en) Test processing method and device, electronic equipment and storage medium
WO2016082311A1 (en) System and method for generating machining control data of numerical control machine tool
CN105164644A (en) Hook framework
US20130054923A1 (en) Automatic memory leak detection
CN109542443A (en) Compilation Method and device, terminal, the data processing method of application program
CN114503108A (en) Adding countermeasure robustness to a trained machine learning model
CN107656739A (en) code compiling method and device based on windows systems
CN103605529B (en) The treating method and apparatus of application program
CN109901985B (en) Distributed test apparatus and method, storage medium, and electronic device
CN110647332A (en) Software deployment method and device based on container cloud
CN104881343A (en) Testing method and testing system
CN109196476A (en) Seamless high-performance interoperability between the different type figure of shared garbage collector
CN110531985A (en) SDK initial method and system, electronic equipment, storage medium
US20180025162A1 (en) Application program analysis apparatus and method
CN110147304A (en) A kind of method and apparatus of acquisition system bootload log
US20160378521A1 (en) Automated test optimization
CN106251122A (en) A kind of workflow processing method and device
CN106873970A (en) The installation method and device of a kind of operating system
US20200326990A1 (en) Dynamic Infrastructure Management and Processing
CN104199716A (en) Virtual machine thermal migration method, physical host and system
CN109961516A (en) Surface acquisition methods, device and non-transient computer-readable recording medium
CN111459506B (en) Deep learning platform cluster deployment method and device, medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Room 332, 3 / F, Building 102, 28 xinjiekouwei street, Xicheng District, Beijing 100088

Applicant after: Qianxin Technology Group Co.,Ltd.

Address before: 100015 15, 17 floor 1701-26, 3 building, 10 Jiuxianqiao Road, Chaoyang District, Beijing.

Applicant before: Beijing Qi'anxin Technology Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant