C language extension and compilation system supporting method used for polycaryon

A technology of compiling system and C language, applied in the field of C language expansion and compiling system support for multi-core, can solve the problems of indistinguishable programs of processors, no definition of processors, etc., to achieve the effect of easy acceptance and simple application

Inactive Publication Date: 2010-08-04
孙斌
View PDF2 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] First of all, the keywords defined by the C language program do not define the keywords for the processor, so when designing all programs, it is not possible to distinguish

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
  • C language extension and compilation system supporting method used for polycaryon
  • C language extension and compilation system supporting method used for polycaryon
  • C language extension and compilation system supporting method used for polycaryon

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0067] A preferred embodiment of the present invention is described in detail as follows in conjunction with accompanying drawing:

[0068] For Freescale's dual-core processor MC9S12XEP100, we use the following routine:

[0069] Routine 1:

[0070] #include / *commondefinesandmacros* /

[0071] #include "derivative.h" / *derivative-specific definitions* /

[0072] INT16UTimInterCount;

[0073] voidTIME_INIT(void){

[0074] ECT_TSCR2=0x05;

[0075] ECT_TSCR1=0x87;

[0076] } / / Allow the main timer to start counting

[0077] voidMain()

[0078] {

[0079] INT16Ui;

[0080] TimInterCount=0;

[0081] TIME_INIT(); / / TimerInitialFunction

[0082] for(;;;)

[0083] {

[0084] If(TimInterCount>5000)

[0085] {PB6=~PB6;

[0086] TimInterCount=0;}

[0087] }

[0088] }

[0089] #pragmaCODE_SEGNON_BANKED

[0090] __interrupt16voidtimerbreak(void)

[0091] {

[0092] DisableInterrupts; / / Turn off total interrupts

[0093] TimI...

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 relates to an extension method based on the existing standard C language so that the existing C language specification can be applied to the program design of a polycaryon processor. In addition, the invention describes a method for correspondingly improving the existing C language compilation system, so that the existing C language compilation system can support the improved method and can also complete the compilation work of the polycaryon program. Source program is marked according to different processor nuclei and public storage regions through adding keywords of MCU and PUB, in addition, the source program is processed into source program files realizing the correspondence according to different processor nuclei and public storage regions under the processing of C language prepositive compilation program related by the invention, then, a traditional C language compilation system is invoked for compilation, finally, one or a plurality of binary program files are obtained, and system operation is carried out. The invention adopts a keyword adding method for extending the C language program on the basis of the existing C language system, realizes the compatibility of all C language functional definition modules in the extension C language, has simple application, and can be easily accepted. The compilation according to the traditional C language can be ensured, and the binary program files used for the polycaryon processor can be compiled. Under the condition that the prepositive compilation program of the invention is added, the compilation can be carried out on the polycaryon processor, executable files are generated, and the extension of the existing compilation software is convenient, and the invention can realize the compilation aiming at the polycaryon.

Description

technical field [0001] The invention relates to an extension method based on the existing standard C language and a compiling system support method thereof, so that the existing C language specification can be applied to the program design of multi-core processors. It also describes a corresponding improvement method to the existing C language compilation system, so that it can support the above-mentioned improvement method and complete the compilation work of multi-core programs. Background technique [0002] At present, the development direction of processors has changed from simply increasing the operating speed of processors to the direction of multi-core processors. In the field of embedded systems, the development of multi-core processor processor compilation systems has just started, and the development is limited. Most of the intellectual property rights are also in the hands of foreign companies. [0003] A so-called single-core processor is generally defined as a ...

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/44G06F9/45
Inventor 孙斌
Owner 孙斌
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products