Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for reconstructing ELF file formats under multi-core architecture

A file format and architecture technology, applied in memory systems, program control design, instruments, etc., can solve the problems of huge compiler, heavy workload, and inability to focus on program optimization, so as to improve processing efficiency and reduce workload

Inactive Publication Date: 2010-12-08
ZHEJIANG UNIV
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

And these details include synchronization, task division, process creation, etc., the workload of designing and developing the compiler will be very heavy, which will also reduce the efficiency of the compiler, making it impossible to focus on program optimization
In addition, due to the existence of multiple thread libraries today, the compiler needs to take into account the differences in thread libraries in different platforms when starting a new thread, so it must include support for multiple thread libraries, which will make the compiler abnormal huge

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for reconstructing ELF file formats under multi-core architecture
  • Method for reconstructing ELF file formats under multi-core architecture

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] In conjunction with the drawings, the present invention is further described through specific embodiments.

[0029] First explain the nouns used

[0030] ELF: Executable and Linkable Format, for executable files and linkable shared library files.

[0031] load_elf_binary: A function that loads code into the program process space.

[0032] start_thread: Specifies the starting address of the new thread, does not actually start the new thread, until the thread is automatically started when it exits from the system call.

[0033] sched_setaffinity: Set the affinity of a process to one or some processor cores, that is, to ensure that the process runs on one or some processor cores.

[0034] The transformation of the ELF file format under the multi-core architecture includes the following steps:

[0035] (1) The user adds a parallel processing flag:

[0036] The user adds a label informing the compiler that parallel processing can be performed in the program written by th...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method for modifying ELF file format in multi-core architecture, which comprises the steps: (1) a user adds a parallel processing flag; (2) independent codes are loaded into different code segments in a ELF file; (3) the flag bit in the header of the ELF file is modified to mark a new ELF format; (4) the starting addresses of newly added segments are added in a new thread; (5) a loader of ELF format is modified; (6) a multi-thread program is executed on different cores; and (7) different thread results are set unifiedly in a main thread by a compiler. According to theinvention, the requirement that a current compiler in multi-core platform program design needs multiple bottom layer thread libraries is eliminated; since the process is simple, the steps have good universality, and can be used in different target file formats.

Description

technical field [0001] The invention relates to the problem of modifying the executable file format under the embedded multi-core platform to utilize the multi-core processing capability, and more specifically, relates to the modification of the ELF file format under the multi-core system structure. Background technique [0002] As computer architectures evolve, so do executable file formats. The earliest COM format file is a complete binary file. Although it is simple, the gradually popular page storage management mode makes it unable to better meet the needs of program design. Therefore, a new executable file structure such as a.out with a file header and page alignment for segments within the file has emerged, called NMAGIC. Due to the continuous improvement of people's demand for efficiency and space, NMAGIC has gradually evolved into QMAGIC and ZMAGIC in the process of continuous improvement. These improvements include mapping the compressed file header and code segme...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/445G06F9/45
Inventor 陈天洲张楠胡威蒋冠军章铁飞陈剑项凌翔王罡陈度冯德贵
Owner ZHEJIANG UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products