WO2017166529A1 - 一种针对多个编译平台的编译系统和方法 - Google Patents

一种针对多个编译平台的编译系统和方法 Download PDF

Info

Publication number
WO2017166529A1
WO2017166529A1 PCT/CN2016/089545 CN2016089545W WO2017166529A1 WO 2017166529 A1 WO2017166529 A1 WO 2017166529A1 CN 2016089545 W CN2016089545 W CN 2016089545W WO 2017166529 A1 WO2017166529 A1 WO 2017166529A1
Authority
WO
WIPO (PCT)
Prior art keywords
compilation
compiling
path
environment
configuration
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.)
Ceased
Application number
PCT/CN2016/089545
Other languages
English (en)
French (fr)
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.)
Le Holdings Beijing Co Ltd
Leshi Zhixin Electronic Technology Tianjin Co Ltd
Original Assignee
Le Holdings Beijing Co Ltd
Leshi Zhixin Electronic Technology Tianjin 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 Le Holdings Beijing Co Ltd, Leshi Zhixin Electronic Technology Tianjin Co Ltd filed Critical Le Holdings Beijing Co Ltd
Priority to US15/242,534 priority Critical patent/US20170286074A1/en
Publication of WO2017166529A1 publication Critical patent/WO2017166529A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

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

Definitions

  • the present patent application relates to a compilation technique for multiple compilation platforms, and in particular to a compilation system and method for multiple compilation platforms.
  • Today's smart handheld devices have a separate operating system like a computer.
  • the independent running space allows users to install software, games, navigation and other applications, and can access wireless networks through a mobile communication network.
  • the inventor has found that in the process of installing a new application, the server needs to compile it, and the compilation is a process of generating a target program from a source program written in a source language, and the target program is generated by the compiler. action. Compilation turns a high-level language into a binary language that computers can recognize. Compilers convert familiar languages into machine-recognizable languages.
  • the process of the compiler to translate a source program into a target program is divided into five phases: lexical analysis, parsing, semantic checking and intermediate code generation, code optimization, and object code generation. Mainly for lexical analysis and grammar analysis, also known as source program analysis, if a grammatical error is found during the analysis, a message will be given. If the compilation process cannot be completed while installing a new application, the installation will not be possible.
  • each manufacturer has its own compiling platform, and the compiling platforms of each vendor are independent of each other.
  • Each vendor's compiling platform can only compile the applications produced by itself, that is to say, the compiling platform of the A vendor cannot be used.
  • To compile the application of the B manufacturer and a handheld device can only install a chip for compiling, that is, a handheld device can only have one compiling platform. If the user wants to use their own handheld device (for example, A manufacturer) to download other manufacturers (for example, plant B The application of the commercial product is not possible, which brings great inconvenience to the user.
  • an embodiment of the present invention provides a compiling system for a plurality of compiling platforms, the system comprising: a detecting module, detecting a compiling environment required for compiling an object; and a mapping module, according to the compiling environment by using a mapping table.
  • the mapping obtains a corresponding compilation path; and an execution module obtains a corresponding configuration element according to the compilation path and performs compilation using the configuration element.
  • the mapping table includes a compilation path corresponding to each of the plurality of compilation environments and a mapping relationship between each of the compilation environments and the corresponding compilation path.
  • system further includes: a storage module, configured to store configuration elements of each of the plurality of compilation environments, and each configuration element of each compilation environment is stored in a different folder, thereby A compilation environment each has a different compilation path.
  • a storage module configured to store configuration elements of each of the plurality of compilation environments, and each configuration element of each compilation environment is stored in a different folder, thereby A compilation environment each has a different compilation path.
  • the configuration elements include a configuration file and a compilation tool.
  • each of the plurality of compilation platforms corresponds to a compilation environment.
  • an embodiment of the present invention further provides a compiling method for multiple compiling platforms, the method comprising: detecting a compiling environment required for compiling an object; and obtaining a corresponding compiling path according to the compiling environment mapping by using a mapping table; And obtaining corresponding configuration elements according to the compilation path and performing compilation by using the configuration elements.
  • the mapping table includes a compilation path corresponding to each of the plurality of compilation environments and a mapping relationship between each of the compilation environments and the corresponding compilation path.
  • the method further includes: storing configuration elements of each of the plurality of compilation environments, and each configuration element of each compilation environment is stored in a different folder, Thus each compilation environment has a different compilation path.
  • the configuration elements include a configuration file and a compilation tool.
  • each of the plurality of compilation platforms corresponds to a compilation environment.
  • some embodiments of the present invention integrate the configuration elements of multiple compilation platforms, and the compilation path of each compilation platform is obtained through a mapping table, so that one handheld device can compile applications produced by multiple vendors.
  • FIG. 1 is a block diagram of a compiling system for multiple compiling platforms provided by an embodiment of the present invention
  • FIG. 2 is a message passing diagram of a compiling process provided by an embodiment of the present invention.
  • FIG. 3 is a flowchart of a method for compiling a plurality of compiling platforms according to an embodiment of the present invention.
  • Some embodiments of the present invention are described by taking a handheld device as an example.
  • the present invention can be used not only for a user's handheld device but also for intelligent hardware products such as a television, a box, a router, a car networking system, and a virtual reality. It is also within the scope of the present invention to use the technical solution provided by the present invention for intelligent hardware products such as televisions, boxes, routers, car networking systems, virtual reality, and the like.
  • FIG. 1 is a block diagram of a compiling system for multiple compiling platforms provided by an embodiment of the present invention, such as As shown in FIG. 1, the system includes a detection module, a mapping module, and an execution module.
  • the detection module detects the compilation environment required for the compiled object; the mapping module obtains the corresponding compilation path according to the compilation environment mapping through the mapping table; the execution module obtains the corresponding configuration element according to the compilation path and performs compilation by using the configuration element.
  • the compiled object refers to a new application to be installed on the handheld device, and those skilled in the art should understand that an application needs to be compiled during the installation process, and the compiled application is referred to as a compiled object.
  • the detecting device simultaneously detects the compilation environment required by the multiple compiled objects, and maps for each compiled environment. Obtain the compilation path corresponding to each compilation environment (multiple compilation paths are obtained at this time), and then the execution module obtains corresponding configuration elements according to the obtained multiple compilation paths, that is, the configuration elements corresponding to each of the compiled objects, The time is a plurality of configuration elements, and the compiled object corresponding to each configuration element is compiled by using the obtained multiple configuration elements.
  • the compilation environment refers to the operating environment required to compile an application, such as the operating system, Office, and other software.
  • the mapping table includes a compilation path corresponding to each of the plurality of compilation environments and a mapping relationship between each of the compilation environments and the corresponding compilation path.
  • the compilation path is the path where the configuration elements can be found.
  • a compilation environment maps to a compilation path.
  • the mapping table stores such a mapping relationship and stores the specific content of each compilation path (herein referred to as the compilation path). ).
  • the compiling system for multiple compiling platforms further includes a storage module, configured to store configuration elements of each of the plurality of compiling environments, and the respective configuration elements of each compiling environment are separately stored. In different folders, each compilation environment has a different compilation path. Configuration elements include configuration files and compilation tools, and multiple compilations Each compilation platform in the translation platform corresponds to a compilation environment.
  • each compilation environment may have one or more configuration elements. If a compilation environment corresponds to a configuration element, the mapping module obtains a compilation path according to the compilation environment through the mapping table. The execution module obtains the corresponding configuration element through the compilation path and uses the configuration element to execute the compilation process; if a compilation environment corresponds to multiple configuration elements, the mapping module obtains multiple compilation paths according to the compilation environment through the mapping table, and the execution module passes the A plurality of compilation paths respectively obtain corresponding plurality of configuration elements and perform a compilation process by using the plurality of configuration elements.
  • the configuration file and the compilation tool included in the configuration element may be one or more, that is, one configuration element may include one configuration file and one configuration tool, and may also include one configuration file and multiple configuration tools. It may include multiple profiles and one configuration tool, and may include multiple profiles and multiple configuration tools.
  • FIG. 2 is a message passing diagram of a compiling process according to an embodiment of the present invention.
  • the operations performed by the detecting module and the executing module described above are performed on the client side, and the operations performed by the mapping module are performed on the server side.
  • the storage module is set on the server side.
  • the client when compiling the compiled object, the client detects the compilation environment required by the compiled object, and sends the detected information of the required compilation environment as a message to the client, and the client receives the inclusion. After the message of the required compilation environment, the mapping path corresponding to the compilation environment is found through the mapping table, that is, the path of the corresponding configuration element is obtained through the lookup table, that is, the compilation path is generated, and the compiled path is sent as a message. To the client, after receiving the message including the compilation path, the client requests the configuration element from the client according to the received compilation path, and after receiving the request, the server finds the corresponding configuration element in the storage module and sends it to the client. On the client side, the client performs the compilation process using the received configuration elements.
  • the operations performed include detecting the compilation environment required to compile the object, and sending a message including the required compilation environment to the server, including the compilation path sent by the server (may be one, or possibly more)
  • the message is then sent to the server to request a configuration element, and the compilation process is executed if the configuration element returned by the server is received.
  • the operations performed include: after receiving the message including the compilation environment, obtaining the compilation path (possibly one or more) through the mapping table mapping, and then sending the message including the mapping path to the client, where The corresponding configuration element is sent to the client after receiving the message requesting the configuration element.
  • the client can include all the information of the required compilation environment in a message and send it to the client. , can also be sent in multiple messages, each message includes a compilation environment information.
  • the multiple compilation paths may be sent by one message, or may be sent separately in multiple messages, and each message includes a compilation path.
  • the client may send a request for all configuration elements to the server through a message, or may send them separately in multiple messages, or each message may include a request for a configuration element. .
  • FIG. 3 is a flowchart of a compiling method for multiple compiling platforms according to an embodiment of the present invention. As shown in FIG. 3, the method includes:
  • Step 301 detecting a compilation environment required to compile the object.
  • the handheld device only installs an application at the current moment, only one compiled object needs to be compiled, then only one compiled object needs to be detected for the required compilation environment (may be one or more). If you are installing multiple apps at the same time, you need to target multiple
  • the compiled object detects the compilation environment separately, which will also get information about multiple compilation environments.
  • Step 302 Obtain a corresponding compilation path according to the compilation environment mapping by using a mapping table.
  • each compilation environment can map at least one compilation path (possibly one or more) in the mapping table, so multiple compilation environments can map multiple compilation paths in the mapping table.
  • Step 303 Obtain a corresponding configuration element according to the compilation path and perform compilation by using the configuration element.
  • the corresponding configuration elements are obtained according to the compilation path (may be one or more, but one configuration element or multiple configuration elements are stored in the one compilation path, It is easy to understand that there is only one compilation path here and the compilation is performed using this configuration element.
  • corresponding configuration elements that is, multiple configuration elements, are obtained according to different compilation paths, and compilation is performed by using the obtained multiple configuration elements.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

本发明实施例涉及针对多个编译平台的编译技术领域,公开了一种针对多个编译平台的编译系统和方法,该系统包括:检测模块,检测编译对象所需的编译环境;映射模块,通过映射表根据所述编译环境映射得到相应的编译路径;以及执行模块,根据所述编译路径得到相应的配置要素并利用该配置要素执行编译。本发明实施例将多个编译平台的配置要素集成在一起,每一个编译平台的编译路径通过映射表得到,以使得一个手持设备可以编译多个厂商出品的应用。

Description

一种针对多个编译平台的编译系统和方法
交叉引用
本申请引用于2016年03月29日递交的第201610187396.4号中国专利申请,其通过引用被全部并入本申请。
技术领域
本专利申请涉及针对多个编译平台的编译技术,具体地,涉及一种针对多个编译平台的编译系统和方法。
背景技术
现在的智能手持设备像计算机一样具有独立的操作系统,独立的运行空间,可以由用户自行安装软件、游戏、导航等应用,并可以通过移动通讯网络来实现无线网络接入。
发明人在实现本发明的过程中发现,在安装新的应用的过程中,服务器需要对其进行编译,编译是从源语言编写的源程序产生目标程序的过程,是用编译程序产生目标程序的动作。编译就是把高级语言变成计算机可以识别的2进制语言,编译程序把人们熟悉的语言转换成机器可识别的语言。编译程序把一个源程序翻译成目标程序的工作过程分为五个阶段:词法分析、语法分析、语义检查和中间代码生成、代码优化、目标代码生成。主要是进行词法分析和语法分析,又称为源程序分析,如果分析过程中发现有语法错误,就会给出提示信息。如果在安装新的应用的过程中不能完成编译过程,也就无法实现安装。
现有技术中,每个厂商都有自己的编译平台,而各个厂商的编译平台是相互独立的,每个厂商的编译平台只能编译自己出品的应用,也就是说A厂商的编译平台不能用来编译B厂商出品的应用,而一个手持设备仅仅能安装一个用于编译的芯片,即一个手持设备仅能具有一个编译平台。如果用户希望使用自己的手持设备(例如,A厂商生产)下载其他厂商出品(例如,B厂 商出品)的应用就不可以,这为用户带来了极大的不便。
发明内容
本发明实施例的目的是提供一种针对多个编译平台的编译系统和方法,用于解决对需要不同编译平台的应用进行编译的问题。
为了实现上述目的,本发明一个实施例提供了一种针对多个编译平台的编译系统,该系统包括:检测模块,检测编译对象所需的编译环境;映射模块,通过映射表根据所述编译环境映射得到相应的编译路径;以及执行模块,根据所述编译路径得到相应的配置要素并利用该配置要素执行编译。
在一个实施例中,所述映射表包括分别与多个编译环境中的每一个编译环境对应的编译路径及每一个编译环境与相应的编译路径之间的映射关系。
在一个实施例中,该系统还包括:存储模块,用于存储多个编译环境中的每一个编译环境的配置要素,每一个编译环境各自的配置要素分别存储在不同的文件夹中,从而每一个编译环境各自具有不同的编译路径。
在一个实施例中,所述配置要素包括配置文件和编译工具。
在一个实施例中,所述多个编译平台中的每一个编译平台对应一个编译环境。
相应地,本发明一个实施例还提供了一种针对多个编译平台的编译方法,该方法包括:检测编译对象所需的编译环境;通过映射表根据所述编译环境映射得到相应的编译路径;以及根据所述编译路径得到相应的配置要素并利用该配置要素执行编译。
在一个实施例中,所述映射表包括分别与多个编译环境中的每一个编译环境对应的编译路径及每一个编译环境与相应的编译路径之间的映射关系。
在一个实施例中,该方法还包括:存储多个编译环境中的每一个编译环境的配置要素,每一个编译环境各自的配置要素分别存储在不同的文件夹中, 从而每一个编译环境各自具有不同的编译路径。
在一个实施例中,所述配置要素包括配置文件和编译工具。
在一个实施例中,所述多个编译平台中的每一个编译平台对应一个编译环境。
通过上述技术方案,本发明部分实施例将多个编译平台的配置要素集成在一起,每一个编译平台的编译路径通过映射表得到,以使得一个手持设备可以编译多个厂商出品的应用。
本发明的其它特征和优点将在随后的具体实施方式部分予以详细说明。
附图说明
附图是用来提供对本发明部分实施例的进一步理解,并且构成说明书的一部分,与下面的具体实施方式一起用于解释本发明,但并不构成对本发明的限制。在附图中:
图1是本发明一个实施例提供的针对多个编译平台的编译系统的框图;
图2是本发明一个实施例提供的编译过程的消息传递图示;以及
图3是本发明一个实施例提供的针对多个编译平台的编译方法的流程图。
具体实施方式
以下结合附图对本发明部分实施例的具体实施方式进行详细说明。应当理解的是,此处所描述的具体实施方式仅用于说明和解释本发明,并不用于限制本发明。
本发明部分实施例以手持设备为例进行说明,但是,本发明不仅可以用户手持设备,还可以用于电视、盒子、路由器、车联网系统、虚拟现实等智能硬件产品。将本发明提供的技术方案用于电视、盒子、路由器、车联网系统、虚拟现实等智能硬件产品也在本发明的保护范围之内。
图1是本发明一个实施例提供的针对多个编译平台的编译系统的框图,如 图1所示,该系统包括检测模块、映射模块和执行模块。检测模块检测编译对象所需的编译环境;映射模块通过映射表根据编译环境映射得到相应的编译路径;执行模块,根据编译路径得到相应的配置要素并利用该配置要素执行编译。
编译对象指的是所要在手持设备上安装的新应用,本领域技术人员应当理解,在一个应用被安装的过程中需要对其进行编译,这里将所编译的应用称为编译对象。
一般情况下,用户在安装多个应用的时候,会一个一个地安装,也就是说一个手持设备在同一时间仅会对一个编译对象进行编译,检测模块就检测正在被编译的编译对象所需的编译环境。
然而,如果用户同时安装多个应用,也就是一个手持设备同时在对多个编译对象进行编译,那么检测装置就同时检测这多个编译对象所需的编译环境,并针对每一个编译环境来映射得到每一个编译环境所对应的编译路径(此时会得到多个编译路径),然后执行模块分别根据得到的多个编译路径得到相应的配置要素,即与每一个编译对象对应的配置要素,此时为多个配置要素,并利用得到的多个配置要素对每一个配置要素所对应的编译对象进行编译。
编译环境是指编译一个应用所需要的运行环境,例如操作系统、Office及其他软件。映射表包括分别与多个编译环境中的每一个编译环境对应的编译路径及每一个编译环境与相应的编译路径之间的映射关系。这里编译路径是可以找到配置要素的路径,一个编译环境会映射到一个编译路径,映射表中就存储了这样的一种映射关系,并存储了每一个编译路径的具体内容(这里简称为编译路径)。
本发明一个实施例提供的针对多个编译平台的编译系统还包括存储模块,该存储模块用于存储多个编译环境中的每一个编译环境的配置要素,每一个编译环境各自的配置要素分别存储在不同的文件夹中,从而每一个编译环境各自具有不同的编译路径。配置要素包括配置文件和编译工具,并且多个编 译平台中的每一个编译平台对应一个编译环境。
本领域技术人员应当理解,每一个编译环境所对应的配置要素可能为一个,也可能为多个,如果一个编译环境对应一个配置要素,那么映射模块根据该编译环境通过映射表得到一个编译路径,执行模块通过该编译路径得到相应的配置要素并利用该配置要素执行编译过程;如果一个编译环境对应多个配置要素,那么映射模块根据该编译环境通过映射表得到多个编译路径,执行模块通过该多个编译路径分别得到相应的多个配置要素并利用该多个配置要素执行编译过程。
其中,配置要素所包括的配置文件和编译工具都可能是一个或多个,也就是说,一个配置要素可能包括一个配置文件和一个配置工具,也可能包括一个配置文件和多个配置工具,也可能包括多个配置文件和一个配置工具,还可能包括多个配置文件和多个配置工具。
本领域技术人员应当理解,配置要素所包括的配置文件和编译工具是一个还是多个是由所要编译的编译对象的需求来决定的,对于一个编译对象所需要什么样的配置要素不是本发明的发明点,这属于现有技术中的内容,于此不予赘述。
图2是本发明一个实施例提供的编译过程的消息传递图示,以上所描述的检测模块和执行模块所进行的操作是在客户端侧完成的,映射模块进行的操作是在服务器侧完成的,存储模块设置在服务器端。
参照图2,在需要对编译对象进行编译时,客户端检测该编译对象所需的编译环境,并将检测到的所需的编译环境的信息作为消息发送给客户端,客户端在接收到包括所需的编译环境的消息后通过映射表查找到该编译环境所对应的编译路径,也就是说通过查找表查找到能够得到相应的配置要素的路径,即编译路径,并将编译路径作为消息发送给客户端,客户端在接收到包括编译路径的消息之后根据所接收到的编译路径向客户端请求配置要素,服务器在接收到该请求之后在存储模块中找到相应的配置要素并将其发送给客户端,客户端利用所接收到配置要素执行编译过程。
针对客户端,所执行的操作包括检测编译对象所需的编译环境,并向服务器发送包括所需的编译环境的消息,在接收到服务器所发送的包括编译路径(可能为一个,也可能为多个)的消息之后再向服务器发送请求配置要素的请求,在接收到服务器返回的配置要素的情况下执行编译过程。
针对服务器,所执行的操作包括在接收到包括编译环境的消息之后,通过映射表映射得到编译路径(可能为一个,也可能为多个),然后将包括映射路径的消息发送给客户端,在接收到请求配置要素的消息之后将相应的配置要素发送给客户端。
在同时对多个编译对象进行编译的情况下,在所需的编译环境也为多个,这种情况下,客户端可以将所需的所有编译环境的信息包括在一个消息中发送给客户端,也可以分别在多个消息中发送,每个消息中包括一个编译环境的信息。
在编译路径为多个的情况下,那么这多个编译路径可以通过一个消息发送给,也可以分别在多个消息中发送,每一个消息中包括一个编译路径。
在配置要素为多个的情况下,客户端可以通过一个消息将对所有的配置要素的请求发送给服务器,也可以分别在多个消息中发送,也可以每一个消息包括对一个配置要素的请求。
本领域技术人员应当理解,这里当然得到的不会是编译环境,而是编译环境的特定标识,本发明部分实施例中为了便于描述,将编译环境的特定标识简要称为编译环境。
图3是本发明一个实施例提供的针对多个编译平台的编译方法的流程图,如图3所示,该方法包括:
步骤301,检测编译对象所需的编译环境。
在手持设备仅在当前时刻安装一个应用的情况下,仅需要对一个编译对象进行编译,那么仅需要针对该一个编译对象来检测其所需的编译环境(可能为一个也可能为多个),如果同时在安装多个应用,那么就需要针对多个
编译对象分别检测编译环境,这样也就会得到多个编译环境的相关信息。
步骤302,通过映射表根据编译环境映射得到相应的编译路径。
在检测到一个编译环境的情况下,通过映射表得到该编译环境对应的编译路径(在需要多个配置要素的情况下,可能会存在多个编译路径),在检测得到多个编译环境的情况下,每一个编译环境可以在映射表中映射得到至少一个编译路径(可能为一个也可能为多个),那么多个编译环境就可以在映射表中映射得到多个编译路径。
步骤303,根据编译路径得到相应的配置要素并利用该配置要素执行编译。
在仅有一个编译路径的情况下,根据该编译路径得到相应的配置要素(可能为一个也可能为多个,但无论是一个配置要素还是多个配置要素,都存储在该一个编译路径中,容易理解的是,这里仅有一个编译路径)并利用该配置要素执行编译。在有多个编译路径的情况下,根据不同的编译路径得到相应的配置要素,即多个配置要素,并利用所得到的多个配置要素执行编译。
具体采用什么样的编译环境及怎样利用配置要素执行编译为现有技术,不予赘述。
需要说明的是,本发明部分实施例提供的针对多个编译平台的编译方法的具体细节及益处与本发明提供的针对多个编译平台的编译系统类似,可以参照上文中的描述,于此不予赘述。
以上结合附图详细描述了本发明部分实施例的优选实施方式,但是,本发明并不限于上述实施方式中的具体细节,在本发明的技术构思范围内,可以对本发明的技术方案进行多种简单变型,这些简单变型均属于本发明的保护范围。
通过本发明部分实施例提供的技术方案,可以实现在一个平台上对需要各种不同的编译环境的应用进行编译,也就是说,可以在一个手持设备上,不仅可以实现对A厂商出品的应用进行编译,也可以实现对B厂商出品的应用进行编译,实现了多个平台、多个环境的集成,为用户使用不同厂商出品的应用带来了极大的便利。
另外需要说明的是,在上述具体实施方式中所描述的各个具体技术特征,在不矛盾的情况下,可以通过任何合适的方式进行组合。为了避免不必要的重复,本发明对各种可能的组合方式不再另行说明。
此外,本发明的各种不同的实施方式之间也可以进行任意组合,只要其不违背本发明的思想,其同样应当视为本发明所公开的内容。

Claims (10)

  1. 一种针对多个编译平台的编译系统,包括:
    检测模块,检测编译对象所需的编译环境;
    映射模块,通过映射表根据所述编译环境映射得到相应的编译路径;以及
    执行模块,根据所述编译路径得到相应的配置要素并利用该配置要素执行编译。
  2. 根据权利要求1所述的系统,其中,所述映射表包括分别与多个编译环境中的每一个编译环境对应的编译路径及每一个编译环境与相应的编译路径之间的映射关系。
  3. 根据权利要求2所述的系统,其中,该系统还包括:
    存储模块,用于存储多个编译环境中的每一个编译环境的配置要素,每一个编译环境各自的配置要素分别存储在不同的文件夹中,从而每一个编译环境各自具有不同的编译路径。
  4. 根据权利要求1,2或3所述的系统,其中,所述配置要素包括配置文件和编译工具。
  5. 根据权利要求1到4任一项所述的系统,其中,所述多个编译平台中的每一个编译平台对应一个编译环境。
  6. 一种针对多个编译平台的编译方法,包括:
    检测编译对象所需的编译环境;
    通过映射表根据所述编译环境映射得到相应的编译路径;以及
    根据所述编译路径得到相应的配置要素并利用该配置要素执行编译。
  7. 根据权利要求6所述的方法,其特征在于,所述映射表包括分别与多个编译环境中的每一个编译环境对应的编译路径及每一个编译环境与相5应的编译路径之间的映射关系。
  8. 根据权利要求7所述的方法,其中,该方法还包括:存储多个编译环境中的每一个编译环境的配置要素,每一个编译环境各自的配置要素分别存储在不同的文件夹中,从而每一个编译环境各自具有不10同的编译路径。
  9. 根据权利要求6,7或8所述的方法,其中,所述配置要素包括配置文件和编译工具。
  10. 根据权利要求6到9任一项所述的方法,其中,所述多个编译平台中的每一个编译平台对应一个编译环境。
PCT/CN2016/089545 2016-03-29 2016-07-10 一种针对多个编译平台的编译系统和方法 Ceased WO2017166529A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/242,534 US20170286074A1 (en) 2016-03-29 2016-08-21 Electronic Device and Method for Multiple Compiling Platforms

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610187396.4A CN105893105A (zh) 2016-03-29 2016-03-29 一种针对多个编译平台的编译系统和方法
CN201610187396.4 2016-03-29

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/242,534 Continuation US20170286074A1 (en) 2016-03-29 2016-08-21 Electronic Device and Method for Multiple Compiling Platforms

Publications (1)

Publication Number Publication Date
WO2017166529A1 true WO2017166529A1 (zh) 2017-10-05

Family

ID=57014512

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/089545 Ceased WO2017166529A1 (zh) 2016-03-29 2016-07-10 一种针对多个编译平台的编译系统和方法

Country Status (2)

Country Link
CN (1) CN105893105A (zh)
WO (1) WO2017166529A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111008016A (zh) * 2019-11-29 2020-04-14 宝付网络科技(上海)有限公司 一种基于docker容器多环境编译系统及方法
CN111124423A (zh) * 2019-12-25 2020-05-08 上海米哈游天命科技有限公司 一种基于多平台的编译检测方法、装置、服务器及介质
CN112015428A (zh) * 2020-08-21 2020-12-01 广州欢网科技有限责任公司 编译环境创建方法、装置及主机
CN115827056A (zh) * 2023-02-01 2023-03-21 北京乐研科技股份有限公司 一种配置多种编译环境变换的方法

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107656739B (zh) * 2017-11-07 2021-03-12 奇安信科技集团股份有限公司 基于windows系统的代码编译方法及装置
CN110109673B (zh) * 2019-04-25 2020-10-30 武汉大学 一种基于北斗亚纳秒级高精度授时的编译器检测装置及方法
CN115344268A (zh) * 2022-08-19 2022-11-15 广州路派电子科技有限公司 一种多平台嵌入式开发环境编译方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101697135A (zh) * 2009-10-28 2010-04-21 北京东方网力科技有限公司 一种编译程序的方法及装置
CN101859244A (zh) * 2009-04-10 2010-10-13 中兴通讯股份有限公司 多工具链工程构建方法及系统
CN102830981A (zh) * 2012-09-12 2012-12-19 上海斐讯数据通信技术有限公司 一种用于嵌入式系统软件开发工具的实现方法
CN103713889A (zh) * 2012-09-29 2014-04-09 三亚中兴软件有限责任公司 一种应用的开发、编译和调试方法以及装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8458661B2 (en) * 2006-03-31 2013-06-04 Ebay Inc. Distributed parallel build system
US8365153B2 (en) * 2007-10-26 2013-01-29 Qualcomm Incorporated Server-based code compilation
TWI358648B (en) * 2007-11-29 2012-02-21 Wistron Corp A system for common compiler service based on the

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101859244A (zh) * 2009-04-10 2010-10-13 中兴通讯股份有限公司 多工具链工程构建方法及系统
CN101697135A (zh) * 2009-10-28 2010-04-21 北京东方网力科技有限公司 一种编译程序的方法及装置
CN102830981A (zh) * 2012-09-12 2012-12-19 上海斐讯数据通信技术有限公司 一种用于嵌入式系统软件开发工具的实现方法
CN103713889A (zh) * 2012-09-29 2014-04-09 三亚中兴软件有限责任公司 一种应用的开发、编译和调试方法以及装置

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111008016A (zh) * 2019-11-29 2020-04-14 宝付网络科技(上海)有限公司 一种基于docker容器多环境编译系统及方法
CN111008016B (zh) * 2019-11-29 2024-05-14 宝付网络科技(上海)有限公司 一种基于docker容器多环境编译系统及方法
CN111124423A (zh) * 2019-12-25 2020-05-08 上海米哈游天命科技有限公司 一种基于多平台的编译检测方法、装置、服务器及介质
CN111124423B (zh) * 2019-12-25 2023-06-13 上海米哈游天命科技有限公司 一种基于多平台的编译检测方法、装置、服务器及介质
CN112015428A (zh) * 2020-08-21 2020-12-01 广州欢网科技有限责任公司 编译环境创建方法、装置及主机
CN115827056A (zh) * 2023-02-01 2023-03-21 北京乐研科技股份有限公司 一种配置多种编译环境变换的方法

Also Published As

Publication number Publication date
CN105893105A (zh) 2016-08-24

Similar Documents

Publication Publication Date Title
WO2017166529A1 (zh) 一种针对多个编译平台的编译系统和方法
CN111209004B (zh) 代码转换方法及装置
EP3588285B1 (en) Sequence optimizations in a high-performance computing environment
CN116074208B (zh) 一种多模态网络的模态部署方法及模态部署系统
US20180295194A1 (en) Techniques for supporting remote micro-services as native functions in spreadsheet applications
US9405518B2 (en) Leveraging legacy applications for use with modern applications
US9335988B2 (en) Managing build variants in a common repository
US20200153699A1 (en) Generating and implementing a platform-neutral cloud-native application model
CN110058861B (zh) 源码处理方法及装置、存储介质、电子设备
CN106325965B (zh) 操作系统的编译方法和装置
KR102156371B1 (ko) 네이티브 빌드 기반의 임베디드 소프트웨어 개발 환경을 지원하기 위한 임베디드 소프트웨어 개발 도구 제공 방법 및 장치
US20190273772A1 (en) Data processing method and apparatus in service-oriented architecture system, and the service-oriented architecture system
US20160132303A1 (en) Multi-sized data types for managed code
KR102055613B1 (ko) 스마트 디바이스 및 센서노드 통합 응용프로그램 업데이트 장치 및 방법
CN103677814A (zh) 一种程序获取方法、装置及系统
CN111142849B (zh) 流程处理方法、装置、存储介质及处理器
EP3438818B1 (en) Method and device for compiling computer language
CN106569843A (zh) 一种生成ota中间包的方法及装置
CN105447040B (zh) 二进制文件管理、更新方法、装置以及系统
CN104980511A (zh) 一种游戏数据访问方法、系统以及游戏网页服务器
US10606569B2 (en) Declarative configuration elements
CN104077158A (zh) 安装插件的方法及装置
US20170286074A1 (en) Electronic Device and Method for Multiple Compiling Platforms
CN117785187A (zh) 基于命令行的配置管理方法及系统、电子设备、存储介质
CN105573823A (zh) 一种资源锁定方法及装置

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16896301

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16896301

Country of ref document: EP

Kind code of ref document: A1