CN104360834A - Method for multiplexing third-party plug-in by vehicle-mounted embedded system - Google Patents

Method for multiplexing third-party plug-in by vehicle-mounted embedded system Download PDF

Info

Publication number
CN104360834A
CN104360834A CN201410531844.9A CN201410531844A CN104360834A CN 104360834 A CN104360834 A CN 104360834A CN 201410531844 A CN201410531844 A CN 201410531844A CN 104360834 A CN104360834 A CN 104360834A
Authority
CN
China
Prior art keywords
plug
file
embedded system
code
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410531844.9A
Other languages
Chinese (zh)
Other versions
CN104360834B (en
Inventor
唐涌强
王满红
王锦镇
翁文超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou Desay SV Automotive Co Ltd
Original Assignee
Huizhou Desay SV Automotive 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 Huizhou Desay SV Automotive Co Ltd filed Critical Huizhou Desay SV Automotive Co Ltd
Priority to CN201410531844.9A priority Critical patent/CN104360834B/en
Publication of CN104360834A publication Critical patent/CN104360834A/en
Application granted granted Critical
Publication of CN104360834B publication Critical patent/CN104360834B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a method for multiplexing a third-party plug-in by a vehicle-mounted embedded system. The method comprises the following steps: a code of a plug-in source file is assigned to a fixed address space in an address allocation file of the embedded system; the plug-in source file and an embedded system file are combined, compiled and linked to generate an executable file; data corresponding to the code of the plug-in source file is separated from a fixed address space in the executable file; the separated data corresponding to the code of the plug-in source file is distributed and stored in an array, and the array content is assigned to the fixed address space in the address allocation file of the embedded system; the array content used as an interface module and the embedded system file are combined, compiled and linked to generate an executable file. According to the invention, the workload of cooperatively compiling the embedded system and the third-party plug-in source file is reduced, and the vehicle-mounted embedded system can multiplex the third-party plug-in, so that the embedded system development efficiency is improved, and meanwhile, flexible transplantation of the code of the vehicle-mounted embedded system is facilitated and the system scalability is improved.

Description

The method of the multiplexing third party's plug-in unit of a kind of vehicle imbedding type system
Technical field
The present invention relates to embedded system technology field, be specifically related to the method for multiplexing third party's plug-in unit source file in automotive electronics embedded system.
Background technology
At present, as shown in Figure 1, the embodiment of vehicle imbedding type system integration third party plug-in unit is:
(1) vehicle imbedding type system is needing the place using third party's pin function, and the interface function (not possessing the function of function) that calling third party's pin function module provides carries out Code Design, changes the function code of application layer simultaneously;
(2) by the infosystem file that writes together with third party's plug-in unit source file, the source code utilizing third party to provide the interface function of pin function to realize carries out combination compiling, generates executable file;
(3) inside loading of executed file to embedded hardware, whether the function of carrying out the application code confirming change can realize.
Therefore, in vehicle imbedding type system exploitation, the data required for some function could need use in conjunction with after the process of third party's plug-in unit, namely, a vehicle imbedding type system with complete function, needs and third party's plug-in code combines and could compile the complete executable file of generation one.
The source code file not opening of some third party's plug-in unit, does not provide the file in similar storehouse yet.When the embedded system file (in as Fig. 1 system.c, system.h) of developer's exploitation has change, need to coordinate together with third party, again plug-in unit source code file and Embedded System Code file are carried out combining, compile, linked, what developer just can obtain final system can executive software.
The code of third party's plug-in unit is due to function singleness, code is generally changed less, but in the exploitation of embedded system, coding change, compiling very frequent, the effect confirming change is wanted in each change, all need repetition and third party's tie compiler to generate corresponding executable file, thus the code of third party's plug-in unit does not obtain multiplexing in process of embedded system exploitation.Like this, embedded system development efficiency is caused greatly to reduce, and by the flexible transplanting of restrict system code and the exploitation of onboard system function.
Summary of the invention
The invention provides the method for the multiplexing third party's plug-in unit of a kind of vehicle imbedding type system, the technical matters solving and make the multiplexing third party's plug-in unit of vehicle imbedding type system, improve embedded system development efficiency, be convenient to the flexible transplanting of Embedded System Code, improve set expandability.
In order to solve the problems of the technologies described above, the technical solution used in the present invention is:
The invention provides the method for the multiplexing third party's plug-in unit of a kind of vehicle imbedding type system, comprising:
A. by address space fixing in the code assignment of allocation of plug-in unit source file to the address assignment file of embedded system;
B. by described plug-in unit source file with embedded system combination of files, compiling, link, generate executable file;
C. fixing from executable file address space isolates the data corresponding with the code of plug-in unit source file;
D. the isolated Data distribution8 corresponding with the code of plug-in unit source file is left in array, by address space fixing in described array content assignment of allocation to the address assignment file of embedded system;
E. using described array content as interface module with embedded system combination of files, compiling, link, generate executable file.
Further, steps A comprises:
A1. in the address assignment file of embedded system, for fixing address space specified by the code of plug-in unit source file;
A2., in plug-in unit source file, according to by the order of code building to fixed address space, address assignment of allocation pre-service is carried out to code.
Further, if the coding change of plug-in unit source file, the plug-in unit source file after change and embedded system file are re-started steps A to E.
In the method for the multiplexing third party's plug-in unit of vehicle imbedding type system of the present invention, first the third party's plug-in code needing to integrate is specified fixing compiling start address, the system again chain being connected to the source file of plug-in code compiles, then the file destination binary data generated is isolated data corresponding to plug-in code from fixing address, finally the data separated are set up an array or functional form, this part data is cooperated as an interface module and embedded system and compiles.Need the function running plug-in unit later, enter corresponding module by the mode of address redirect and perform.
Technical scheme of the present invention, to need and the code of third party's plug-in unit source file carries out coordinating but in the embedded system development of not providing source code, the workload of minimizing and third party's plug-in unit source file tie compiler, make the multiplexing third party's plug-in unit of vehicle imbedding type system, improve embedded system development efficiency, be convenient to the flexible transplanting of Embedded System Code simultaneously, improve set expandability.
Accompanying drawing explanation
Fig. 1 is the embodiment schematic diagram that existing vehicle imbedding type system integrates third party's plug-in unit;
Fig. 2 is the schematic flow sheet of the method for the multiplexing third party's plug-in unit of a kind of vehicle imbedding type system of the present invention;
Fig. 3 is the implementation process schematic diagram of the method for the multiplexing third party's plug-in unit of a kind of vehicle imbedding type system of the present invention.
Embodiment
Specifically illustrate embodiments of the present invention below in conjunction with accompanying drawing, accompanying drawing is only for reference and use is described, does not form the restriction to scope of patent protection of the present invention.
As shown in Figure 2, the present embodiment provides the method for the multiplexing third party's plug-in unit of a kind of vehicle imbedding type system, comprising:
A. by address space fixing in the code assignment of allocation of plug-in unit source file to the address assignment file of embedded system;
B. by described plug-in unit source file with embedded system combination of files, compiling, link, generate executable file;
C. fixing from executable file address space isolates the data corresponding with the code of plug-in unit source file;
D. the isolated Data distribution8 corresponding with the code of plug-in unit source file is left in array, by address space fixing in described array content assignment of allocation to the address assignment file of embedded system;
E. using described array content as interface module with embedded system combination of files, compiling, link, generate executable file.
In the present embodiment, steps A comprises:
A1. in the address assignment file of embedded system, for fixing address space specified by the code of plug-in unit source file;
A2., in plug-in unit source file, according to by the order of code building to fixed address space, address assignment of allocation pre-service is carried out to code.
If the coding change of plug-in unit source file, the plug-in unit source file after change and embedded system file are re-started steps A to E.
Embodiments of the invention describe following embodiment: after embedded system and third party's plug-in unit carried out a plug-in code combination, under the prerequisite that third party's pin function is not changed, the compiling file of reusable and source code equivalent function in process of embedded system exploitation below, reduces the number of times that embedded system coordinates with third party's plug-in unit on stream.Concrete implementation step is as follows:
(1) file generated according to code compilation can be assigned to the principle of fixed address section, in the address assignment file of embedded system, for fixing address space specified by the code (as PlugIn.c) of whole plug-in unit source file.According to exploitation needs, can file declustering two sections or three sector address spaces.
Such as:
Binary data after the code compilation of PlugIn.c file is split as two sector address spaces deposit.
First paragraph start address scope is:
0x00020400~0x00020500(0x00020400+0x00000100)
Second segment start address scope is:
0x00020500~0x00021400(0x00020500+0x00000F00)
Test_table_area and test_area is the identifier of code segment.
(2) at PlugIn.c file, specify the realization order being generated to fixed address section according to code, code is carried out address assignment of allocation pre-service.
As:
#pragma arm section rodata " identifier of code segment "----appointment codes section starts----functional realiey code segment content
#pragma arm section//rodata, rwdata, zidata----appointment codes section terminates
(3) source file that pre-service completes is compiled, link, generate executable file.
As file: system.Hex
(4) corresponding according to the address inside executable file data, can separate binary data corresponding for the source code of information conversion process.
As:
(5) binary data corresponding for code segment distribution is left in independently inside array.According to address location mode below, inside other source file, array content is assigned to fixing storage address after compiling.
#pragma arm section rodata " identifier of deposit position "----specify array to start---content of-array
#pragma arm section//rodata, rwdata, zidata----specify array to terminate
(6) by step (5), as shown in Figure 3, separate binary data section owing to being the binary data that information conversion process source code is corresponding, there is the function of plug-in unit source code processing logic.When this part binary data is carried out compiling and linking as a program module together with Embedded System Code file, the holonomic system with plug-in unit processing capacity can be generated equally.
That is, the present invention carries out code compilation by assigned address, isolates the binary data of same function effect, binary data and Embedded System Code is carried out link compiling, generates the method for the embedded system of said function.
By embodiment of the present invention, an embedded system platform only needs the tie compiler carrying out a plug-in unit source code file with third party's plug-in unit.Developer is afterwards in performance history, change embedded system, load the binary code module of the plug-in code separated simultaneously, can the code file of new improvement be compiled at any time, fast and carry out confirmation effect, do not need again to compile together with the cooperation of third party's plug-in unit.
If third party's plug-in unit source code file has change, after also only needs and third party coordinate a code to integrate and compile again, carry out the separation of new plug-in code process according to above-mentioned embodiment of the present invention, exploitation below can be debugged fast.
Above disclosedly be only preferred embodiment of the present invention, the scope of the present invention can not be limited with this, therefore according to the equivalent variations that the present patent application the scope of the claims is done, still belong to the scope that the present invention is contained.

Claims (3)

1. a method for the multiplexing third party's plug-in unit of vehicle imbedding type system, is characterized in that, comprising:
A. by address space fixing in the code assignment of allocation of plug-in unit source file to the address assignment file of embedded system;
B. by described plug-in unit source file with embedded system combination of files, compiling, link, generate executable file;
C. fixing from executable file address space isolates the data corresponding with the code of plug-in unit source file;
D. the isolated Data distribution8 corresponding with the code of plug-in unit source file is left in array, by address space fixing in described array content assignment of allocation to the address assignment file of embedded system;
E. using described array content as interface module with embedded system combination of files, compiling, link, generate executable file.
2. the method for the multiplexing third party's plug-in unit of vehicle imbedding type system according to claim 1, is characterized in that: steps A comprises:
A1. in the address assignment file of embedded system, for fixing address space specified by the code of plug-in unit source file;
A2., in plug-in unit source file, according to by the order of code building to fixed address space, address assignment of allocation pre-service is carried out to code.
3. the method for the multiplexing third party's plug-in unit of vehicle imbedding type system according to claim 1 and 2, is characterized in that: if the coding change of plug-in unit source file, and the plug-in unit source file after change and embedded system file are re-started steps A to E.
CN201410531844.9A 2014-10-10 2014-10-10 A kind of method of vehicle imbedding type system multiplexing third party's plug-in unit Active CN104360834B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410531844.9A CN104360834B (en) 2014-10-10 2014-10-10 A kind of method of vehicle imbedding type system multiplexing third party's plug-in unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410531844.9A CN104360834B (en) 2014-10-10 2014-10-10 A kind of method of vehicle imbedding type system multiplexing third party's plug-in unit

Publications (2)

Publication Number Publication Date
CN104360834A true CN104360834A (en) 2015-02-18
CN104360834B CN104360834B (en) 2018-01-26

Family

ID=52528098

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410531844.9A Active CN104360834B (en) 2014-10-10 2014-10-10 A kind of method of vehicle imbedding type system multiplexing third party's plug-in unit

Country Status (1)

Country Link
CN (1) CN104360834B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112698835A (en) * 2021-01-05 2021-04-23 潍柴动力股份有限公司 Singlechip compiling and linking method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070050762A1 (en) * 2004-04-06 2007-03-01 Shao-Chun Chen Build optimizer tool for efficient management of software builds for mobile devices
CN101539859A (en) * 2008-10-10 2009-09-23 华南理工大学 Development method of plug-in board for embedded Konqueor browser based on uCLinux
CN103077017A (en) * 2012-12-27 2013-05-01 惠州市德赛西威汽车电子有限公司 Embedded memory multiplexing method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070050762A1 (en) * 2004-04-06 2007-03-01 Shao-Chun Chen Build optimizer tool for efficient management of software builds for mobile devices
CN101539859A (en) * 2008-10-10 2009-09-23 华南理工大学 Development method of plug-in board for embedded Konqueor browser based on uCLinux
CN103077017A (en) * 2012-12-27 2013-05-01 惠州市德赛西威汽车电子有限公司 Embedded memory multiplexing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112698835A (en) * 2021-01-05 2021-04-23 潍柴动力股份有限公司 Singlechip compiling and linking method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN104360834B (en) 2018-01-26

Similar Documents

Publication Publication Date Title
US10534590B2 (en) Dynamic recompilation techniques for machine learning programs
ES2950367T3 (en) Method and system for automated improvement of parallelism in program compilation
AU2017202110B2 (en) Runtime creation, assignment, deployment and updating of arbitrary radio waveform techniques for a radio waveform generation device
KR101900796B1 (en) Agile communication operator
CA2288614C (en) Loop allocation for optimizing compilers
KR101213275B1 (en) System and method for providing monolithic image for use in a wireless device
CN104598274B (en) A kind of automatically instrument compiling installation method and system
CN102495723B (en) Tile communication operator
CN110457045B (en) Component combining and compiling method, device, equipment and storage medium
CN104090765A (en) Method and device for switching from mobile game to webgame
CN112306540A (en) Multi-project independent compiling method, system, terminal and medium
CN102955698A (en) Processing method and device based on multi-terminal software development
CN104407852B (en) A kind of embedded software construction method and call method based on code-insulated
CN103455337A (en) Method for using dynamic library under Android development environment
CN104360834A (en) Method for multiplexing third-party plug-in by vehicle-mounted embedded system
CN102129385B (en) Management method capable of dynamically expanding management function of virtual machine
CN104636327A (en) Distributed type stream data system based on incremental computation
Boppu et al. Loop program mapping and compact code generation for programmable hardware accelerators
CN105045595A (en) Plug-in integrating method and plug-in integrating device
US8949802B1 (en) Sharding program compilation for large-scale static analysis
CN110427189A (en) Method, server and the system of Remote Dynamic compiling Android engineering
CN107315587B (en) Spacecraft on-orbit maintenance injection code generation method based on secondary link
CN104461569A (en) C/C++ program generation assisting method based on MATLAB
CN104281443A (en) Methods for implementing code and data replacement by TCM (tightly coupled memory)
RU2011130835A (en) METHOD FOR REPLACING THE CONTROL DEVICE IN THE ON-BOARD NETWORK OF THE VEHICLE

Legal Events

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

Address after: 516006 Guangdong province Huizhou City Zhongkai high tech Zone and five West Road No. 103

Applicant after: HUIZHOU DESAY SV AUTOMOTIVE CO., LTD.

Address before: 516006 Guangdong province Huizhou City Zhongkai high tech Zone and five West Road No. 103

Applicant before: Huizhou Desay SV Auto. Electronics Co., Ltd.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant