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

Implementation method and system of embedded C compiler

An implementation method and technology for implementing a system, applied in memory systems, code compilation, instruments, etc., can solve problems such as learning programming languages, execution efficiency, stability and reliability problems, and achieve fast execution efficiency, improved convenience, The effect of good economic and social benefits

Active Publication Date: 2016-08-10
深圳市金玺智控技术有限公司
View PDF7 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, the technology in this field is not very mature. General configuration software only provides interpreted scripting languages, such as Basic, Shell, Perl, etc., to directly interpret and execute source programs. There are problems in all aspects, and because it is not a universal language, it is very difficult for programming interface developers to relearn the programming language

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
  • Implementation method and system of embedded C compiler
  • Implementation method and system of embedded C compiler

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

[0040] Such as figure 1 Shown, a kind of realization method of embedded C compiler, it comprises the following steps:

[0041] Step A: Create an interpreted language script to compile the C language source code written by the user on the PC side into the target code of the specified execution address;

[0042] Step B: Write the object code into the embedded lower computer to specify the compilation address;

[0043] Step C: the lower computer creates a site protection mechanism, and then executes the target code;

[0044] Step D: After the lower computer executes the target code, it jumps to the site protection position, restores the scene, and continues to execute other codes of the lower computer.

[0045] Further as a preferred embodiment, step A specifically includes:

[0046] A1: Specify the stora...

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 an implementation method and system of an embedded C compiler. The method comprises the following steps: A: creating an interpreted language script, and compiling a C language source code compiled on a PC (Personal Computer) side by a user into a target code of an appointed executive address; B: writing the target code into the appointed compiling address of an embedded lower computer; C: creating a file protection mechanism by the lower computer, and then, executing the target code; and D: after the lower computer finishes executing the target code, jumping to a file protection position, carrying out field recovery, and continuously executing other codes of the lower computer. The system comprises the PC side and an upper computer. The compiled code of a client is converted into a target language, i.e., a machine code which can be identified by an industrial controller. Meanwhile, execution efficiency is quick, the research and development convenience of the user in the field of configuration software is greatly improved, and the implementation method and system has good economic and social benefit. The implementation method and system of the embedded C compiler can be widely applied to the field of the configuration software.

Description

technical field [0001] The invention relates to the field of configuration software, in particular to an implementation method and system of an embedded C compiler. Background technique [0002] Embedded system itself does not have the ability of self-development, it must have cross-compilation and debugging development environment to develop. Computers cannot directly understand high-level languages, but only machine languages. Therefore, high-level languages ​​must be translated into machine languages ​​before computers can execute programs written in high-level languages. [0003] At present, there are mainly two languages ​​based on embedded systems, interpreted languages ​​and compiled languages. Before the program is executed, the compiled language has a separate compilation process to translate the program into machine language. When the program is executed later, there is no need to translate it. An interpreted language translates a program into machine language at...

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 Applications(China)
IPC IPC(8): G06F9/45
CPCG06F8/41
Inventor 李镇莫勇
Owner 深圳市金玺智控技术有限公司
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