CN101833449A - Compile processing method and system based on cloud computing - Google Patents

Compile processing method and system based on cloud computing Download PDF

Info

Publication number
CN101833449A
CN101833449A CN201010153564A CN201010153564A CN101833449A CN 101833449 A CN101833449 A CN 101833449A CN 201010153564 A CN201010153564 A CN 201010153564A CN 201010153564 A CN201010153564 A CN 201010153564A CN 101833449 A CN101833449 A CN 101833449A
Authority
CN
China
Prior art keywords
server
compiling
compiler
compile
director
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201010153564A
Other languages
Chinese (zh)
Inventor
罗笑南
陈君晖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sun Yat Sen University
Original Assignee
Sun Yat Sen University
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 Sun Yat Sen University filed Critical Sun Yat Sen University
Priority to CN201010153564A priority Critical patent/CN101833449A/en
Publication of CN101833449A publication Critical patent/CN101833449A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a compile processing method and a system based on cloud computing. The method comprises the following steps: a1, a compile head server allocates compile tasks according to the number of the source files of a project and the idle situation of compile servers with identical hardware platforms; a2, the compile head server calls the compile servers through the simple object access protocol (SOAP); a3, the compile servers return compile results to the compile head server; a4, the compile head server processes the compile results and returns a final compile result to a web server; and a5, the web server returns the final compile result to a client browser end. The invention also correspondingly provides the compile processing system. By the invention, developers can develop without installing a compiler at a client and can compile directing at different hardware platforms to generate executable programs corresponding to the different hardware platforms.

Description

