发明名称 Method and apparatus for generating executable file or multi-instance service
摘要 The present invention relates to a method and an apparatus for generating an executable file of a multi-instance service. The method includes: performing compilation for a source file corresponding to a multi-instance service, to obtain a first-class object file, where the multi-instance service includes N instances, and N is a natural number greater than or equal to 2; performing an object copy of the first-class object file N−1 times, to obtain N−1 new first-class object files; and performing linking to the first-class object file and the N−1 new first-class object files, to generate an executable file. In the present invention, an executable file is generated by performing mirroring and linking processing for an object file obtained by compilation, thereby reducing a development cost and a maintenance cost of software source code.
申请公布号 US9575780(B2) 申请公布日期 2017.02.21
申请号 US201414341337 申请日期 2014.07.25
申请人 Huawei Technologies Co., Ltd. 发明人 Liu Kai;Pan Shilin;Xia Miaofang
分类号 G06F9/45;G06F9/445;G06F9/44;H04M1/725 主分类号 G06F9/45
代理机构 代理人
主权项 1. A method for generating an executable file of a multi-instance service, comprising: corresponding a source file to communications software of a multi-Subscriber Identity Module (SIM) multi-standby terminal; receiving supported service information of a primary user identity card of the multi-SIM multi-standby terminal and supported service information of a secondary user identity card of the multi-SIM multi-standby terminal; analyzing the supported service information of the primary user identity card and the supported service information of the secondary user identity card, to obtain a multi-instance service; performing compilation for the source file corresponding to the multi-instance service to obtain a first-class object file, wherein the multi-instance service comprises N instances, and N is a natural number greater than or equal to 2; performing an object copy of the first-class object file N−1 times, to obtain N−1 new first-class object files; and performing linking to the first-class object file and the N−1 new first-class object files, to generate an executable file.
地址 Shenzhen CN