# US 2016/0253120 A1 · Multicore programming apparatus and method

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2016/0253120 A1
- Document ID: US20160253120A1
- Status: Published application
- Kind: A1
- Application number: 14/813,608
- Filed: 2015-07-30
- Published: 2016-09-01
- Earliest claimed: 2015-02-27
- Assignees: Electronics and Telecommunications Research Institute
- Applicants: Electronics and Telecommunications Research Institute
- Inventors: Duk-Kyun WOO; Sang-Cheol KIM; Jun-Keun SONG
- Web page: https://patentgrep.com/patent/US20160253120A1

## CPC

- G06F 9/50: Allocation of resources, e.g. of the central processing unit [CPU]
- G06F 8/41: Compilation
- G06F 8/451: {Code distribution (considering CPU load at run-time G06F9/505; load rebalancing G06F9/5083)}
- G06F 8/457: {Communication (intertask communication G06F9/54)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present invention relates to an apparatus and a method for performing a multicore program in a cross development environment having a multicore target board. A multicore programming apparatus according to the present invention to which a target board on which a memory and a multicore are mounted is connected, comprises: a link script generator configured to generate a link script based on memory map specification; and a cross compiler configured to compile a multicore program to generate a binary code corresponding to the program, wherein the cross compiler generates a shared section or a nonshared section to store shared or nonshared variables in the binary code by using the link script information.

## Claims

### Claim 1

A multicore programming apparatus to which a target board on which a memory and a multicore are mounted is connected, the apparatus comprising:
a link script generator configured to generate a link script based on memory map specification; and
a cross compiler configured to compile a multicore program to generate a binary code corresponding to the program, wherein the cross compiler generates a shared section or a nonshared section to store shared or nonshared variables in the binary code by using the link script information.

### Claim 2 (depends on 1)

The multicore programming apparatus of claim 1, wherein the memory map specification comprises at least one of shared or nonshared area allocation availability of a variable of which shareable attribute is not explicitly declared, the number of cores, a physical memory size, and size information of the allocated shared or nonshared area.

### Claim 3 (depends on 2)

The multicore programming apparatus of claim 2, wherein when it is set for the variable of which a shareable attribute is not explicitly declared in the memory map specification to be allocated in the nonshared area of the memory, the link script generator generates the link script in order for the cross compiler to generate a shared section, in which the variable of which the shareable attribute is explicitly declared as ‘shared’ is to be stored, in the binary code.

### Claim 4 (depends on 2)

The multicore programming apparatus of claim 2, wherein when it is set for the variable of which a shareable attribute is not explicitly declared in the memory map specification to be allocated in the shared area of the memory, the link script generator generates the link script in order for the cross compiler to generate a nonshared section, in which the variable of which the shareable attribute is explicitly declared as ‘nonshared’ is to be stored, in the binary code.

### Claim 5 (depends on 1)

The multicore programming apparatus of claim 1, further comprising a loader agent configured to transmit at least one of the memory map specification and the binary code to the target board.

### Claim 6 (depends on 1)

The multicore programming apparatus of claim 1, wherein the target board further comprises a multicore program loader configured to partition the memory into a shared area and a nonshared area based on the memory map.

### Claim 7 (depends on 6)

The multicore programming apparatus of claim 6, wherein the multicore program loader executes the binary code by copying a shared section of the binary code in the shared area and copying a nonshared section in the nonshared area.

### Claim 8

A multicore programming method which is to develop a multicore program to be executed in a target board on which a memory and a multicore are mounted, the method comprising:
partitioning the memory into a shared area and a nonshared area based on memory map specification; and
generating a binary code corresponding to a multicore by compiling the program,
wherein the binary code is generated to store the variable in the shared or the nonshared area of the memory according to shareable attributes of a variable which is explicitly declared in the program.

### Claim 9 (depends on 8)

The multicore programming method of claim 8, wherein the memory map specification comprises at least one of shared or nonshared area allocation availability of a variable of which shareable attribute is not explicitly declared, the number of cores, a physical memory size, and size information of the allocated shared or nonshared area.

### Claim 10 (depends on 9)

The multicore programming method of claim 9, wherein the memory map specification is made by a user.

### Claim 11 (depends on 8)

The multicore programming method of claim 8, further comprising generating a link script based on the memory map specification prior to compiling the multicore program,
wherein the link script is used to generate a shared section or a nonshared section, in which the variable of which the shareable attribute is explicitly declared is to be stored, in the binary code during compiling the program.

### Claim 12 (depends on 11)

The multicore programming method of claim 11, wherein when it is set for the variable, of which the shareable attribute is not explicitly declared in the memory map specification, to be allocated in the nonshared area of the memory, the link script lets a shared section, in which the variable of which the shareable attribute is explicitly declared as ‘shared’ is to be stored, be generated in the binary code.

### Claim 13 (depends on 11)

The multicore programming method of claim 11, wherein when it is set for the variable of which a shareable attribute is not explicitly declared in the memory map specification to be allocated in the shared area of the memory, the link script lets a nonshared section, in which the variable of which the shareable attribute is explicitly declared as ‘nonshared’ are to be stored, be generated in the binary code.

### Claim 14 (depends on 8)

The multicore programming method of claim 8, further comprising executing the binary code on the target board,
wherein the shared section included in the binary code is stored in the shared area and the nonshared section included in the binary code is stored in the nonshared area.