Compile processing method and system based on cloud computing
Technical field
The invention belongs to field of computer technology, be specifically related to a kind of compile processing method and system based on cloud computing.
Background technology
In traditional program development process, the developer need install the compiler of corresponding language in machine, could generate corresponding executable program.If the developer transfers on the other machine and develops, then need to reinstall to compiler that should hardware platform, otherwise can't carry out the compiling of program.
Present program compilation system based on web, compilation speed all can not be satisfactory, particularly for the many large-engineerings of quantity of documents, compile still and will spend long period of time, only address this problem the program compilation system that could allow and be accepted widely and use based on web.In addition, current various compiled online system, the neither one system can provide the executable program of corresponding hardware platform, can only export relevant text message.
Summary of the invention
The objective of the invention is to overcome the deficiencies in the prior art, propose a kind of compile processing method and system, can make the source code of user browser end to compile fast, and return the compiling result of corresponding hardware platform by service end based on cloud computing.
Purpose of the present invention is achieved through the following technical solutions:
The invention provides a kind of compile processing method, comprising based on cloud computing:
A1, compiling director server distribute compiler task according to the idle condition of the compiler server of the source document number of packages of engineering and each same hardware platform;
A2, compiling director server call compiler server by Simple Object Access Protocol SOAP;
A3, compiler server will compile the result and return to the compiling director server;
A4, compiling director server are handled the compiling result, will finally compile the result and return to the web server;
A5, web server will finally compile the result and turn back to the user browser end.
Wherein, the compiling result described in the step a3 compiles the file destination that successfully produces for compiler server
Wherein, the final compiling result described in the step a4 successfully links the executable program of generation for all file destinations, or the error log that produces of link failure, or the error log that returns of compiler server.
Wherein, compiling director server and each compiler server adopt the framework based on Web Service:
Compiler server adopts web service specifications language WSDL to describe the compiler relevant information that it provides the compiling service;
Compiler server registration service on unified description, discovery and integrated UDDI server;
The compiling director server is by the compiler server of UDDI whois lookup specified type and binding with it;
The compiling director server calls compiler server by SOAP compiling service.
The invention provides a kind of process of compilation system: this system comprises web server, compiling director server, compiler server based on browser/server framework;
Described web server is used to receive the engineering source code that the user submits to, according to the hardware platform that the user selects the engineering source code is passed to corresponding compiling director server:
Described compiling director server is used to receive the engineering source code that the web server transmits, the corresponding compiling director server of each hardware platform; The compiling director server distributes the source file compiler task according to the idle condition of source file sum and each compiler server, and the compiling director server carries out the compiling of respective sources file by the compiler that SOAP calls each compiler server;
Described compiler server is described the compiling service that it provides by WSDL, and registration service on the UDDI server; Compiler server compiles the source file that transmits, and returns the compiling result;
Described UDDI server is used for issuing, searches and bind service.
Wherein, the web server is connected by HTTP with the user;
Web server, compiling director server, compiler server and UDDI service publication server are positioned at same LAN (Local Area Network);
Web server and source program and the compiling result of compiling director server by User Datagram Protoco (UDP) UDP transmission engineering, compiling director server and compiler server are by UDP transmission sources file and compiling result, and the compiling director server calls corresponding compiling service by SOAP.
Technique scheme as can be seen, the present invention has following beneficial effect:
(1) developer need not on machine to install compiler and just can carry out program development, and only need input source program on browser compile, and just can be compiled the result accordingly;
(2) compiling system adopts and carries out program compilation based on cloud computing, has improved compilation speed greatly, and is obvious for the compiling effect of heavy construction;
(3) compiling system can compile according to different hardware platforms, is applicable to the terminal user of different hardware platforms.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the structure composition frame chart that the present invention is based on the compiling system of web;
Fig. 2 is the workflow block diagram that the present invention is based on the compile processing method of cloud computing.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making all other embodiment that obtained under the creative work prerequisite.
The invention provides a kind of compile processing method and system, can make the source code of user browser end to compile fast, and return the compiling result of corresponding hardware platform by service end based on cloud computing.
A kind of program compilation disposal route based on cloud computing provided by the invention, this method is used server end and user side.The compiling director server and the compiler server of the hardware platform that Server Side Include is dissimilar are used to provide the service of the compiling demand of dealing with different hardware platforms.The user can select different hardware platforms by browser; Corresponding compiling director server is selected in the request that the web server is submitted to according to the user.
Method of the present invention comprises:
Service end is carried out program compilation based on cloud computing, and its step is as follows:
A1, compiling director server distribute compiler task according to the source document number of packages of engineering and the idle condition of each same hardware platform compiler server;
The compiling service that a2, compiling director server call compiler server by SOAP (Simple Object Access Protocol, Simple Object Access Protocol);
A3, compiler server will compile the result and return to the compiling director server;
A4, compiling director server are handled the compiling result, will finally compile the result and return to the web server;
A5, web server will finally compile the result and turn back to the user browser end.
Wherein, the compiling result of step a3 compiles the file destination of successfully generation or the error log that the compiling failure produces for compiler.
The final compiling result of step a4 successfully links the executable program of generation for all file destinations, or the error log that produces of link failure, or the error log that returns of compiler server.
The invention enables the developer to need not compiler to be installed and just can develop, and can compile, can generate executable program corresponding to different hardware platforms at different hardware platforms in client.The present invention has had significant raising with respect to unit compile efficiency in the past, can save a lot of times for the compiling of heavy construction.
Fig. 1 is the structure composition frame chart that the present invention is based on the program compilation system of web.
As shown in Figure 1, comprising: user terminal, Web server, UDDI server, hardware platform A compiling director server, hardware platform A compiler server, hardware platform B compiling director server, hardware platform B compiler server.
A kind of program compilation system based on web provided by the invention is based on B/S (Browser/Server, browser/server) structure.
Wherein, compiling director server and each compiler server adopt the framework based on Web Service:
Compiler server adopts WSDL (Web Service Description Language, web service specifications language) to describe the compiler relevant information that it provides the compiling service; Compiler server registration service on UDDI (UniversalDescription Discovery and Integration, unified description, discovery and integrated) server; The compiling director server is searched the compiler server of specified type and binding with it by UDDI; The compiling director server distributes compiler task according to the idle condition of source document number of packages He each compiler server of engineering to compiler server; The compiling service that the compiling director server calls compiler server by SOAP (Simple Object Access Protocol).
Concrete:
System comprises the web server.This web server is used to receive the engineering source code that the user submits to, according to the hardware platform that the user selects the engineering source code is passed on the corresponding compiling director server, and will be compiled the compiling result that director server passes back and return to the terminal user;
The user can import the username and password login on the webpage that the web server provides, the purpose that authentication is set is in order to prevent that lawless person's malice from taking a large amount of compiler server resources, to cause domestic consumer can't use the situation of compiling system to take place; Can create newly built construction after user's login, and create new source file in newly built construction, source file can be created by import file name in the web page text frame and source code, perhaps directly imports the source file of subscriber's local; The user need select suitable hardware platform from the tabulation of the hardware platform on the page, and clicks " submitting compiling to " button, thereby finishes the establishment of engineering.
System also comprises the compiling director server, and the corresponding compiling director server of each hardware platform is used to receive the engineering source file that the web server transmits; The compiling director server calculates the source file sum, and distribute the source file compiler task according to the idle condition of each compiler server, the compiler server mean allocation source file identical to idle condition, busy compiler server distributes less source file or does not distribute source file; The compiling director server carries out the compiling of respective sources file by the compiler that SOAP calls each compiler server.
System also comprises compiler server, and every compiler server can only connect a compiling director server, and each compiling director server can connect many compiler servers; Compiler server is described the compiling service that it provides by WSDL, and registration service on the UDDI server; Compiler server compiles the source file that transmits, and returns the compiling result.
In addition, system also comprises the UDDI server, is used for issuing, searches and bind service.
In system of the present invention, user and web server are by HTTP (Hyper Text TransferProtocol, HTML (Hypertext Markup Language)) connects, web server, compiling director server, compiler server and UDDI server are positioned at same LAN (Local Area Network), the web server passes through UDP (UserDatagram Protocol with the compiling director server, User Datagram Protoco (UDP)) source program of transmission engineering and compiling result, compiling director server and compiler server also by UDP transmission sources file and compiling result, call corresponding compiling service by SOAP.
As shown in Figure 1, because the user selects hardware platform A, so hardware platform A compiling director server receives the engineering source file that the web server transmits; Hardware platform A compiling director server distributes compiler task according to the idle condition of source file sum and each available compiler server; Hardware platform A compiling director server calls the compiler server of allocating task by SOAP compiling service; Hardware platform A compiling director server also carries out aggregation process to the compiling result who returns from each compiler server, will finally compile the result and pass to the web server.
The UDDI server is used for issuing, searches and bind service, and the compiler server of same hardware platform is with it searched and bound to hardware platform A compiling director server by the UDDI server.
Fig. 2 is the workflow block diagram that the present invention is based on the compile processing method of cloud computing.As shown in Figure 2, the method for present embodiment is as follows:
1) user imports username and password, the login compiling system.
2) user clicks the new engineering of " new construction " button establishment in the page.
3) user clicks in the page " new files " button and creates new file.
4) user can be chosen in the text box input source program or import the local source file and carry out the file editor.
5) the user edit finish after, the user need select hardware platform.
6) user clicks " submitting compiling to " button submission engineering by server compiles.
7) hardware platform selected according to the user of web server is selected the compiling director server of same hardware platform, and engineering is passed to the compiling director server by UDP.
8) the compiling director server calculates the source file sum, and distribute the source file compiler task by UDP according to the idle condition of each compiler server, the compiler server mean allocation source file identical to idle condition, busy compiler server distributes less source file or does not distribute source file.
9) the compiling director server compiles source file by the compiler that SOAP calls compiler server, and returns the compiling result to compiling director server.
10) the compiling director server judges whether each compiling result who returns is correct, if correct, enters 11), otherwise the compiling director server returns error log:
11) if all correct, then link, the compiling director server links each file destination.If link produces executable program, then executable program is passed to the web server; If mistake appears in link, then error log is passed to the web server.
12) if the compiling results suggest of passing the compiling director server back when wrong, does not then link, directly will compile the result and be transmitted to the web server.
Technique scheme as can be seen, the present invention has following beneficial effect:
(1) developer need not on machine to install compiler and just can carry out program development, and only need input source program on browser compile, and just can be compiled the result accordingly;
(2) compiling system adopts and carries out program compilation based on cloud computing, has improved compilation speed greatly, and is obvious for the compiling effect of heavy construction;
(3) compiling system can compile according to different hardware platforms, is applicable to the terminal user of different hardware platforms.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of the foregoing description is to instruct relevant hardware to finish by program, this program can be stored in the computer-readable recording medium, storage medium can comprise: ROM (read-only memory) (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc.
More than to a kind of compile processing method and system that the embodiment of the invention provided based on cloud computing, be described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (6)

1. the compile processing method based on cloud computing is characterized in that, comprising:
A1, compiling director server distribute compiler task according to the idle condition of the compiler server of the source document number of packages of engineering and each same hardware platform;
A2, compiling director server call compiler server by Simple Object Access Protocol SOAP;
A3, compiler server will compile the result and return to the compiling director server;
A4, compiling director server are handled the compiling result, will finally compile the result and return to the web server;
A5, web server will finally compile the result and turn back to the user browser end.
2. the compile processing method based on cloud computing according to claim 1 is characterized in that:
The error log that file destination that compiling result described in the step a3 successfully produces for compiler server compiles or compiling failure produce.
3. the compile processing method based on cloud computing according to claim 1 is characterized in that:
Final compiling result described in the step a4 successfully links the executable program of generation for all file destinations, or the error log that produces of link failure, or the error log that returns of compiler server.
4. according to claim 1,2 or 3 described compile processing methods, it is characterized in that based on cloud computing:
Compiling director server and each compiler server adopt the framework based on Web Service:
Compiler server adopts web service specifications language WSDL to describe the compiler relevant information that it provides the compiling service;
Compiler server registration service on unified description, discovery and integrated UDDI server;
The compiling director server is by the compiler server of UDDI whois lookup specified type and binding with it;
The compiling director server calls compiler server by SOAP compiling service.
5. process of compilation system is characterized in that:
This system comprises web server, compiling director server, compiler server based on browser/server framework;
Described web server is used to receive the engineering source code that the user submits to, according to the hardware platform that the user selects the engineering source code is passed to corresponding compiling director server:
Described compiling director server is used to receive the engineering source code that the web server transmits, the corresponding compiling director server of each hardware platform;
The compiling director server distributes the source file compiler task according to the idle condition of source file sum and each compiler server, and the compiling director server carries out the compiling of respective sources file by the compiler that SOAP calls each compiler server;
Described compiler server is described the compiling service that it provides by WSDL, and registration service on the UDDI server; Compiler server compiles the source file that transmits, and returns the compiling result;
Described UDDI server is used for issuing, searches and bind service.
6. process of compilation according to claim 5 system is characterized in that:
The web server is connected by HTTP with the user;
Web server, compiling director server, compiler server and UDDI service publication server are positioned at same LAN (Local Area Network);
Web server and source program and the compiling result of compiling director server by User Datagram Protoco (UDP) UDP transmission engineering;
Compiling director server and compiler server are by UDP transmission sources file and compiling result;
The compiling director server calls corresponding compiling service by SOAP.
CN201010153564A 2010-04-16 2010-04-16 Compile processing method and system based on cloud computing Pending CN101833449A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010153564A CN101833449A (en) 2010-04-16 2010-04-16 Compile processing method and system based on cloud computing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010153564A CN101833449A (en) 2010-04-16 2010-04-16 Compile processing method and system based on cloud computing

Publications (1)

Publication Number Publication Date
CN101833449A true CN101833449A (en) 2010-09-15

Family

ID=42717530

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010153564A Pending CN101833449A (en) 2010-04-16 2010-04-16 Compile processing method and system based on cloud computing

Country Status (1)

Country Link
CN (1) CN101833449A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677814A (en) * 2013-11-29 2014-03-26 广州视源电子科技股份有限公司 Procedure acquiring method, procedure acquiring device and procedure acquiring system
CN103777929A (en) * 2012-10-18 2014-05-07 中国移动通信集团公司 Simulative development system for program development and achieving method thereof
CN104965748A (en) * 2015-06-03 2015-10-07 广州华多网络科技有限公司 Compiling platform, and compiling method and apparatus
CN105760207A (en) * 2016-03-14 2016-07-13 青岛海信移动通信技术股份有限公司 Compiling method, device and system based on cloud computing platform
CN106648597A (en) * 2016-10-10 2017-05-10 许继集团有限公司 Multi-user concurrent remote compiling engine architecture
CN108132651A (en) * 2017-09-09 2018-06-08 浙江亚太机电股份有限公司 Distributed CNC Lathe networking manages system
CN109271166A (en) * 2018-09-20 2019-01-25 摩尔元数(厦门)科技有限公司 A kind of method and platform for realizing compiled online at the end Web
CN109683898A (en) * 2017-09-01 2019-04-26 北京猿圈科技有限责任公司 A kind of Compilation Method and cloud compiling system based on cloud compiling
CN109766099A (en) * 2018-12-11 2019-05-17 浙江口碑网络技术有限公司 Front end source code Compilation Method, device, storage medium and computer equipment
CN111176625A (en) * 2019-12-31 2020-05-19 杭州趣链科技有限公司 Method for efficiently compiling identity intelligent contract at browser end
CN112445489A (en) * 2020-10-29 2021-03-05 成都完美天智游科技有限公司 Compiling system, electronic device, and readable medium
CN113254022A (en) * 2021-05-14 2021-08-13 北京车和家信息技术有限公司 Distributed compilation system and method

Citations (2)

* 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
CN101582041A (en) * 2009-05-25 2009-11-18 中山大学 Distributed compilation method and system based on web

Patent Citations (2)

* 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
CN101582041A (en) * 2009-05-25 2009-11-18 中山大学 Distributed compilation method and system based on web

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103777929A (en) * 2012-10-18 2014-05-07 中国移动通信集团公司 Simulative development system for program development and achieving method thereof
CN103677814A (en) * 2013-11-29 2014-03-26 广州视源电子科技股份有限公司 Procedure acquiring method, procedure acquiring device and procedure acquiring system
CN104965748B (en) * 2015-06-03 2018-07-10 广州华多网络科技有限公司 Compile platform, Compilation Method and device
CN104965748A (en) * 2015-06-03 2015-10-07 广州华多网络科技有限公司 Compiling platform, and compiling method and apparatus
CN105760207A (en) * 2016-03-14 2016-07-13 青岛海信移动通信技术股份有限公司 Compiling method, device and system based on cloud computing platform
CN106648597A (en) * 2016-10-10 2017-05-10 许继集团有限公司 Multi-user concurrent remote compiling engine architecture
CN109683898A (en) * 2017-09-01 2019-04-26 北京猿圈科技有限责任公司 A kind of Compilation Method and cloud compiling system based on cloud compiling
CN108132651A (en) * 2017-09-09 2018-06-08 浙江亚太机电股份有限公司 Distributed CNC Lathe networking manages system
CN109271166A (en) * 2018-09-20 2019-01-25 摩尔元数(厦门)科技有限公司 A kind of method and platform for realizing compiled online at the end Web
CN109766099A (en) * 2018-12-11 2019-05-17 浙江口碑网络技术有限公司 Front end source code Compilation Method, device, storage medium and computer equipment
CN109766099B (en) * 2018-12-11 2020-07-31 浙江口碑网络技术有限公司 Front-end source code compiling method and device, storage medium and computer equipment
CN111176625A (en) * 2019-12-31 2020-05-19 杭州趣链科技有限公司 Method for efficiently compiling identity intelligent contract at browser end
CN111176625B (en) * 2019-12-31 2023-07-28 杭州趣链科技有限公司 Method for efficiently compiling intelligent contract of solubility at browser end
CN112445489A (en) * 2020-10-29 2021-03-05 成都完美天智游科技有限公司 Compiling system, electronic device, and readable medium
CN113254022A (en) * 2021-05-14 2021-08-13 北京车和家信息技术有限公司 Distributed compilation system and method

Similar Documents

Publication Publication Date Title
CN101833449A (en) Compile processing method and system based on cloud computing
CN101582041A (en) Distributed compilation method and system based on web
Pervez et al. Multi-tenant, secure, load disseminated SaaS architecture
CN104391868B (en) The device and method of dynamic page static
CN101894059B (en) A kind of detection method of running status and system
CN102629939B (en) Electric power enterprise service bus realization method and device
Montesi Process-aware web programming with Jolie
CN102314469A (en) Method for implementing cross-domain request callback
US8103607B2 (en) System comprising a proxy server including a rules engine, a remote application server, and an aspect server for executing aspect services remotely
CN102917067B (en) Method and device for increasing response speed based on self-adaption concurrency control of client
CN104468838A (en) P2P network and Web service selection method in publish-subscribe pattern
CN103067501A (en) Large data processing method of PaaS platform
CN103544060B (en) A kind of service dispatch system and method based on WEBSERVICE
CN105302564A (en) Online office software service control and implementation method
CN108234607B (en) File distribution method and system based on micro-service architecture mode
CN106230889A (en) Mobile solution Service Component method for managing resource and system
CN104020992A (en) Method and device for generating Java Web service through C/C++
CN109858905B (en) Cross-system electronic certificate processing method and device
Riemer et al. SEPP: Semantics-based management of fast data streams
Mangler et al. On the origin of services using riddl for description, evolution and composition of restful services
US9537931B2 (en) Dynamic object oriented remote instantiation
Brogi et al. A service-oriented model for embedded peer-to-peer systems
Boukerche et al. Towards peer-to-peer based distributed simulations on a grid infrastructure
CN114416211A (en) Method for converting industrial software customized development into industrial app
Li et al. Two-way Web service: from interface design to interface verification

Legal Events

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

Application publication date: 20100915