CN104346150B - The generation method and device of the executable file of many example traffics - Google Patents
The generation method and device of the executable file of many example traffics Download PDFInfo
- Publication number
- CN104346150B CN104346150B CN201310325803.XA CN201310325803A CN104346150B CN 104346150 B CN104346150 B CN 104346150B CN 201310325803 A CN201310325803 A CN 201310325803A CN 104346150 B CN104346150 B CN 104346150B
- Authority
- CN
- China
- Prior art keywords
- file
- traffics
- many example
- business information
- file destination
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44536—Selecting among different versions
- G06F9/44542—Retargetable
- G06F9/44547—Fat binaries
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/54—Link editing before load time
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
- G06F9/454—Multi-language systems; Localisation; Internationalisation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
Abstract
The present invention relates to a kind of generation method of executable file of many example traffics and device.This method includes:Source file corresponding to many example traffics, which is compiled, obtains first kind file destination, and many example traffics include N number of example, and N is the natural number more than or equal to 2;1 mirror-image copies of N are carried out to the first kind file destination, the new first kind file destinations of N 1 are obtained;The first kind file destination new to the first kind file destination, N 1 is linked, and generates executable file.The present invention carries out mirror image and link processing by the file destination obtained to compiling and generates executable file, reduces the development cost and maintenance cost of software source code.
Description
Technical field
The present invention relates to communication technical field, more particularly to a kind of generation method of the executable file of many example traffics and
Device.
Background technology
With developing rapidly for the communication technology, and requirement more and more higher of the people to communication equipment, occur in that at present double
Card double-standby terminal and Multi-card multi-standby terminal, dual-card dual-standby terminal refers to that two Subscriber Identity Modules can be set in a terminal, such as
Subscriber identification module (User Identity Module, UIM) is blocked or global customers identification module (Universal
Subscriber Identity Module, USIM) card or client identification module (Subscriber Identity Module,
SIM) block, and two Subscriber Identity Modules, all in holding state, Multi-card multi-standby terminal is exactly on the basis of dual-card dual-standby terminal
It is upper to continue to increase Subscriber Identity Module, and these Subscriber Identity Modules can be simultaneously standby.
Under the prior art, it is necessary to develop the software of the function of the Subscriber Identity Module of a set of support Multi-card multi-standby terminal again
Source code supports the work of Subscriber Identity Module in Multi-card multi-standby terminal.The shortcoming of prior art is, (1) software development is intrinsic
Construction cycle is long, after code development comes out, and defect can not Fast Convergent in code, it is impossible to be quickly obtained what is met customer need
Product software;(2) on the basis of existing support single deck tape-recorder list treats the software source code of Subscriber Identity Module function of terminal, redevelopment
The source code of a set of multi-card multi-standby, the code of two sets of products can not merge, it is therefore desirable to safeguard two sets of codes, code maintenance difficulty
Increase, maintenance cost is high.This problem is not limited only to be present in the code maintenance of Multi-card multi-standby terminal, also in other many examples
Software application in exist.
The content of the invention
It is soft to reduce the embodiments of the invention provide a kind of generation method of executable file of many example traffics and device
The development cost and maintenance cost of part source code, shorten the construction cycle of software source code.
In a first aspect, the embodiments of the invention provide a kind of generation method of the executable file of many example traffics, it is described
Method includes:
Source file corresponding to many example traffics carries out once compiling and obtains first kind file destination, many example traffics
Including N number of example, wherein, N is the natural number more than or equal to 2;
N-1 mirror-image copies are carried out to the first kind file destination, N-1 new first kind file destinations are obtained;
The first kind file destination, N-1 new first kind file destinations are linked, executable file is generated.
It is described that N-1 mirror-image copies tool is carried out to the first kind file destination in the first possible implementation
Body is:The processing of N-1 renaming is carried out to the global symbol in the first kind file destination, so as to obtain N-1 the newly
One class file destination;Or N-1 localization process is carried out to the global symbol in the first kind file destination, so as to obtain
N-1 new first kind file destinations.
With reference to the first possible implementation of first aspect or first aspect, in second of possible implementation
In, methods described also includes:Source file corresponding to single example traffic, which is compiled, obtains Equations of The Second Kind file destination;It is described to institute
State first kind file destination, N-1 new first kind file destinations to be linked, generation executable file includes:To described
One class file destination, N-1 new first kind file destinations, and the Equations of The Second Kind file destination are linked, and generation is described
Executable file.
With reference to first aspect or first aspect the first, second of possible implementation, it is possible at the third
In implementation, it is described the corresponding source file of many example traffics is compiled obtain first kind file destination before also include:
Receive the business information of user's input;The business information is analyzed, many example traffics are obtained.
With reference to the third possible implementation of first aspect, in the 4th kind of possible implementation, the source document
Part is the corresponding source file of communication software of Multi-card multi-standby terminal;The business information for receiving user's input includes:Receive institute
State the support business information of primary user's identification card of Multi-card multi-standby terminal, and from the support business information of Subscriber Identity Module;Institute
State and the business information is analyzed, obtaining many example traffics includes:To the support business of primary user's identification card
Information and support business information from Subscriber Identity Module are analyzed, and obtain many example traffics.
With reference to the third possible implementation of first aspect, in the 5th kind of possible implementation, the source document
Part is the corresponding source file of Subscriber Identity Module management software of multi-card terminal;The business information for receiving user's input includes:
Receive the business information of primary user's identification card of the multi-card terminal, and from the business information of Subscriber Identity Module;It is described to institute
State business information to be analyzed, obtaining many example traffics includes:Business information to primary user's identification card and from
The business information of family identification card is analyzed, and obtains many example traffics.
With reference to the third possible implementation of first aspect, in the 6th kind of possible implementation, the source document
Part is the corresponding source file of webcam driver program of multi-cam terminal;The business information for receiving user's input includes:
Receive the webcam driver information of the multi-cam terminal;It is described that business information is analyzed, obtain many example industry
Business includes:The activation bit of the multi-cam terminal is analyzed, many example traffics are obtained.
Second aspect, it is described the embodiments of the invention provide a kind of generating means of the executable file of many example traffics
Device includes:
Compilation unit, first kind file destination is obtained for carrying out once compiling to the corresponding source file of many example traffics,
Many example traffics include N number of example, wherein, N is the natural number more than or equal to 2, and the first kind file destination is transmitted
To mirror image unit;
Mirror image unit, the first kind file destination for receiving the compilation unit transmission, to first classification
Mark file and carry out N-1 mirror-image copies, N-1 new first kind file destinations are obtained, by the first kind file destination and institute
N-1 new first kind file destinations are stated to transmit to link unit;
Link unit, the first kind file destination and the N-1 for receiving mirror image unit transmission are new
The first kind file destination, N-1 new first kind file destinations are linked, generation can be held by first kind file destination
Style of writing part.
In the first possible implementation, the mirror image unit specifically for:To in the first kind file destination
Global symbol carry out the processing of N-1 renaming, so as to obtain the individual new first kind file destinations of N-1;Or to described first
Global symbol in class file destination carries out N-1 localization process, so as to obtain N-1 new first kind file destinations.
With reference to the first possible implementation of second aspect or second aspect, in second of possible implementation
In, the compilation unit is additionally operable to:Source file corresponding to single example traffic, which is compiled, obtains Equations of The Second Kind file destination, by institute
Equations of The Second Kind file destination is stated to transmit to the link unit;The link unit specifically for:Receive the compilation unit transmission
The Equations of The Second Kind file destination, first kind file destinations new to the first kind file destination, N-1, and described the
Two class file destinations are linked, and generate the executable file.
With reference to second aspect or second aspect the first, second of possible implementation, it is possible at the third
In implementation, described device also includes receiving unit, analytic unit, the receiving unit, the industry for receiving user's input
Business information, the business information is transmitted to analytic unit;The analytic unit, the institute for receiving the receiving unit transmission
Business information is stated, the business information is analyzed, many example traffics are obtained.
With reference to the third possible implementation of second aspect, in the 4th kind of possible implementation, the source document
Part is the corresponding source file of communication software of Multi-card multi-standby terminal;The receiving unit specifically for:Receive the multi-card multi-standby
The support business information of primary user's identification card of terminal, and from the support business information of Subscriber Identity Module;The analytic unit
Specifically for:Support business information to primary user's identification card and the support business information from Subscriber Identity Module are divided
Analysis, obtains many example traffics.
With reference to the third possible implementation of second aspect, in the 5th kind of possible implementation, the source document
Part is the corresponding source file of Subscriber Identity Module management software of multi-card terminal;The receiving unit specifically for:Receive described many
The business information of primary user's identification card of card terminal, and from the business information of Subscriber Identity Module;The analytic unit is specifically used
In:Business information to primary user's identification card and the business information from Subscriber Identity Module are analyzed, and obtain many example industry
Business.
With reference to the third possible implementation of second aspect, in the 6th kind of possible implementation, the source document
Part is the corresponding source file of webcam driver program of multi-cam terminal;The receiving unit specifically for:Receive described many
The webcam driver information of camera terminal;The analytic unit specifically for:To the activation bit of the multi-cam terminal
Analyzed, obtain many example traffics.
The generation method and device of the executable file of many example traffics provided in an embodiment of the present invention, by many examples
The corresponding source file of business, which is compiled, obtains file destination, then carries out multiple mirror image processing to the file destination, obtains many
Individual new file destination, and it is that can obtain executable file to link generated file destination.In the embodiment of the present invention, more in fact
Example business refers to the business applied to multiple scenes, for example, the communication software (Modem Software) of Multi-card multi-standby terminal,
Multiple cards all support global system for mobile communications (Global System of Mobile communication, GSM) network
When, GSM is exactly a kind of many parts of examples of needs, and gsm service is exactly a kind of many example traffics applied to multiple scenes.Thus, originally
Inventive embodiments are realized once to be compiled to the source code of many example traffics, and the file destination by being obtained to compiling
Carry out mirror image and link processing and generate executable file, reduce the development cost and maintenance cost of software source code, contract
The short construction cycle of software source code.
Brief description of the drawings
Fig. 1 is a kind of generation method flow chart of the executable file of many example traffics provided in an embodiment of the present invention;
Fig. 2 is a kind of generation method schematic diagram of the executable file of many example traffics provided in an embodiment of the present invention;
Fig. 3 is the generation method schematic diagram of the executable file of another many example traffics provided in an embodiment of the present invention;
Fig. 4 is a kind of generating means schematic diagram of the executable file of many example traffics provided in an embodiment of the present invention;
Fig. 5 is a kind of terminal schematic diagram provided in an embodiment of the present invention.
Embodiment
With reference to the accompanying drawing in the embodiment of the present invention, clear, complete retouch is carried out to the scheme in the embodiment of the present invention
State, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Based on of the invention real
Example is applied, all other embodiment that those of ordinary skill in the art are obtained under the premise of creative work is not made all belongs to
In the scope of protection of the invention.
Some words being related in the present embodiment are explained first.Example is a kind of software program, is used to
Simulate present in real world, the specific or thing with certain class prototype, be a kind of software simulator.Source file refers to
The code file write out with assembler language and high-level language.File destination refers to that source file passes through the energy quilt that compiler is produced
CPU Direct Recognition binary codes.Link (link), be primarily referred to as parsing undefined symbolic reference, by file destination
Placeholder replaces with the tissue of the address space of each file destination in the address of symbol, and completion program.
Fig. 1 is a kind of generation method flow chart of the executable file of many example traffics provided in an embodiment of the present invention, should
The executive agent of embodiment is terminal, after the business scenario input that user is received which describes in detail terminal, according to business
Scene is compiled to source file, the method for mirror image, link to generate executable file.As shown in figure 1, the embodiment include with
Lower step:
Step 101, once compiling is carried out to the corresponding source file of many example traffics and obtains first kind file destination, it is described many
Example traffic includes N number of example, wherein, N is the natural number more than or equal to 2.
Terminal, generally refers to computer (Personal Computer, PC), and terminal is carrying out the generation of executable file
When, it is necessary first to judge the scene to be applied of the executable file to be generated, i.e., before generation executable file, need first
The business scenario of user's input is received, for example, the executable file is applied to the webcam driver of multi-cam terminal, and
Scene with identical webcam driver model;Or the executable file is applied to the how to be supported of Multi-card multi-standby terminal, its
Middle main card supports GSM network and UMTS (Universal Mobile Telecommunications
System, UMTS) network, two scenes from card support GSM network.Certainly, technical scheme provided in an embodiment of the present invention is simultaneously
Two Multi-card multi-standby terminals from card of a main card are not limited to, this is a kind of citing of the embodiment of the present invention.For example,
Double-card dual-standby is also believed to a kind of special multi-card multi-standby.
Wherein, after the business scenario that the executable file that terminal receives user's input is applied, source document is being carried out
Before part compiling, source file can be classified according to business scenario first, respectively many example source files and single example source
File.For example, the business scenario how to be supported of the Multi-card multi-standby terminal mentioned above, can be analyzed according to the business scenario
GSM network in the software how to be supported supports three parts of examples of needs, then GSM network supports to be many example traffics, corresponding GSM
The source file of network support is many example source files, and UMTS network is supported to need a example, then UMTS network is supported to be single
Example traffic, the source file that corresponding UMTS network is supported is single example source file.
After the business scenario applied to executable file is analyzed and source code is classified, you can right
The corresponding source file of many example traffics, which is compiled, obtains first kind file destination, in addition, if judging also have by analysis
Single example traffic, then be compiled to the corresponding source file of single example traffic and obtain Equations of The Second Kind file destination simultaneously.
Step 102, N-1 mirror-image copies are carried out to the first kind file destination, obtains N-1 new first kind targets
File.
Compiling is obtained after first kind file destination, the corresponding scene number of many examples obtained according to analysis, can be to life
Into first kind file destination carry out mirror-image copies, obtain multiple new first kind file destinations.Wherein, the method for mirror-image copies
Can be that renaming processing is carried out to the global symbol in first kind file destination, or to the overall situation in first kind file destination
Symbol is localized processing.
Step 103, the first kind file destination, N-1 new first kind file destinations are linked, generation can be held
Style of writing part.
If it should be noted that drawing also single example after being analyzed according to the corresponding business scenario of executable file
Business, then when progress link processing generates executable file, the link processing of progress is to first kind file destination, N-1
Individual new first kind file destination is linked.
The embodiment of the present invention obtains file destination by carrying out once compiling to the corresponding source file of many example traffics, then
Multiple mirror image processing is carried out to the file destination, multiple new file destinations are obtained, and the generated file destination of link is
It can obtain executable file.Thus, the embodiment of the present invention is realized once is compiled to the source code of many example traffics, and
Mirror image and link processing are carried out by the file destination obtained to compiling and executable file is generated, software source code is reduced
Development cost and maintenance cost, shorten the construction cycle of software source code.
In the embodiment of the present invention, executable file can be the communication software in Multi-card multi-standby terminal, or many cards
Subscriber Identity Module management software in multi-standby terminal, can also be the webcam driver program of multi-cam terminal, every kind of to hold
The generation of style of writing part can use two methods, and a kind of is the method for renaming, and a kind of is the method for localization, separately below
Introduce the method by both generation executable files.
Fig. 2 is a kind of generation method schematic diagram of the executable file of many example traffics provided in an embodiment of the present invention;Its
In, a kind of generation method of communication software is described, it is specific as follows:
Step 201, source file is classified.
In the present embodiment, before classifying to source file, the business information of user's input can be received first, namely
Business scenario information.When executable file is communication software, the business scenario for receiving user's input is specially:Receive
The support business information of primary user's identification card of the Multi-card multi-standby terminal, and from the support business information of Subscriber Identity Module.
When executable file is the Subscriber Identity Module management software of multi-card terminal, the business of user's input is received
Scene is specially:The business information of primary user's identification card of the multi-card terminal is received, and is believed from the business of Subscriber Identity Module
Breath.
When executable file is the webcam driver program of multi-cam terminal, the business of user's input is received
Scene is specially:Receive the webcam driver information of multi-cam terminal.
For example, business scenario is, main card supports GSM network and UMTS network, two scenes from card support GSM network.
According to business scenario, source file can be classified, for example, the Multi-card multi-standby terminal mentioned above wait to prop up more
Business scenario is held, can be analyzed the GSM network in the software how to be supported according to the business scenario and support to need three parts of realities
Example, then GSM network support is many example traffics, and the source file that corresponding GSM network is supported is many example source files, and UMTS nets
Network supports a example of needs, then UMTS network supports to be single example traffic, and the source file of corresponding UMTS network support is single
Example source file.
Step 202, sorted single example source file and many example source files are compiled respectively.
Single example goal file is obtained after being compiled to single example source file, after being compiled to many example source files
To many example goal files.
Step 203, mirror-image copies are realized by renaming global symbol therein to many example goal files.
According to the corresponding scene number N of many example traffics, N-1 global symbol renaming is carried out, N-1 new mesh are obtained
Mark file.For example, in the business scenario how to be supported of the Multi-card multi-standby terminal mentioned above, the GSM nets in software how to be supported
Network is supported applied to main card and two from card, i.e., applied to three scenes, can carry out the mirror-image copies of renaming twice, obtain
Two new many example goal files.
It should be noted that in multi-card terminal, the business that general main card is supported includes all industry supported from card
It is engaged in, therefore the source code for the business that first can also be supported main card is compiled, then analyze many in the business that main card is supported
The scene number of the number of example traffic and corresponding each many example traffics, so as to carry out the mesh of follow-up many example traffics
Mark the renaming of global symbol in file.
Step 204, link processing is carried out to each resulting file destination.
To single example goal file, obtained many example goal files are compiled, many example goals text that mirror-image copies are obtained
Part carries out link processing, obtains executable file.
Thus, the embodiment of the present invention is realized and can held by the method for the global symbol in many example goal files of renaming
The generation of style of writing part, compared with prior art, has reached the development cost and maintenance cost of reduction software source code, has shortened software
The effect of defect in the construction cycle of source code, many example source files of Fast Convergent.
The embodiment of the present invention can also realize the generation of the executable file of many example traffics by the method for localization, figure
3 be the generation method schematic diagram of the executable file of another many example traffics provided in an embodiment of the present invention, as illustrated, generation
Method is specific as follows:
Step 301, source file is classified.
In the present embodiment, before the classification of source file is performed, the business letter of executable file application can be received first
Breath, i.e. business scenario information.When executable file is communication software, the business scenario for receiving user's input is specific
For:Receive the support business information of primary user's identification card of the Multi-card multi-standby terminal, and from the support industry of Subscriber Identity Module
Business information.
When executable file is the Subscriber Identity Module management software of multi-card terminal, the business of user's input is received
Scene is specially:The business information of primary user's identification card of the multi-card terminal is received, and is believed from the business of Subscriber Identity Module
Breath.
When executable file is the webcam driver program of multi-cam terminal, the business of user's input is received
Scene is specially:Receive the webcam driver information of multi-cam terminal.
For example, business scenario is, main card supports GSM network and UMTS network, two scenes from card support GSM network.
According to business scenario, source file can be classified, for example, the Multi-card multi-standby terminal mentioned above wait to prop up more
Business scenario is held, can be analyzed the GSM network in the software how to be supported according to the business scenario and support to need three parts of realities
Example, then GSM network support is many example traffics, and the source file that corresponding GSM network is supported is many example source files, and UMTS nets
Network supports a example of needs, then UMTS network supports to be single example traffic, and the source file of corresponding UMTS network support is single
Example source file.
Step 302, sorted single example source file and many example source files are compiled respectively.
Single example goal file is obtained after being compiled to single example source file, after being compiled to many example source files
To many example goal files.
Step 303, mirror-image copies are realized by localizing global symbol therein to many example goal files.
According to the corresponding scene number N of many example traffics, N-1 global symbol localization process is carried out, N-1 are obtained newly
File destination.For example, in the business scenario how to be supported of the Multi-card multi-standby terminal mentioned above, in software how to be supported
GSM network supports applied to main card and two that from card, that is, applied to three scenes, the mirror image that can be localized twice is copied
Shellfish, obtains two new many example goal files.
It should be noted that in multi-card terminal, the business that general main card is supported includes all industry supported from card
It is engaged in, therefore the source code for the business that first can also be supported main card is compiled, then analyze many in the business that main card is supported
The scene number of the number of example traffic and corresponding each many example traffics, so as to carry out the mesh of follow-up many example traffics
Mark the global symbol localization of file.
Step 304, link processing is carried out to each resulting file destination.
To single example goal file, obtained many example goal files are compiled, many example goals text that mirror-image copies are obtained
Part carries out link processing, obtains executable file.
Thus, the embodiment of the present invention is realized and can held by localizing the method for the global symbol in many example goal files
The generation of style of writing part, compared with prior art, has reached the development cost and maintenance cost of reduction software source code, has shortened software
The effect of defect in the construction cycle of source code, many example source files of Fast Convergent.
Correspondingly, the embodiment of the present invention additionally provides a kind of generating means of the executable file of many example traffics, and Fig. 4 is
The generating means schematic diagram of the executable file of a kind of many example traffics provided in an embodiment of the present invention, as shown in figure 4, this implementation
Example is included with lower unit:
Compilation unit 401, obtains first kind file destination, institute for being compiled to the corresponding source file of many example traffics
Many example traffics are stated including N number of example, wherein, N is the natural number more than or equal to 2, by the first kind file destination transmit to
Mirror image unit.
Mirror image unit 402, the first kind file destination for receiving the compilation unit transmission, to the first kind
File destination carries out N-1 mirror-image copies, obtains the new first kind file destinations of N-1, by the first kind file destination with
The N-1 new first kind file destinations are transmitted to link unit.
Mirror image unit 402 specifically for:Global symbol in the first kind file destination is carried out at N-1 renaming
Reason, so as to obtain N-1 new first kind file destinations;Or N- is carried out to the global symbol in the first kind file destination
1 localization process, so as to obtain N-1 new first kind file destinations.
Specifically, after the compiling of compilation unit 401 obtains first kind file destination, corresponded to according to many examples that analysis is obtained
Scene number, mirror-image copies can be carried out to the first kind file destination of generation, obtain multiple new first kind file destinations.Its
In, the method for mirror-image copies can be to carry out renaming processing to the global symbol in first kind file destination, or to first
Global symbol in class file destination is localized processing.
Link unit 403, the first kind file destination and the N-1 for receiving the mirror image unit transmission is new
First kind file destination, the first kind file destination, N-1 new first kind file destinations are linked, generation can
Perform file.
If it should be noted that drawing also single example after being analyzed according to the corresponding business scenario of executable file
Business, then compilation unit 401 be additionally operable to:Source file corresponding to single example traffic, which is compiled, obtains Equations of The Second Kind file destination,
Single example traffic is the business applied to single scene, and the Equations of The Second Kind file destination is transmitted to the link unit;
Link unit 403 specifically for:The Equations of The Second Kind file destination of the compilation unit transmission is received, to the first kind target
File, N-1 new first kind file destinations, and the Equations of The Second Kind file destination are linked, and generate the executable text
Part.
Preferably, device provided in an embodiment of the present invention also includes:Receiving unit 404, analytic unit 405;Receiving unit
404, the business information for receiving user's input transmits the business information to analytic unit;Analytic unit 405, is used for
The business information of the receiving unit transmission is received, the business information is analyzed, many example traffics are obtained.
Preferably, if there is single example traffic, then analytic unit 405 can also be same when analyzing business information
When obtain single example traffic.
When the corresponding source file of the communication software that source file is Multi-card multi-standby terminal;Receiving unit 404 specifically for:Connect
The support business information of primary user's identification card of the Multi-card multi-standby terminal is received, and is believed from the support business of Subscriber Identity Module
Breath;Analytic unit 405 specifically for:Support business information to primary user's identification card and the support industry from Subscriber Identity Module
Business information is analyzed, and is obtained many example traffics and corresponding scene number, if there is single example traffic, is then obtained simultaneously
Single example traffic.
When the corresponding source file of the Subscriber Identity Module management software that source file is multi-card terminal;Receiving unit 404 is specific
For:Receive the business information of primary user's identification card of the multi-card terminal, and from the business information of Subscriber Identity Module;It is described
Analytic unit 405 specifically for:Business information to primary user's identification card and the business information from Subscriber Identity Module are carried out
Analysis, obtains many example traffics and corresponding scene number, if there is single example traffic, then obtains single example simultaneously
Business.
When the corresponding source file of the webcam driver program that source file is multi-cam terminal;Receiving unit 404 is specific
For:Receive the webcam driver information of the multi-cam terminal;The analytic unit 405 specifically for:Taken the photograph to described more
As the activation bit of head terminal is analyzed, many example traffics and corresponding multi-cam driving number are obtained, if there is
Single example traffic, then obtain single example traffic simultaneously.
The embodiment of the present invention obtains file destination by being compiled to the corresponding source file of many example traffics, then to this
File destination carries out multiple mirror image processing, obtains multiple new file destinations, and the generated file destination of link can be obtained
To executable file.Thus, the embodiment of the present invention is realized once is compiled to the source code of many example traffics, and is passed through
Mirror image and link processing are carried out to the file destination that compiling is obtained and executable file is generated, opening for software source code is reduced
Cost and maintenance cost are sent out, the construction cycle of software source code is shortened.
Correspondingly, the embodiments of the invention provide a kind of terminal, the terminal, which includes the present embodiment, includes network interface
501st, processor 502 and memory 503.System bus 504 is used to connect network interface 501, processor 502 and memory 503.
Network interface 501 is used to be attached with the terminal device that executable file is applied.
Memory 503 can have software mould in permanent memory, such as hard disk drive and flash memory, memory 503
Block and device driver.Software module is able to carry out the various functions module of the above method of the present invention;Device driver can
To be network and interface drive program.
On startup, these software modules are loaded into memory 503, are then accessed and are performed such as by processor 502
Give an order:
Source file corresponding to many example traffics, which is compiled, obtains first kind file destination, and many example traffics are should
Business for multiple scenes;
Source file corresponding to many example traffics carries out once compiling and obtains first kind file destination, many example traffics
Including N number of example, wherein, N is the natural number more than or equal to 2;
N-1 mirror-image copies are carried out to the first kind file destination, N-1 new first kind file destinations are obtained;
The first kind file destination, N-1 new first kind file destinations are linked, executable file is generated.
Further, processor 502 is accessed after the software module in memory 503, is performed to first kind target text
Part carry out N-1 mirror image copy procedure instruction be specially:Global symbol in the first kind file destination is carried out N-1 times
Renaming processing, so as to obtain N-1 new first kind file destinations;Or the overall situation in the first kind file destination is accorded with
Number N-1 localization process is carried out, so as to obtain the individual new first kind file destinations of N-1.
Further, processor 502 is accessed after the software module in memory 503, will also be performed to give an order:The side
Method also includes:Source file corresponding to single example traffic, which is compiled, obtains Equations of The Second Kind file destination.
Further, processor 502 is accessed after the software module in memory 503, is performed to first kind target text
Part, N-1 new first kind file destinations are linked, and the instruction of generation executable file process is specially:To described first
Class file destination, N-1 new first kind file destinations, and the Equations of The Second Kind file destination are linked, and generation is described can
Perform file.
Further, processor 502 is compiled to the corresponding source file of many example traffics in execution and obtains the first classification
The software module that will also be accessed before marking file in memory 503, and perform to give an order:
Receive the business information of user's input;
The business information is analyzed, many example traffics are obtained.
When the corresponding source file of the communication software that source file is Multi-card multi-standby terminal;Processor 502 accesses memory 503
In software module after, perform and receive the instruction of business information process of user's input and be specially:Receive the multi-card multi-standby whole
The support business information of primary user's identification card at end, and from the support business information of Subscriber Identity Module;Perform to the business
Information is analyzed, and is obtained many example traffic instructions and is specially:To the support business information of primary user's identification card and
Analyzed from the support business information of Subscriber Identity Module, obtain many example traffics.
When the corresponding source file of the Subscriber Identity Module management software that source file is multi-card terminal;Processor 502 is accessed and deposited
After software module in reservoir 503, the instruction for performing the business information process for receiving user's input is specially:Receive many cards
The business information of primary user's identification card of terminal, and from the business information of Subscriber Identity Module;Execution is entered to the business information
Row is analyzed, and the instruction for obtaining many example traffic processes is specially:Business information to primary user's identification card and from
The business information of family identification card is analyzed, and obtains many example traffics.
When the corresponding source file of the webcam driver program that source file is multi-cam terminal;Processor 502 is accessed and deposited
After software module in reservoir 503, the instruction for performing the business information process for receiving user's input is specially:Reception is described to take the photograph more
As the webcam driver information of head terminal;Execution is analyzed the business information, obtains many example traffic processes
Instruction is specially:The activation bit of the multi-cam terminal is analyzed, many example traffics are obtained.
The embodiment of the present invention obtains file destination by being compiled to the corresponding source file of many example traffics, then to this
File destination carries out multiple mirror image processing, obtains multiple new file destinations, and the generated file destination of link can be obtained
To executable file.Thus, the embodiment of the present invention is realized once is compiled to the source code of many example traffics, and is passed through
Mirror image and link processing are carried out to the file destination that compiling is obtained and executable file is generated, opening for software source code is reduced
Cost and maintenance cost are sent out, the construction cycle of software source code is shortened.
Professional should further appreciate that, each example described with reference to the embodiments described herein
Unit and algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, hard in order to clearly demonstrate
The interchangeability of part and software, generally describes the composition and step of each example according to function in the above description.
These functions are performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.
Professional and technical personnel can realize described function to each specific application using distinct methods, but this realize
It is not considered that beyond the scope of this invention.
The method that is described with reference to the embodiments described herein can use hardware, computing device the step of algorithm
Software module, or the two combination are implemented.Software module can be placed in random access memory (RAM), internal memory, read-only storage
(ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field
In any other form of storage medium well known to interior.
Above-described embodiment, has been carried out further to the purpose of the present invention, technical scheme and beneficial effect
Describe in detail, should be understood that the embodiment that the foregoing is only the present invention, be not intended to limit the present invention
Protection domain, within the spirit and principles of the invention, any modification, equivalent substitution and improvements done etc. all should be included
Within protection scope of the present invention.
Claims (14)
1. a kind of generation method of the executable file of many example traffics, it is characterised in that methods described includes:
Source file corresponding to many example traffics carries out once compiling and obtains first kind file destination, and many example traffics include
N number of example, wherein, N is the natural number more than or equal to 2;
N-1 mirror-image copies are carried out to the first kind file destination, N-1 new first kind file destinations are obtained;
The first kind file destination, N-1 new first kind file destinations are linked, executable file is generated.
2. the generation method of the executable file of many example traffics according to claim 1, it is characterised in that described to institute
Stating N-1 mirror-image copies of first kind file destination progress includes:N-1 is carried out to the global symbol in the first kind file destination
Secondary renaming processing, so as to obtain N-1 new first kind file destinations;Or
N-1 localization process is carried out to the global symbol in the first kind file destination, so as to obtain N-1 new first
Class file destination.
3. the generation method of the executable file of many example traffics according to claim 1 or 2, it is characterised in that described
Method also includes:Source file corresponding to single example traffic, which is compiled, obtains Equations of The Second Kind file destination;
It is described that the first kind file destination, N-1 new first kind file destinations are linked, generate executable file bag
Include:Chain is carried out to the first kind file destination, N-1 new first kind file destinations, and the Equations of The Second Kind file destination
Connect, generate the executable file.
4. the generation method of the executable file of many example traffics according to claim 1 or 2, it is characterised in that described
Source file corresponding to many example traffics is compiled obtain first kind file destination before also include:
Receive the business information of user's input;
The business information is analyzed, many example traffics are obtained.
5. the generation method of the executable file of many example traffics according to claim 4, it is characterised in that the source document
Part is the corresponding source file of communication software of Multi-card multi-standby terminal;
The business information for receiving user's input includes:Receive the support industry of primary user's identification card of the Multi-card multi-standby terminal
It is engaged in information, and from the support business information of Subscriber Identity Module;
Described that the business information is analyzed, obtaining many example traffics includes:To the branch of primary user's identification card
Hold business information and the support business information from Subscriber Identity Module is analyzed, obtain many example traffics.
6. the generation method of the executable file of many example traffics according to claim 4, it is characterised in that the source document
Part is the corresponding source file of Subscriber Identity Module management software of multi-card terminal;
The business information for receiving user's input includes:The business information of primary user's identification card of the multi-card terminal is received,
And from the business information of Subscriber Identity Module;
Described that the business information is analyzed, obtaining many example traffics includes:To the industry of primary user's identification card
Business information and the business information from Subscriber Identity Module are analyzed, and obtain many example traffics.
7. the generation method of the executable file of many example traffics according to claim 4, it is characterised in that the source document
Part is the corresponding source file of webcam driver program of multi-cam terminal;
The business information for receiving user's input includes:Receive the webcam driver information of the multi-cam terminal;
Described that business information is analyzed, obtaining many example traffics includes:To the driving letter of the multi-cam terminal
Breath is analyzed, and obtains many example traffics.
8. a kind of generating means of the executable file of many example traffics, it is characterised in that described device includes:
Compilation unit, first kind file destination is obtained for carrying out once compiling to the corresponding source file of many example traffics, described
Many example traffics include N number of example, wherein, N is the natural number more than or equal to 2, and the first kind file destination is transmitted to mirror
As unit;
Mirror image unit, the first kind file destination for receiving the compilation unit transmission, to first kind target text
Part carries out N-1 mirror-image copies, N-1 new first kind file destinations is obtained, by the first kind file destination and the N-1
Individual new first kind file destination is transmitted to link unit;
Link unit, for receive mirror image unit transmission the first kind file destination and the N-1 new first
The first kind file destination, N-1 new first kind file destinations are linked by class file destination, the executable text of generation
Part.
9. the generating means of the executable file of many example traffics according to claim 8, it is characterised in that the mirror image
Unit specifically for:N-1 renaming processing is carried out to the global symbol in the first kind file destination, so as to obtain N-1
Individual new first kind file destination;Or
N-1 localization process is carried out to the global symbol in the first kind file destination, so as to obtain N-1 new first
Class file destination.
10. the generating means of the executable file of many example traffics according to claim 8 or claim 9, it is characterised in that described
Compilation unit is additionally operable to:Source file corresponding to single example traffic, which is compiled, obtains Equations of The Second Kind file destination, by described second
Class file destination is transmitted to the link unit;
The link unit specifically for:The Equations of The Second Kind file destination of the compilation unit transmission is received, to described first
Class file destination, N-1 new first kind file destinations, and the Equations of The Second Kind file destination are linked, and generation is described can
Perform file.
11. the generating means of the executable file of many example traffics according to claim 8 or claim 9, it is characterised in that described
Device also includes receiving unit, analytic unit:
The receiving unit, the business information for receiving user's input, the business information is transmitted to analytic unit;
The analytic unit, the business information for receiving the receiving unit transmission, is divided the business information
Analysis, obtains many example traffics.
12. the generating means of the executable file of many example traffics according to claim 11, it is characterised in that the source
File is the corresponding source file of communication software of Multi-card multi-standby terminal;
The receiving unit specifically for:The support business information of primary user's identification card of the Multi-card multi-standby terminal is received, with
And from the support business information of Subscriber Identity Module;
The analytic unit specifically for:Support business information to primary user's identification card and the support from Subscriber Identity Module
Business information is analyzed, and obtains many example traffics.
13. the generating means of the executable file of many example traffics according to claim 11, it is characterised in that the source
File is the corresponding source file of Subscriber Identity Module management software of multi-card terminal;
The receiving unit specifically for:Receive the business information of primary user's identification card of the multi-card terminal, and from user
The business information of identification card;
The analytic unit specifically for:Business information to primary user's identification card and the business information from Subscriber Identity Module
Analyzed, obtain many example traffics.
14. the generating means of the executable file of many example traffics according to claim 11, it is characterised in that the source
File is the corresponding source file of webcam driver program of multi-cam terminal;
The receiving unit specifically for:Receive the webcam driver information of the multi-cam terminal;
The analytic unit specifically for:The activation bit of the multi-cam terminal is analyzed, many example traffics are obtained.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310325803.XA CN104346150B (en) | 2013-07-30 | 2013-07-30 | The generation method and device of the executable file of many example traffics |
US14/341,337 US9575780B2 (en) | 2013-07-30 | 2014-07-25 | Method and apparatus for generating executable file or multi-instance service |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310325803.XA CN104346150B (en) | 2013-07-30 | 2013-07-30 | The generation method and device of the executable file of many example traffics |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104346150A CN104346150A (en) | 2015-02-11 |
CN104346150B true CN104346150B (en) | 2017-10-17 |
Family
ID=52428909
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310325803.XA Active CN104346150B (en) | 2013-07-30 | 2013-07-30 | The generation method and device of the executable file of many example traffics |
Country Status (2)
Country | Link |
---|---|
US (1) | US9575780B2 (en) |
CN (1) | CN104346150B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104346150B (en) * | 2013-07-30 | 2017-10-17 | 华为技术有限公司 | The generation method and device of the executable file of many example traffics |
US10133560B2 (en) * | 2016-09-22 | 2018-11-20 | Qualcomm Innovation Center, Inc. | Link time program optimization in presence of a linker script |
US10108406B2 (en) * | 2016-10-24 | 2018-10-23 | International Business Machines Corporation | Linking optimized entry points for local-use-only function pointers |
CN108021792B (en) * | 2017-12-04 | 2021-05-28 | 北京元心科技有限公司 | Mirror image software generation method and device and corresponding terminal |
CN110597772A (en) * | 2019-08-21 | 2019-12-20 | 福建天泉教育科技有限公司 | Multi-instance file processing method and terminal |
CN111857808B (en) * | 2020-06-22 | 2022-04-26 | 烽火通信科技股份有限公司 | Renaming method and renaming device for symbols |
CN113286090B (en) * | 2021-06-07 | 2023-07-18 | 经纬恒润(天津)研究开发有限公司 | Multi-drive dynamic configuration method, loading method and related device for camera |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6298479B1 (en) * | 1998-05-29 | 2001-10-02 | Sun Microsystems, Inc. | Method and system for compiling and linking source files |
CN1862492A (en) * | 2005-05-12 | 2006-11-15 | 施乐公司 | Method for creating unique identification for copies of executable code and management thereof |
CN101401103B (en) * | 2006-06-09 | 2012-04-18 | 国际商业机器公司 | System and method for secure boot across a plurality of processors |
CN102455907A (en) * | 2010-11-02 | 2012-05-16 | 上海晨兴希姆通电子科技有限公司 | Method for designing multi-card mobile phone application software |
Family Cites Families (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7437710B2 (en) * | 2001-07-02 | 2008-10-14 | Bea Systems, Inc. | Annotation based development platform for stateful web services |
CA2355989A1 (en) * | 2001-08-27 | 2003-02-27 | Ibm Canada Limited-Ibm Canada Limitee | Compiling source code files having multiple |
US7958163B2 (en) * | 2003-08-05 | 2011-06-07 | Intraware, Inc. | System and method for bulk transfer of digital goods |
US20080209400A1 (en) * | 2007-02-27 | 2008-08-28 | Kevin Christopher Parker | Approach for versioning of services and service contracts |
US10015267B2 (en) * | 2008-09-02 | 2018-07-03 | Constantin Staykoff | Generic multichannel center for network applications and services |
JP5360506B2 (en) * | 2008-09-09 | 2013-12-04 | 日本電気株式会社 | Multi-core programming system, method and program |
US8578355B1 (en) * | 2010-03-19 | 2013-11-05 | Google Inc. | Scenario based optimization |
WO2011130869A1 (en) * | 2010-04-19 | 2011-10-27 | Hewlett-Packard Development Company, L.P. | Object linking based on determined linker order |
US20110276950A1 (en) * | 2010-05-05 | 2011-11-10 | Microsoft Corporation | Name binding extensibility for typed programming language |
US8566792B2 (en) * | 2010-05-07 | 2013-10-22 | Salesforce, Inc. | Validating visual components |
US9383985B2 (en) * | 2011-06-10 | 2016-07-05 | Unisys Corporation | Automated modification of pre-generated MSI packaged applications |
US8856745B2 (en) * | 2012-08-01 | 2014-10-07 | Oracle International Corporation | System and method for using a shared standard expectation computation library to implement compliance tests with annotation based standard |
CN104346150B (en) * | 2013-07-30 | 2017-10-17 | 华为技术有限公司 | The generation method and device of the executable file of many example traffics |
US9753710B2 (en) * | 2013-11-07 | 2017-09-05 | Netronome Systems, Inc. | Resource allocation with hierarchical scope |
-
2013
- 2013-07-30 CN CN201310325803.XA patent/CN104346150B/en active Active
-
2014
- 2014-07-25 US US14/341,337 patent/US9575780B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6298479B1 (en) * | 1998-05-29 | 2001-10-02 | Sun Microsystems, Inc. | Method and system for compiling and linking source files |
CN1862492A (en) * | 2005-05-12 | 2006-11-15 | 施乐公司 | Method for creating unique identification for copies of executable code and management thereof |
CN101401103B (en) * | 2006-06-09 | 2012-04-18 | 国际商业机器公司 | System and method for secure boot across a plurality of processors |
CN102455907A (en) * | 2010-11-02 | 2012-05-16 | 上海晨兴希姆通电子科技有限公司 | Method for designing multi-card mobile phone application software |
Also Published As
Publication number | Publication date |
---|---|
CN104346150A (en) | 2015-02-11 |
US20150040109A1 (en) | 2015-02-05 |
US9575780B2 (en) | 2017-02-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104346150B (en) | The generation method and device of the executable file of many example traffics | |
CN106990966A (en) | Mobile terminal cross-platform Development Framework and development approach based on front end frame | |
CN107329861A (en) | A kind of multiplex roles method of testing and device | |
TWI650669B (en) | Malware removal action content data management device and method | |
Fernandez-Viagas et al. | A best-of-breed iterated greedy for the permutation flowshop scheduling problem with makespan objective | |
CN110210190A (en) | A kind of Code obfuscation method based on secondary compilation | |
CN104954353A (en) | Verification method and apparatus of APK file package | |
CN104391793B (en) | Testing procedure and test script generation method and device | |
US10061571B2 (en) | System and method for link time optimization | |
CN106201890A (en) | The performance optimization method of a kind of application and server | |
CN104978213B (en) | Realize the link acquisition methods and device of application installation package | |
CN104050085A (en) | Forced code standard inspection method and system | |
May | A survey of software architecture viewpoint models | |
CN112214766A (en) | Method and device for detecting mining trojans, electronic device and storage medium | |
US10528688B1 (en) | System and method for schematic-driven generation of input/output models | |
CN108055351A (en) | The processing method and processing device of three dimensional file | |
CN108008959A (en) | A kind of Software Development Kit SDK cut-in methods, system and device | |
CN104156430A (en) | Device and method for fast extracting Android mobile phone data | |
CN109408103A (en) | Setting method, device, equipment and the medium of configuration file | |
WO2020245504A1 (en) | Method and system for integration testing | |
CN107484191A (en) | Communication control method and device, computer installation and readable storage medium storing program for executing | |
US20180081884A1 (en) | Method and apparatus for processing input sequence, apparatus and non-volatile computer storage medium | |
CN103631983B (en) | A kind of tactical data message analogy method and system | |
CN109828759A (en) | Code compiling method, device, computer installation and storage medium | |
KR102324352B1 (en) | Ai-based program auto-generation system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |