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

Transparent loading method for multiple types of target codes under many-core heterogeneous architecture

A target code, multi-type technology, used in climate sustainability, energy-efficient computing, bootstrap programs, etc.

Active Publication Date: 2021-04-09
JIANGNAN INST OF COMPUTING TECH
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] 1. Compilation process

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
  • Transparent loading method for multiple types of target codes under many-core heterogeneous architecture

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] Such as figure 1 As shown, a method for transparently loading multi-type object codes under the many-core heterogeneous architecture includes the following steps,

[0047] S1. The user executes an execve system call to enter the operating system kernel.

[0048] S2. The operating system kernel opens the object code file, and reads in the header information of the object code file. The object code file is in ELF file format, and the corresponding processing function is a load_elf_binary function.

[0049] S3. The operating system kernel checks the correctness of the header information of the object code file in the ELF file format. If the header information of the object code file is correct, the next step is executed; otherwise, the system calls to exit the kernel. The check is by comparing the magic number in the header information of the ELF file. If the magic number in the elf header information is equal to the magic number stored in the operating system kernel, it ...

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 discloses a transparent loading method for multiple types of target codes under a many-core heterogeneous architecture, which comprises the following steps: enabling a user to execute an execve system to call and enter a kernel to open a target code file, read the head of the target file and search a processing function of a target code format; checking the correctness of the ELF header information of the target code and the Machine field information; analyzing the environment variable; filling program parameters and environment variable necessary information into a user stack; loading a program header table of the target code; copying the program segment and the data segment into a physical space according to the data segment table information; initializing, and assigning values to elements in the data structure; configuring a configuration register in the operation core according to the configuration information; starting an operation core; checking a program type; loading a resident service program in the operating system, and modifying an execution entry of the program into an entry of the service program; entering a new program entry for execution. According to the method and the device, a set of loading process of the heterogeneous program is realized, the execution process of the heterogeneous program is unified, and the usability of a user is improved.

Description

technical field [0001] The invention relates to a method for transparently loading multi-type target codes under a many-core heterogeneous architecture, and belongs to the technical field of operating systems. Background technique [0002] In the Linux operating system, the execution of the user program object code is the responsibility of the operating system kernel. The existing many-core processor platform adopts a heterogeneous architecture, and the applications running on it are inevitably "heterogeneous", divided into "pure master core" object code, "pure slave core" object code, " Master-slave mixed" object code three categories. In addition, the "pure main core" object code is divided into static link object code, dynamic link object code and dynamic library from the perspective of compilation and linking. The operating system kernel needs to distinguish and process the above-mentioned various object code programs to be transparent to users. . [0003] At present,...

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
IPC IPC(8): G06F9/4401
CPCG06F9/4406Y02D10/00
Inventor 黄高阳王星焱林海南郑岩刘松邹通
Owner JIANGNAN INST OF COMPUTING TECH
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More