Unlock instant, AI-driven research and patent intelligence for your innovation.

A compiling method and a compiler

A compilation method and compiler technology, applied in the direction of code compilation, program code conversion, comprehensive factory control, etc., can solve problems such as price differences in usage habits, no support for customization, and inability to solve in time, to improve robustness and facilitate expansion. Effect

Active Publication Date: 2019-06-21
中安智联未来有限公司
View PDF13 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Most of the current PLC compilers are monopolized by foreign companies. However, during the use of these foreign software, there will be problems such as differences in usage habits and price issues. Problems encountered during use cannot be solved in time, and they do not support customization.

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
  • A compiling method and a compiler
  • A compiling method and a compiler
  • A compiling method and a compiler

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0038] It should be understood that when used in this specification and the appended claims, the terms "comprising" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude one or Presence or addition of multiple other features, integers, steps, operations, elements, components and / or collections thereof.

[0039] It should also be understood that the terminology 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
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a compiling method and a compiler. The method comprises the following steps: obtaining a source program to be compiled; Judging a language type in the source program to be compiled to obtain a source program type, if the source program type comprises an IL language program and a non-IL language program, carrying out language conversion, and then checking errors in the program by adopting a lexical analysis method; Performing semantic analysis on the program until no error information exists; After semantic analysis, converting the program into a machine language file, and performing segmented storage on the machine language file. The method has the advantages that all languages in a source program can be converted into IL languages, a user can use the compiler moreflexibly, when other languages are expanded, the modification range is compressed to be within a very small range, in this way, the robustness of the compiler is fully improved, in addition, the generated file adopts a segment storage mode, and other functions can be expanded very conveniently.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a compilation method and a compiler. Background technique [0002] The compilation process refers to the process of translating a source program written in a high-level language into a target program. The target program is written in a low-level language (assembly language or machine language) recognizable by a computer, and the functions of the translated target program are the same as those of the original The source program functions are the same. Finally, the computer obtains the processing result by executing the target program. [0003] Most of the current PLC compilers are monopolized by foreign companies. However, during the use of these foreign software, there will be problems such as differences in usage habits and prices. Problems encountered during use cannot be solved in time, and they do not support customization. . Contents of the invention [0004] Aiming 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): G06F8/41
CPCY02P90/02
Inventor 马锦宝李志刚
Owner 中安智联未来有限公司