CN113220287A - Computer automatic programming method, system, terminal and storage medium - Google Patents

Computer automatic programming method, system, terminal and storage medium Download PDF

Info

Publication number
CN113220287A
CN113220287A CN202110543602.1A CN202110543602A CN113220287A CN 113220287 A CN113220287 A CN 113220287A CN 202110543602 A CN202110543602 A CN 202110543602A CN 113220287 A CN113220287 A CN 113220287A
Authority
CN
China
Prior art keywords
instruction
binary code
user
formatted binary
microprocessor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110543602.1A
Other languages
Chinese (zh)
Other versions
CN113220287B (en
Inventor
杜铭枢
郭世杰
杜晓通
郭李阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Humanoid Thinking Shandong Intelligent Technology Co ltd
Original Assignee
Humanoid Thinking Shandong Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Humanoid Thinking Shandong Intelligent Technology Co ltd filed Critical Humanoid Thinking Shandong Intelligent Technology Co ltd
Priority to CN202110543602.1A priority Critical patent/CN113220287B/en
Publication of CN113220287A publication Critical patent/CN113220287A/en
Application granted granted Critical
Publication of CN113220287B publication Critical patent/CN113220287B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • G06F8/447Target code generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/22Microcontrol or microprogram arrangements
    • G06F9/223Execution means for microinstructions irrespective of the microinstruction function, e.g. decoding of microinstructions and nanoinstructions; timing of microinstructions; programmable logic arrays; delays and fan-out problems

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Communication Control (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a computer automatic programming method, a system, a terminal and a storage medium, comprising the following steps: collecting a user instruction generated by a manual interaction interface, and arranging the user instruction into a programming file; converting the programming file into a formatted binary code set according to a conversion rule of a user instruction and a formatted binary code which is formulated in advance; and transmitting the formatted binary code set to a microprocessor, and interpreting the formatted binary code set by an interpreter in the microprocessor. The invention can convert the human language input through the human-computer interaction interface into the computer programming language, generate the corresponding computer program according to the user instruction input by the human-computer interaction interface and execute the computer program, thereby greatly improving the computer programming efficiency and reducing the programming cost.

Description

Computer automatic programming method, system, terminal and storage medium
Technical Field
The invention relates to the technical field of programming, in particular to a computer automatic programming method, a system, a terminal and a storage medium.
Background
Currently, computer programming is performed according to the grammatical format of the computer programming language used. The computer programming language is self-organized, so that the computer programming needs manual programming by professionals, the program development cost is high, the manual programming efficiency is low, and the programming time cost is increased.
Disclosure of Invention
In view of the above-mentioned deficiencies of the prior art, the present invention provides a method, a system, a terminal and a storage medium for automatic computer programming, so as to solve the above-mentioned technical problems.
In a first aspect, the present invention provides a computer-automated programming method, comprising:
collecting a user instruction generated by a manual interaction interface, and arranging the user instruction into a programming file;
converting the programming file into a formatted binary code set according to a conversion rule of a user instruction and a formatted binary code which is formulated in advance;
and transmitting the formatted binary code set to a microprocessor, and interpreting the formatted binary code set by an interpreter in the microprocessor.
Further, collecting a user instruction generated by the human interactive interface, and arranging the user instruction into a programming file, including:
collecting a user instruction generated by a manual interaction interface according to user operation, wherein the user operation comprises the steps that a user selects graphics and menu options in the manual interaction interface, and text and voice input by the user, and the user instruction is a text instruction converted by the user operation;
and summarizing and saving all text instructions to a programming file.
Further, converting the programming file into a formatted binary code set according to a conversion rule between a user instruction and a formatted binary code, which is formulated in advance, includes:
the method comprises the steps of storing various assembly instructions and text instructions corresponding to the assembly instructions in advance, and constructing a mapping relation between the assembly instructions and the text instructions, wherein the assembly instructions comprise code command names, code function names and variable parameters;
analyzing a text instruction in a programming file and an instruction variable of the text instruction, and converting the text instruction into a matching assembly instruction according to the mapping relation;
and performing binary conversion on the matched assembly instruction by using a translator to obtain a formatted binary code corresponding to the text instruction, wherein the formatted binary code is a protocol frame conforming to a network communication protocol, and the protocol frame comprises an instruction frame, a response frame and an information frame.
Further, transmitting the formatted binary code set to a microprocessor, and performing interpretation operation on the formatted binary code set by an interpreter in the microprocessor, wherein the interpretation operation comprises:
and sending the formatted binary code set to a microprocessor through a TCP/IP protocol, storing the formatted binary code set in a nonvolatile memory of the microprocessor, loading the formatted binary code set in the nonvolatile memory into a cache by the microprocessor, interpreting the formatted binary code in the cache one by an interpreter, and executing the interpreted formatted binary code by the microprocessor.
In a second aspect, the present invention provides a computer automated programming system comprising:
the instruction sorting unit is used for collecting user instructions generated by the manual interaction interface and sorting the user instructions into a programming file;
the instruction conversion unit is used for converting the programming file into a formatted binary code set according to a conversion rule of a user instruction and a formatted binary code which is preset;
and the instruction sending unit is used for transmitting the formatted binary code set to the microprocessor, and an interpreter in the microprocessor interprets and operates the formatted binary code set.
Further, the instruction sorting unit includes:
the input acquisition module is used for acquiring a user instruction generated by the manual interaction interface according to user operation, wherein the user operation comprises the steps that a user selects graphics and menu options in the manual interaction interface, and text and voice input by the user, and the user instruction is a text instruction converted from the user operation;
and the instruction summarizing module is used for summarizing and storing all text instructions to the programming file.
Further, the instruction converting unit includes:
the mapping construction module is used for pre-storing various assembly instructions and text instructions corresponding to the assembly instructions and constructing a mapping relation between the assembly instructions and the text instructions, wherein the assembly instructions comprise code command names, code function names and variable parameters;
the file analysis module is used for analyzing a text instruction in a programming file and converting the text instruction into a matching assembly instruction according to the mapping relation;
and the instruction translation module is used for carrying out binary conversion on the matched assembly instruction by utilizing the translator to obtain a formatted binary code corresponding to the text instruction, wherein the formatted binary code is a protocol frame conforming to a network communication protocol, and the protocol frame comprises an instruction frame, a response frame and an information frame.
Further, the instruction sending unit is configured to:
and sending the formatted binary code set to a microprocessor through a TCP/IP protocol, storing the formatted binary code set in a nonvolatile memory of the microprocessor, loading the formatted binary code set in the nonvolatile memory into a cache by the microprocessor, interpreting the formatted binary code in the cache one by an interpreter, and executing the interpreted formatted binary code by the microprocessor.
In a third aspect, a terminal is provided, including:
a processor, a memory, wherein,
the memory is used for storing a computer program which,
the processor is used for calling and running the computer program from the memory so as to make the terminal execute the method of the terminal.
In a fourth aspect, a computer storage medium is provided having stored therein instructions that, when executed on a computer, cause the computer to perform the method of the above aspects.
The beneficial effect of the invention is that,
the computer automatic programming method, the system, the terminal and the storage medium provided by the invention can convert human language input through the human-computer interaction interface into computer programming language, generate corresponding computer program according to user instruction input by the human-computer interaction interface and execute the computer program, thereby greatly improving the computer programming efficiency and reducing the programming cost.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention.
FIG. 2 is a schematic block diagram of a system of one embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention. The execution subject in fig. 1 may be a computer automated programming system.
As shown in fig. 1, the method includes:
step 110, collecting a user instruction generated by a manual interaction interface, and arranging the user instruction into a programming file;
step 120, converting the programming file into a formatted binary code set according to a conversion rule of a user instruction and a formatted binary code which is made in advance;
and step 130, transmitting the formatted binary code set to a microprocessor, and interpreting and operating the formatted binary code set by an interpreter in the microprocessor.
In order to facilitate understanding of the present invention, the computer automatic programming method provided by the present invention will be further described below with reference to the following embodiments.
Specifically, the computer automatic programming method comprises the following steps:
and S1, collecting the user instructions generated by the manual interaction interface, and arranging the user instructions into a programming file.
Specifically, a user instruction generated by the manual interaction interface according to user operation is collected, wherein the user operation comprises the steps that a user selects graphics and menu options in the manual interaction interface, text and voice input by the user are collected, and the user instruction is a text instruction converted by the user operation; and summarizing and saving all text instructions to a programming file.
The manual interaction interface is provided with a menu, and a user can select a target graph or a target programming option (such as creating a virtual network port) through the menu and also can directly input text and voice. The manual interaction interface uniformly converts the content input by the user into user instructions in text format, and stores the user instructions in all text formats into a programming file.
The multi-source input of the manual instruction is realized through the human-computer interaction interface and the instruction conversion function, and the user experience is improved.
And S2, converting the programming file into a formatted binary code set according to a preset conversion rule of a user instruction and a formatted binary code.
The method comprises the steps of storing various types of assembly instructions and text instructions corresponding to the various assembly instructions in advance, and constructing a mapping relation between the assembly instructions and the text instructions, wherein the assembly instructions comprise code command names, code function names and variable parameters, such as mov-move, add-add, rep-repeat, for-loop execution and the like.
Selecting a target user instruction from the programming file, extracting a keyword and an identifier from the user instruction, and converting the keyword into a corresponding code according to the mapping relation, wherein the identifier comprises a macro definition, a global variable, a function name, an instruction name, a register parameter, an immediate parameter and the like. And storing the words in a global structure according to the programming specification requirement while acquiring the words, and constructing a program framework. For example, a function should belong to a file, an instruction should belong to a function, and a parameter should belong to an instruction. Thereby converting the target user instruction into a code instruction.
In order to send the converted programming file to the microprocessor through the TCP/IP protocol, the programming file needs to be converted into Modbus protocol frames, where the protocol frames include a command frame, a response frame, and an information frame, and the format of the protocol frames is shown in table 1. The information frame is a frame type transmitted from the controller to the server, the content of the frame is mainly the port quantity of some generalized IO of the port system, and the information frame plays a role in monitoring various types of state information; the response frame is similar to the information frame, and the destination device is also a server. The response frame contains only the correct and incorrect information of the instruction frame processing procedure. The key to the implementation of the core function of the interpretation control system is the design and generation of the instruction frame. In practical control applications, instruction frames are usually generated by a particular data transformation for friendly thinking configuration interfaces, and the software system for generating the instruction frames by the transformation is called a translator.
TABLE 1 general instruction set Format description
Figure BDA0003072651070000071
DFS: (Data frame start), a frame start, to distinguish the instruction set from other format Data.
FTP: (File type), frame type, for discrimination of each functional instruction frame.
RES: (Reserved), field Reserved, default to 0x 0001.
And (3) LEN: (Lenth), an effective frame length field, for unpacking and unframing of large data.
Data: data field, specific content of the frame.
True/False: a positive error field. The response frame is unique, a True field is selected in a correct response mode, and a fast field is selected in an error response mode;
LIP: (Local IP): a local IP field. The information frame is unique;
CheckSum: and checking, wherein the simplified writing method is 'C _ S', and the value of the sum is that all the fields in the front are subjected to unsigned sum. Since the response frame has no data field and is light in weight, no checksum field is added.
In this embodiment, the program code of the programming file is converted into the Modbus protocol frame by the translator, and the specific method is as follows:
according to a preset command encoding table (such as table 1), each part of the code instruction is converted into a 2-system number, and the vacancy is complemented. Mainly comprises translating an instruction into a command encoding, and translating an operand into a register address, an on-chip memory area address or an immediate according to the type.
After a user selects control equipment and configures a control strategy according to a self thinking mode, the obtained code is handed to a translator, the translator fills fields such as a frame start symbol (DFS), a Frame Type (FTP) and the like into a specific area of a memory according to a specific instruction set format, a single complete instruction frame is formed after modular assembly, and finally the instruction frame is transmitted to a microprocessor (target MCU) for expression through network transmission.
And S3, transmitting the formatted binary code set to a microprocessor, and interpreting and operating the formatted binary code set by an interpreter in the microprocessor.
And sending the formatted binary code set finally obtained in the step S2 to the microprocessor through a TCP/IP protocol. The microprocessor stores the formatted binary code set into a nonvolatile memory of the microprocessor, and data loss caused by accidental power failure of the microprocessor is avoided. The microprocessor loads the formatted binary code set in the nonvolatile memory into the cache, the interpreter interprets the formatted binary codes in the cache one by one, and the interpreted formatted binary codes are executed by the microprocessor. An Interpreter (english: Interpreter), also known as an Interpreter, is a computer program that can translate and run high-level programming languages line by line. The interpreter does not translate the whole program at a time, just like a 'man in the middle', and the program is converted into another language and then executed each time the program is executed, so the program running speed of the interpreter is slower. It runs immediately each time it translates a row of program statements, then translates the next row, then runs, and so on.
As shown in fig. 2, the system 200 includes:
the instruction sorting unit 210 is configured to collect a user instruction generated by the human interactive interface, and sort the user instruction into a programming file;
the instruction converting unit 220 is configured to convert the programming file into a formatted binary code set according to a conversion rule between a user instruction and a formatted binary code, which is set in advance;
and the instruction sending unit 230 is configured to transmit the formatted binary code set to the microprocessor, and an interpreter in the microprocessor interprets and runs the formatted binary code set.
Optionally, as an embodiment of the present invention, the instruction sorting unit includes:
the input acquisition module is used for acquiring a user instruction generated by the manual interaction interface according to user operation, wherein the user operation comprises the steps that a user selects graphics and menu options in the manual interaction interface, and text and voice input by the user, and the user instruction is a text instruction converted from the user operation;
and the instruction summarizing module is used for summarizing and storing all text instructions to the programming file.
Optionally, as an embodiment of the present invention, the instruction converting unit includes:
the mapping construction module is used for pre-storing various assembly instructions and text instructions corresponding to the assembly instructions and constructing a mapping relation between the assembly instructions and the text instructions, wherein the assembly instructions comprise code command names, code function names and variable parameters;
the file analysis module is used for analyzing a text instruction in a programming file and converting the text instruction into a matching assembly instruction according to the mapping relation;
and the instruction translation module is used for carrying out binary conversion on the matched assembly instruction by utilizing the translator to obtain a formatted binary code corresponding to the text instruction, wherein the formatted binary code is a protocol frame conforming to a network communication protocol, and the protocol frame comprises an instruction frame, a response frame and an information frame.
Optionally, as an embodiment of the present invention, the instruction sending unit is configured to:
and sending the formatted binary code set to a microprocessor through a TCP/IP protocol, storing the formatted binary code set in a nonvolatile memory of the microprocessor, loading the formatted binary code set in the nonvolatile memory into a cache by the microprocessor, interpreting the formatted binary code in the cache one by an interpreter, and executing the interpreted formatted binary code by the microprocessor.
Fig. 3 is a schematic structural diagram of a terminal 300 according to an embodiment of the present invention, where the terminal 300 may be used to execute the computer automatic programming method according to the embodiment of the present invention.
Among them, the terminal 300 may include: a processor 310, a memory 320, and a communication unit 330. The components communicate via one or more buses, and those skilled in the art will appreciate that the architecture of the servers shown in the figures is not intended to be limiting, and may be a bus architecture, a star architecture, a combination of more or less components than those shown, or a different arrangement of components.
The memory 320 may be used for storing instructions executed by the processor 310, and the memory 320 may be implemented by any type of volatile or non-volatile storage terminal or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The executable instructions in memory 320, when executed by processor 310, enable terminal 300 to perform some or all of the steps in the method embodiments described below.
The processor 310 is a control center of the storage terminal, connects various parts of the entire electronic terminal using various interfaces and lines, and performs various functions of the electronic terminal and/or processes data by operating or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory. The processor may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, the processor 310 may include only a Central Processing Unit (CPU). In the embodiment of the present invention, the CPU may be a single operation core, or may include multiple operation cores.
A communication unit 330, configured to establish a communication channel so that the storage terminal can communicate with other terminals. And receiving user data sent by other terminals or sending the user data to other terminals.
The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and the program may include some or all of the steps in the embodiments provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Therefore, the human language input through the human-computer interaction interface can be converted into the computer programming language, the corresponding computer program is generated according to the user instruction input through the human-computer interaction interface, and the computer program is executed, so that the computer programming efficiency is greatly improved, the programming cost is reduced, and the technical effect achieved by the embodiment can be referred to the description above, and is not repeated herein.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in the form of a software product, where the computer software product is stored in a storage medium, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like, and the storage medium can store program codes, and includes instructions for enabling a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, and the like) to perform all or part of the steps of the method in the embodiments of the present invention.
The same and similar parts in the various embodiments in this specification may be referred to each other. Especially, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant points can be referred to the description in the method embodiment.
In the embodiments provided in the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, systems or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A computer automated programming method, comprising:
collecting a user instruction generated by a manual interaction interface, and arranging the user instruction into a programming file;
converting the programming file into a formatted binary code set according to a conversion rule of a user instruction and a formatted binary code which is formulated in advance;
and transmitting the formatted binary code set to a microprocessor, and interpreting the formatted binary code set by an interpreter in the microprocessor.
2. The method of claim 1, wherein collecting user instructions generated by a human interactive interface and arranging the user instructions into a programming file comprises:
collecting a user instruction generated by a manual interaction interface according to user operation, wherein the user operation comprises the steps that a user selects graphics and menu options in the manual interaction interface, and text and voice input by the user, and the user instruction is a text instruction converted by the user operation;
and summarizing and saving all text instructions to a programming file.
3. The method of claim 2, wherein converting the programming file into a set of formatted binary codes according to a pre-established user command and conversion rule of the formatted binary codes comprises:
the method comprises the steps of storing various assembly instructions and text instructions corresponding to the assembly instructions in advance, and constructing a mapping relation between the assembly instructions and the text instructions, wherein the assembly instructions comprise code command names, code function names and variable parameters;
analyzing a text instruction in a programming file and an instruction variable of the text instruction, and converting the text instruction into a matching assembly instruction according to the mapping relation;
and performing binary conversion on the matched assembly instruction by using a translator to obtain a formatted binary code corresponding to the text instruction, wherein the formatted binary code is a protocol frame conforming to a network communication protocol, and the protocol frame comprises an instruction frame, a response frame and an information frame.
4. The method of claim 3, wherein transmitting the formatted binary set to a microprocessor, the formatted binary set being interpreted by an interpreter in the microprocessor, comprises:
and sending the formatted binary code set to a microprocessor through a TCP/IP protocol, storing the formatted binary code set in a nonvolatile memory of the microprocessor, loading the formatted binary code set in the nonvolatile memory into a cache by the microprocessor, interpreting the formatted binary code in the cache one by an interpreter, and executing the interpreted formatted binary code by the microprocessor.
5. A computer automated programming system, comprising:
the instruction sorting unit is used for collecting user instructions generated by the manual interaction interface and sorting the user instructions into a programming file;
the instruction conversion unit is used for converting the programming file into a formatted binary code set according to a conversion rule of a user instruction and a formatted binary code which is preset;
and the instruction sending unit is used for transmitting the formatted binary code set to the microprocessor, and an interpreter in the microprocessor interprets and operates the formatted binary code set.
6. The system of claim 5, wherein the instruction marshalling unit comprises:
the input acquisition module is used for acquiring a user instruction generated by the manual interaction interface according to user operation, wherein the user operation comprises the steps that a user selects graphics and menu options in the manual interaction interface, and text and voice input by the user, and the user instruction is a text instruction converted from the user operation;
and the instruction summarizing module is used for summarizing and storing all text instructions to the programming file.
7. The system of claim 6, wherein the instruction conversion unit comprises:
the mapping construction module is used for pre-storing various assembly instructions and text instructions corresponding to the assembly instructions and constructing a mapping relation between the assembly instructions and the text instructions, wherein the assembly instructions comprise code command names, code function names and variable parameters;
the file analysis module is used for analyzing a text instruction in a programming file and converting the text instruction into a matching assembly instruction according to the mapping relation;
and the instruction translation module is used for carrying out binary conversion on the matched assembly instruction by utilizing the translator to obtain a formatted binary code corresponding to the text instruction, wherein the formatted binary code is a protocol frame conforming to a network communication protocol, and the protocol frame comprises an instruction frame, a response frame and an information frame.
8. The system of claim 7, wherein the instruction sending unit is configured to:
and sending the formatted binary code set to a microprocessor through a TCP/IP protocol, storing the formatted binary code set in a nonvolatile memory of the microprocessor, loading the formatted binary code set in the nonvolatile memory into a cache by the microprocessor, interpreting the formatted binary code in the cache one by an interpreter, and executing the interpreted formatted binary code by the microprocessor.
9. A terminal, comprising:
a processor;
a memory for storing instructions for execution by the processor;
wherein the processor is configured to perform the method of any one of claims 1-4.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-4.
CN202110543602.1A 2021-05-19 2021-05-19 Computer automatic programming method, system, terminal and storage medium Active CN113220287B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110543602.1A CN113220287B (en) 2021-05-19 2021-05-19 Computer automatic programming method, system, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110543602.1A CN113220287B (en) 2021-05-19 2021-05-19 Computer automatic programming method, system, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN113220287A true CN113220287A (en) 2021-08-06
CN113220287B CN113220287B (en) 2024-06-11

Family

ID=77092850

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110543602.1A Active CN113220287B (en) 2021-05-19 2021-05-19 Computer automatic programming method, system, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN113220287B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102681821A (en) * 2011-12-31 2012-09-19 浙江大学 Binary tool set designing method based on C-SKY v2 instruction set
CN102792640A (en) * 2009-11-06 2012-11-21 Somfy两合公司 Communication of commands in a home automation network and between home automation networks
CN104471960A (en) * 2012-07-15 2015-03-25 高通股份有限公司 Systems, methods, apparatus, and computer-readable media for backward-compatible audio coding
US20150160886A1 (en) * 2013-12-05 2015-06-11 Lsi Corporation METHOD AND SYSTEM FOR PROGRAMMABLE SEQUENCER FOR PROCESSING I/O FOR VARIOUS PCIe DISK DRIVES
CN112486906A (en) * 2020-12-18 2021-03-12 清华大学 Formatted reconfigurable processor assembly instruction processing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102792640A (en) * 2009-11-06 2012-11-21 Somfy两合公司 Communication of commands in a home automation network and between home automation networks
CN102681821A (en) * 2011-12-31 2012-09-19 浙江大学 Binary tool set designing method based on C-SKY v2 instruction set
CN104471960A (en) * 2012-07-15 2015-03-25 高通股份有限公司 Systems, methods, apparatus, and computer-readable media for backward-compatible audio coding
US20150160886A1 (en) * 2013-12-05 2015-06-11 Lsi Corporation METHOD AND SYSTEM FOR PROGRAMMABLE SEQUENCER FOR PROCESSING I/O FOR VARIOUS PCIe DISK DRIVES
CN112486906A (en) * 2020-12-18 2021-03-12 清华大学 Formatted reconfigurable processor assembly instruction processing method and device

Also Published As

Publication number Publication date
CN113220287B (en) 2024-06-11

Similar Documents

Publication Publication Date Title
CN104156313A (en) Method for automatically generating Web service testing case
CN114218890A (en) Page rendering method and device, electronic equipment and storage medium
CN115113922A (en) Method, device, equipment and storage medium for realizing stack-free coroutine
CN112015374B (en) Cross-programming-language micro-service integration system based on natural language
CN113220287A (en) Computer automatic programming method, system, terminal and storage medium
CN111079909B (en) Operation method, system and related product
CN111079916B (en) Operation method, system and related product
CN115017150A (en) High-code-rate telemetering data processing method
CN107391133A (en) A kind of application generator
CN111078291B (en) Operation method, system and related product
CN112559039B (en) Instruction set generation method and system for computer programming
CN113138803B (en) Instruction set storage system for computer programming
CN111079914B (en) Operation method, system and related product
CN111078281B (en) Operation method, system and related product
CN111078285B (en) Operation method, system and related product
CN111079911B (en) Operation method, system and related product
CN111625749B (en) Method, device, equipment and medium for extracting website detail page information of participant company
CN111078125B (en) Operation method, device and related product
CN109032724B (en) Method, device, terminal and storage medium for processing user-defined bullet screen message
CN111078293B (en) Operation method, device and related product
CN111079912B (en) Operation method, system and related product
CN111078283B (en) Operation method, device and related product
CN117762416A (en) Script generation method, message analysis method, device, medium and equipment
CN113064788A (en) BMC signal analysis method, system, terminal and storage medium
CN116028744A (en) Map resource loading method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant