CN113220287B - 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
CN113220287B
CN113220287B CN202110543602.1A CN202110543602A CN113220287B CN 113220287 B CN113220287 B CN 113220287B CN 202110543602 A CN202110543602 A CN 202110543602A CN 113220287 B CN113220287 B CN 113220287B
Authority
CN
China
Prior art keywords
instruction
binary code
instructions
user
formatted binary
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.)
Active
Application number
CN202110543602.1A
Other languages
Chinese (zh)
Other versions
CN113220287A (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

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)
  • Stored Programmes (AREA)
  • Communication Control (AREA)

Abstract

The invention provides a computer automatic programming method, a system, a terminal and a storage medium, comprising the following steps: collecting user instructions generated by a manual interaction interface, and sorting the user instructions into programming files; converting the programming file into a formatted binary code set according to a preset user instruction and a formatted binary code conversion rule; 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. The invention can convert the human language input through the human-computer interaction interface into the computer programming language, generate corresponding computer programs according to the user instructions input by the human-computer interaction interface and execute the computer programs, 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
Computer programming is currently performed in accordance with the grammatical format of the computer programming language used. The computer programming language is self-organized, so that the computer programming needs to be manually programmed by a professional, the development cost of the program is high, the manual programming efficiency is low, and the programming time cost is increased.
Disclosure of Invention
In order to solve the above-mentioned shortcomings of the prior art, the present invention provides a method, a system, a terminal and a storage medium for automatically programming a computer, so as to solve the above-mentioned technical problems.
In a first aspect, the present invention provides a computer automated programming method comprising:
Collecting user instructions generated by a manual interaction interface, and sorting the user instructions into programming files;
converting the programming file into a formatted binary code set according to a preset user instruction and a formatted binary code conversion rule;
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.
Further, collecting a user instruction generated by the manual interaction interface, and sorting 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, text and voice input by the user, and the user instruction is a text instruction converted by the user operation;
and all the text instructions are summarized and stored in a programming file.
Further, according to a conversion rule of a predetermined user instruction and a formatted binary code, converting the programming file into a formatted binary code set includes:
The method comprises the steps of storing multiple 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;
analyzing a text instruction and instruction variables of the text instruction in a programming file, and converting the text instruction into a matching assembly instruction according to the mapping relation;
and carrying out 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 method comprises the following steps:
And sending the formatted binary code set to the microprocessor through a TCP/IP protocol, storing the formatted binary code set into 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 an automatic programming system for a computer, comprising:
the instruction arrangement unit is used for collecting user instructions generated by the manual interaction interface and arranging the user instructions into programming files;
The instruction conversion unit is used for converting the programming file into a formatted binary code set according to a preset user instruction and a formatted binary code conversion rule;
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 runs 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 selection of a graph and a menu option in the manual interaction interface by a user, and the input of a text and a voice by the user, and the user instruction is a text instruction converted by the user operation;
and the instruction summarizing module is used for summarizing and storing all the text instructions into the programming file.
Further, the instruction converting unit includes:
The mapping construction module is used for storing various assembly instructions and text instructions corresponding to the various assembly instructions in advance, and constructing the 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 text instructions in the programming file and converting the text instructions into matching assembly instructions according to the mapping relation;
The instruction translation module is used for binary converting 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 the microprocessor through a TCP/IP protocol, storing the formatted binary code set into 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,
The processor is configured to call and run the computer program from the memory, so that the terminal performs the method of the terminal as described above.
In a fourth aspect, there is provided a computer storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the method of the above aspects.
The invention has the advantages that,
The automatic programming method, the system, the terminal and the storage medium of the computer 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 programming efficiency of the computer 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 of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic flow chart 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 the technical solution of the present invention better understood by those skilled in the art, the technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
FIG. 1 is a schematic flow chart of a method of one embodiment of the invention. Wherein, the execution subject of fig. 1 may be a computer automatic programming system.
As shown in fig. 1, the method includes:
Step 110, collecting user instructions generated by a manual interaction interface, and sorting the user instructions into programming files;
Step 120, converting the programming file into a formatted binary code set according to a pre-established conversion rule of a user instruction and a formatted binary code;
And 130, 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.
In order to facilitate understanding of the present invention, the principles of the computer automatic programming method according to the present invention will be described in detail below with reference to the embodiments.
Specifically, the computer automatic programming method comprises the following steps:
s1, collecting user instructions generated by a manual interaction interface, and sorting the user instructions into programming files.
Specifically, 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 a graph and a menu option in the manual interaction interface, and a text and a voice input by the user are converted into the text instruction by the user operation; and all the text instructions are summarized and stored in 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 can also directly input text and voice. And the manual interaction interface uniformly converts the content input by the user into user instructions in a text format, and stores the user instructions in all the text formats into a programming file.
The multi-source input of the manual instructions is realized through the man-machine interaction interface and the instruction conversion function, and the user experience is improved.
S2, converting the programming file into a formatted binary code set according to a preset user instruction and a formatted binary code conversion rule.
And storing various types of assembly instructions and text instructions corresponding to the various assembly instructions in advance, and constructing mapping relations 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-movement, add-addition, rep-repetition, for-loop execution and the like.
And selecting a target user instruction from the programming file, extracting a keyword and an identifier from the user instruction, 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. The words are stored in a global structure according to programming specification requirements while the words are acquired, and a program framework is constructed. For example, a function should belong to a certain file, an instruction should belong to a certain function, and a parameter should belong to a certain 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 a Modbus protocol frame, and the protocol frame includes an instruction frame, a response frame and an information frame, and the format of the protocol frame 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 certain generalized IO of the port system, and the information frame plays a role in monitoring various 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 positive and negative information of the instruction frame processing procedure. The key point of the realization of the core function of the interpretation control system is the design and generation of instruction frames. In practical control applications, command frames are typically generated by a specific data transformation, and the software system that generates command frames is called a translator.
Table 1 general instruction set format description
DFS: (DATA FRAME START) a frame initiator to distinguish the instruction set from other format data.
FTP: (File type), frame type, discrimination for each function instruction frame.
RES: (Reserved), reserved field, default to 0x0001.
LEN: (Lenth) an effective frame length field for unpacking and deframeing of big data.
Data: data field, specific content of frame.
True/False: positive and error fields. The response frame is unique, the correct response selects the True field, and the error response selects the Fasle field;
LIP: (Local IP): local IP field. The information frame is unique;
CheckSum: and checking, wherein the simplified writing method is C_S, and the value of the simplified writing method is that all the previous fields take unsigned sums. Since the response frame has no data field, the magnitude is light, and no field is added and checked.
The program codes of the programming files are converted into Modbus protocol frames through a translator, and the method specifically comprises the following steps:
According to a preset command encoding table (for example, table 1), each part of the code instruction is converted into a number of 2, and the gaps are filled. The main includes translating instructions into command encodings, operands into register addresses, on-chip memory addresses, or immediate numbers, depending on the type.
After the user selects the control equipment and configures the control strategy according to the self thinking mode, the obtained code is sent to the translator, and the translator fills various fields such as a frame initiator (DFS), a Frame Type (FTP) and the like into a specific area of the memory according to a specific instruction set format, and after modular assembly, a single complete instruction frame is formed, and finally, the single complete instruction frame is transmitted to a microprocessor (target MCU) for expression through a network.
S3, 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.
And (3) transmitting the formatted binary code set finally obtained in the step (S2) to a microprocessor through a TCP/IP protocol. The microprocessor stores the formatted binary code set into a nonvolatile memory of the microprocessor, so that the 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), which is also an Interpreter, is a computer program that can translate and run a high-level programming language directly, 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 transferred into another language and then operated every time the program is operated, so that the program operation speed of the interpreter is slower. It runs immediately every time a program statement is translated, then the next line is translated and then run, 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 manual interaction interface, and sort the user instruction into a programming file;
An instruction conversion unit 220, configured to convert the programming file into a formatted binary code set according to a conversion rule of a predetermined user instruction and a formatted binary code;
an instruction sending unit 230, configured to transmit the formatted binary code set to the microprocessor, where the formatted binary code set is interpreted by an interpreter in the microprocessor.
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 selection of a graph and a menu option in the manual interaction interface by a user, and the input of a text and a voice by the user, and the user instruction is a text instruction converted by the user operation;
and the instruction summarizing module is used for summarizing and storing all the text instructions into the programming file.
Optionally, as an embodiment of the present invention, the instruction converting unit includes:
The mapping construction module is used for storing various assembly instructions and text instructions corresponding to the various assembly instructions in advance, and constructing the 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 text instructions in the programming file and converting the text instructions into matching assembly instructions according to the mapping relation;
The instruction translation module is used for binary converting 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 the microprocessor through a TCP/IP protocol, storing the formatted binary code set into 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.
The terminal 300 may include: a processor 310, a memory 320 and a communication unit 330. The components may communicate via one or more buses, and it will be appreciated by those skilled in the art that the configuration of the server as shown in the drawings is not limiting of the invention, as it may be a bus-like structure, a star-like structure, or include more or fewer components than shown, or may be a combination of certain components or a different arrangement of components.
The memory 320 may be used to store instructions for execution by the processor 310, and the memory 320 may be implemented by any type of volatile or non-volatile memory 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 execution of the instructions in memory 320, when executed by processor 310, enables 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 running or executing software programs and/or modules stored in the memory 320, and invoking data stored in the memory. The processor may be comprised of an integrated circuit (INTEGRATED CIRCUIT, simply referred to as an IC), for example, a single packaged IC, or may be comprised of multiple packaged ICs connected to one another for the same function or for different functions. For example, the processor 310 may include only a central processing unit (Central Processing Unit, CPU for short). In the embodiment of the invention, the CPU can be a single operation core or can comprise multiple operation cores.
And a communication unit 330 for establishing a communication channel so that the storage terminal can communicate with other terminals. Receiving user data sent by other terminals or sending the user data to other terminals.
The present invention also provides a computer storage medium in which a program may be stored, which 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), a random-access memory (random access memory RAM), or the like.
Therefore, the invention can convert the human language input through the man-machine interaction interface into the computer programming language, generate the corresponding computer program according to the user instruction input by the man-machine interaction interface and execute the computer program, thereby greatly improving the computer programming efficiency and reducing the programming cost, and the technical effects achieved by the embodiment can be seen from the description above and are not repeated here.
It will be apparent to those skilled in the art that the techniques of embodiments of the present invention may be implemented in software plus a necessary general purpose hardware platform. Based on such understanding, the technical solution in the embodiments of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium such as a U-disc, a mobile hard disc, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk or an optical disk, etc. various media capable of storing program codes, including several instructions for causing a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the method described in the embodiments of the present invention.
The same or similar parts between the various embodiments in this specification are referred to each other. In particular, for the terminal embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference should be made to the description in the method embodiment for relevant points.
In the several embodiments provided by the present invention, it should be understood that the disclosed systems and methods may be implemented in other ways. For example, the system embodiments described above are merely illustrative, e.g., the division of the elements is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interface, system or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
Although the present invention has been described in detail by way of preferred embodiments with reference to the accompanying drawings, the present invention is not limited thereto. Various equivalent modifications and substitutions may be made in the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and it is intended that all such modifications and substitutions be within the scope of the present invention/be within the scope of the present invention as defined by the appended claims. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (4)

1. A method for automatically programming a computer, comprising:
Collecting user instructions generated by a manual interaction interface, and sorting the user instructions into programming files;
converting the programming file into a formatted binary code set according to a preset user instruction and a formatted binary code conversion rule;
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;
collecting user instructions generated by a manual interaction interface, and arranging the user instructions into programming files, wherein the method comprises the following steps:
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, text and voice input by the user, and the user instruction is a text instruction converted by the user operation;
Summarizing and storing all text instructions to a programming file;
according to a conversion rule of a preset user instruction and a formatted binary code, converting the programming file into a formatted binary code set, wherein the method comprises the following steps:
The method comprises the steps of storing multiple 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;
analyzing a text instruction and instruction variables of the text instruction in a programming file, and converting the text instruction into a matching assembly instruction according to the mapping relation;
Binary conversion is carried out on the matched assembly instruction by utilizing a translator, and a formatted binary code corresponding to the text instruction is obtained, 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;
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 method comprises the following steps of:
And sending the formatted binary code set to the microprocessor through a TCP/IP protocol, storing the formatted binary code set into 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.
2. An automatic computer programming system, comprising:
the instruction arrangement unit is used for collecting user instructions generated by the manual interaction interface and arranging the user instructions into programming files;
The instruction conversion unit is used for converting the programming file into a formatted binary code set according to a preset user instruction and a formatted binary code conversion rule;
The instruction sending unit is used for transmitting the formatted binary code set to the microprocessor, and an interpreter in the microprocessor interprets and runs the formatted binary code set;
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 selection of a graph and a menu option in the manual interaction interface by a user, and the input of a text and a voice by the user, and the user instruction is a text instruction converted by the user operation;
The instruction summarizing module is used for summarizing and storing all the text instructions into the programming file;
the instruction conversion unit includes:
The mapping construction module is used for storing various assembly instructions and text instructions corresponding to the various assembly instructions in advance, and constructing the 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 text instructions in the programming file and converting the text instructions into matching assembly instructions according to the mapping relation;
The instruction translation module is used for binary converting 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;
the instruction sending unit is used for:
And sending the formatted binary code set to the microprocessor through a TCP/IP protocol, storing the formatted binary code set into 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.
3. A terminal, comprising:
A processor;
A memory for storing execution instructions of the processor;
wherein the processor is configured to perform the method of claim 1.
4. A computer readable storage medium storing a computer program, which when executed by a processor implements the method of claim 1.
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 CN113220287A (en) 2021-08-06
CN113220287B true 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 (4)

* 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
CN112486906A (en) * 2020-12-18 2021-03-12 清华大学 Formatted reconfigurable processor assembly instruction processing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9400614B2 (en) * 2013-12-05 2016-07-26 Avago Technologies General Ip (Singapore) Pte. Ltd. Method and system for programmable sequencer for processing I/O for various PCIe disk drives

Patent Citations (4)

* 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
CN112486906A (en) * 2020-12-18 2021-03-12 清华大学 Formatted reconfigurable processor assembly instruction processing method and device

Also Published As

Publication number Publication date
CN113220287A (en) 2021-08-06

Similar Documents

Publication Publication Date Title
CN113010181B (en) Deployment method and device of operators in deep learning framework and electronic equipment
CN111143403B (en) SQL conversion method and device and storage medium
CN108363588B (en) Method for realizing interaction between web and native function, electronic device and readable storage medium
CN108153522B (en) Method for generating Spark and Hadoop program codes by midcore based on model conversion
CN103378994A (en) Method and terminal for testing communication equipment
CN115827116A (en) Function calling method, device, equipment and computer readable storage medium
CN115794106A (en) Method and system for analyzing configuration of binary protocol data of rail transit
CN115113922A (en) Method, device, equipment and storage medium for realizing stack-free coroutine
CN113703779B (en) Cross-platform multi-language compiling method and ultra-light Internet of things virtual machine
CN112948264B (en) Method and device for executing test task, system, storage medium and electronic device
CN118132597A (en) SQL grammar conversion method and device, storage medium and electronic equipment
CN113220287B (en) Computer automatic programming method, system, terminal and storage medium
CN110110299B (en) Text conversion method, device and server
CN115857910A (en) Programming method, device, server and medium of edge computing collector
CN113835688B (en) Object packaging method of scientific computing language interpreter
CN116069324A (en) Dynamic form construction method and device based on Vue
CN115618777A (en) File generation method, device, equipment and storage medium
CN114911541A (en) Configuration information processing method and device, electronic equipment and storage medium
CN112650502A (en) Batch processing task processing method and device, computer equipment and storage medium
CN112559039B (en) Instruction set generation method and system for computer programming
CN111580799A (en) Domain specific language script assembling method and system
CN115964343B (en) Intelligent substation secondary virtual loop checking range division method
CN117270838B (en) Method, device, equipment and medium for generating universal formula script
CN117075912B (en) Method for program language conversion, compiling method and related equipment
CN117762416A (en) Script generation method, message analysis method, device, medium and equipment

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
GR01 Patent grant