CN111857683A - JAVA efficient programming system - Google Patents

JAVA efficient programming system Download PDF

Info

Publication number
CN111857683A
CN111857683A CN202010626168.9A CN202010626168A CN111857683A CN 111857683 A CN111857683 A CN 111857683A CN 202010626168 A CN202010626168 A CN 202010626168A CN 111857683 A CN111857683 A CN 111857683A
Authority
CN
China
Prior art keywords
function
values
java
unit
programming system
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.)
Pending
Application number
CN202010626168.9A
Other languages
Chinese (zh)
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.)
Beijing Golden Housekeeper Technology Development Co ltd
Original Assignee
Beijing Golden Housekeeper Technology Development 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 Beijing Golden Housekeeper Technology Development Co ltd filed Critical Beijing Golden Housekeeper Technology Development Co ltd
Priority to CN202010626168.9A priority Critical patent/CN111857683A/en
Publication of CN111857683A publication Critical patent/CN111857683A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

The invention is suitable for the technical field of JAVA programming, and provides a JAVA high-efficiency programming system, which comprises a programmable read-only memory space, a data processing module and a data processing module, wherein the programmable read-only memory space is USED for storing and analyzing system configuration information, and the system configuration information comprises USED-ADDR-NO and MAX-ENTRY-COUNT-IN-MAP; the variable function conversion unit is used for automatically judging the function type and supporting multiple types of return values of the same function according to the return values and has automatic arrangement of function split values; the memory unit is used for realizing template definition on function values based on an address stack, an address stack operation function and an object definition template, and simultaneously arranging the definition sequence of the function values in sequence; and defining a conversion unit, performing code conversion on the conversion unit according to the numerical function, and realizing digital output by using the converted code. Therefore, the invention can effectively improve the program organization efficiency of the programming system and simultaneously can effectively ensure the code arrangement sequence.

Description

JAVA efficient programming system
Technical Field
The invention relates to the technical field of JAVA programming, in particular to a JAVA efficient programming system.
Background
There are thousands of computer programming languages, albeit with their own advantages and features; but both of them write code that presents two problems: cross-language and cross-platform reusability are poor.
The first problem, that is, poor cross-language reusability means that in the programming of some algorithms (such as a single-source shortest path, a greedy algorithm, etc.) and some applications (such as a 3D game), the processing flows of each language are almost the same and different; for example, the general program flow of a 3D game is formed by the loop of 'algorithmic modeling- > rendering- > … …'. In this case, if multi-language development is desired, although the same algorithm cannot be reused for an algorithm written in another language, the development cost is repeated, and may be extremely expensive.
The second problem is that many applications need to span multiple platforms, some platforms (such as iOS and windows phone, etc.) do not support Java, some platforms (such as iOS and Android, etc.) do not support C + +, development of applications of multiple terminals using a uniform language cannot be realized, and cross-platform migration may generate expensive cost.
Aiming at the problems, C language is adopted for solving for many times, and the C language has the advantages of concise grammar and being close to the bottom layer of a computer. After a student just exposed to the C language learns for a short time, the C language can be used for writing an efficient general calculation program. Therefore, the C language is most widely chosen as the programming and teaching language of colleges and universities, with the most well-known group. Most programmers understand the C language.
However, when solving complex problems, such as window programming, network programming, large-scale scientific computing programming, etc., the usage rate of C language is greatly reduced. One of the important reasons is that there are various complex objects in the complex problem, such as a frame and a picture, and it is inconvenient to directly process the objects in the C language. When objects are processed in C language, a large number of structures, pointers, memory applications and release functions need to be combined for use, such use often causes a novice C language to suffer from troubles such as stack overflow, memory leakage, low efficiency, wild pointers, hidden calculation errors and the like, and debugging of these problems often takes a large amount of time and effort for programmers. In addition, the objects of different programmers are not easily shared, and their implementation is also varied. Finally, complex object programs written in C language often lose the compactness that C language should have.
In view of the above, the prior art is obviously inconvenient and disadvantageous in practical use, and needs to be improved.
Disclosure of Invention
In view of the above-mentioned drawbacks, the present invention provides a JAVA efficient programming system, which can improve the programming efficiency and ensure the code arrangement order.
IN order to achieve the above object, the present invention provides a JAVA efficient programming system, comprising a programmable read-only memory space for storing and analyzing system configuration information, wherein the system configuration information comprises USED-ADDR-NO and MAX-ENTRY-COUNT-IN-MAP; the variable function conversion unit is used for automatically judging the function type and supporting multiple types of return values of the same function according to the return values and has automatic arrangement of function split values; the memory unit is used for realizing template definition on function values based on an address stack, an address stack operation function and an object definition template, and simultaneously arranging the definition sequence of the function values in sequence; and defining a conversion unit, performing code conversion on the conversion unit according to the numerical function, and realizing digital output by using the converted code.
According to the JAVA efficient programming system of the present invention, the system configuration information further includes a heap entity and a MAP table, and the MAP table is a reusable MAP table entry.
According to the JAVA efficient programming system, the function type comprises a stack function, and the stack function is used for realizing the top setting of the opposite initial address returned by the function; the pop function is used for realizing the query and output of the function; judging a function, namely judging the position of the function; and protecting the function, namely performing node processing on the pop function and realizing repeated call of opposite directions in the function.
According to the JAVA efficient programming system, the function type further comprises a protection removing function, and the protection removing function is used for removing the protection of the protection function and realizing secondary calling; receiving function, which is not existed in the programmable read-only space and belongs to the interpretation and memory of foreign function; and analyzing the function, classifying and distinguishing all function values, and integrating the function values according to classes.
According to the JAVA high-efficiency programming system, the memory unit further comprises a free block unit, an integration unit and a sequencing unit, the free block unit and the subsequent progressive free block unit are integrated and integrated through the integration unit, and the sequencing of the free block unit is realized by utilizing the sequencing unit, wherein the sequencing form is from high to low or from low to high.
According to the JAVA efficient programming system of the present invention, the definition conversion unit further comprises an automatic code recognition compiler, which is used to implement the dual operations of the interpretative debugging and the interpretative debugging execution, and simultaneously implement the language conversion in the operation process, convert the C language into the binary instruction, implement the code recognition compilation by using the binary instruction, and sequence the same.
According to the JAVA efficient programming system, the function type also comprises a function return function, so that the confirmation and return of the function value are realized, the frequency of the function value in the using process is enhanced, and the function return function is used for memorizing and calling the repeated function value; and cloning the function, cloning and copying the function values with more fetching times by using the cloning function, simultaneously carrying out memory storage on the cloned function through a memory unit, and carrying out variable conversion on the stored function values through a variable function conversion unit to form a binary instruction.
According to the JAVA high-efficiency programming system, the automatic code recognition compiler converts source codes into a plurality of sets of source codes such as C + +, Java, C #, Pascal and the like after code recognition and compilation, and also can convert the source codes into languages directly executed by an ARM embedded chip, so that cross-language codes are used.
The invention provides a JAVA high-efficiency programming system, which comprises a programmable read-only memory space, a processor and a memory, wherein the programmable read-only memory space is USED for storing and analyzing system configuration information, and the system configuration information comprises USED-ADDR-NO and MAX-ENTRY-COUNT-IN-MAP; the variable function conversion unit is used for automatically judging the function type and supporting multiple types of return values of the same function according to the return values and has automatic arrangement of function split values; the memory unit is used for realizing template definition on function values based on an address stack, an address stack operation function and an object definition template, and simultaneously arranging the definition sequence of the function values in sequence; and defining a conversion unit, performing code conversion on the conversion unit according to the numerical function, and realizing digital output by using the converted code. The invention has the beneficial effects that: the objects and object operation functions defined according to the templates in the underlying system are very convenient to use, and a programmer can operate the objects like simple operation variables, including: the object can be used as a function return value in a simple variable function mode; the nested calling of the object operation function can be carried out like a simple variable function; recursive calling of the object operation function and the like can be performed like a simple variable function. Meanwhile, the use of the template ensures the memory security and the high efficiency in the convenient calling modes, and the programming language which is simple, beautiful, cross-platform and strong in reusability is provided, thereby providing a new method for simply, efficiently developing cross-platform application and a new method for reusing codes in cross-language.
Detailed Description
The present invention will be described in further detail with the aim of making the objects, technical solutions and advantages thereof more apparent, and it should be understood that the specific embodiments described herein are merely illustrative of the present invention and are not intended to limit the present invention.
The invention provides a JAVA high-efficiency programming system, which comprises a programmable read-only memory space, a processor and a memory, wherein the programmable read-only memory space is USED for storing and analyzing system configuration information, and the system configuration information comprises USED-ADDR-NO and MAX-ENTRY-COUNT-IN-MAP; the variable function conversion unit is used for automatically judging the function type and supporting multiple types of return values of the same function according to the return values and has automatic arrangement of function split values; the memory unit is used for realizing template definition on function values based on an address stack, an address stack operation function and an object definition template, and simultaneously arranging the definition sequence of the function values in sequence; and defining a conversion unit, performing code conversion on the conversion unit according to the numerical function, and realizing digital output by using the converted code.
Preferably, the information of the system configuration of the present invention further includes a heap entity and a MAP table, and the MAP table is a reusable MAP table entry.
In addition, the function type of the invention comprises a stack function which is used for realizing the top setting of the first address of the function return opposite direction; the pop function is used for realizing the query and output of the function; judging a function, namely judging the position of the function; and protecting the function, namely performing node processing on the pop function and realizing repeated call of opposite directions in the function.
Furthermore, the function type of the invention also comprises a protection removing function which is used for realizing protection removal of the protection function and realizing secondary calling; receiving function, which is not existed in the programmable read-only space and belongs to the interpretation and memory of foreign function; and analyzing the function, classifying and distinguishing all function values, and integrating the function values according to classes.
Preferably, the memory unit of the invention further comprises a free block unit, an integration unit and a sequencing unit, wherein the free block unit and the subsequent progressive free block unit are integrated and integrated by the integration unit, and the sequencing of the free block unit is realized by the sequencing unit, wherein the sequencing form is from high to low or from low to high.
The invention provides a JAVA high-efficiency programming system, which comprises a programmable read-only memory space, a processor and a memory, wherein the programmable read-only memory space is USED for storing and analyzing system configuration information, and the system configuration information comprises USED-ADDR-NO and MAX-ENTRY-COUNT-IN-MAP;
the variable function conversion unit is used for automatically judging the function type according to the return value, supporting multiple types of return values of the same function, automatically arranging function split values, and enabling the function type to comprise a stacking function and be used for realizing the top setting of the opposite initial address of the function return; the pop function is used for realizing the query and output of the function; judging a function, namely judging the position of the function; and protecting the function, namely performing node processing on the pop function and realizing repeated call of opposite directions in the function.
The memory unit is used for realizing template definition on function values based on an address stack, an address stack operation function and an object definition template, and simultaneously arranging the definition sequence of the function values in sequence, wherein the function type also comprises a function return function, so that the confirmation and return of the function values are realized, the frequency of the function values in the using process is enhanced, and the function return function is used for memorizing and calling the repeated function values; and cloning the function, cloning and copying the function values with more fetching times by using the cloning function, simultaneously carrying out memory storage on the cloned function through a memory unit, and carrying out variable conversion on the stored function values through a variable function conversion unit to form a binary instruction. The memory unit also comprises an idle block unit, an integration unit and a sequencing unit, the idle block unit and the subsequent progressive idle block units are integrated and integrated through the integration unit, and the sequencing of the idle block units is realized by utilizing the sequencing unit, wherein the sequencing form is from high to low or from low to high.
The definition conversion unit is used for performing code conversion on the numerical function, simultaneously realizing digital output by using converted codes, and further comprises an automatic code recognition compiler which is used for realizing double operation of interpretative debugging and compiled debugging execution, simultaneously realizing language conversion in the operation process, converting C language into binary instructions, realizing code recognition compilation by using the binary instructions and sequencing the codes, wherein the automatic code recognition compiler converts source codes into a plurality of sets of source codes such as C + +, Java, C #, Pascal and the like after code recognition compilation, and can also convert the source codes into languages directly executed by an ARM embedded chip, so that cross-language codes can be used.
IN summary, the present invention provides a JAVA efficient programming system, which includes a programmable read-only memory space for storing and analyzing system configuration information, where the system configuration information includes USED-ADDR-NO and MAX-ENTRY-COUNT-IN-MAP; the variable function conversion unit is used for automatically judging the function type and supporting multiple types of return values of the same function according to the return values and has automatic arrangement of function split values; the memory unit is used for realizing template definition on function values based on an address stack, an address stack operation function and an object definition template, and simultaneously arranging the definition sequence of the function values in sequence; and defining a conversion unit, performing code conversion on the conversion unit according to the numerical function, and realizing digital output by using the converted code. The invention has the beneficial effects that: the objects and object operation functions defined according to the templates in the underlying system are very convenient to use, and a programmer can operate the objects like simple operation variables, including: the object can be used as a function return value in a simple variable function mode; the nested calling of the object operation function can be carried out like a simple variable function; recursive calling of the object operation function and the like can be performed like a simple variable function. Meanwhile, the use of the template ensures the memory security and the high efficiency in the convenient calling modes, and the programming language which is simple, beautiful, cross-platform and strong in reusability is provided, thereby providing a new method for simply, efficiently developing cross-platform application and a new method for reusing codes in cross-language.
The present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof, and it should be understood that various changes and modifications can be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (8)

1. A JAVA efficient programming system comprising
The programmable read-only memory space is USED for storing and analyzing system configuration information, and the system configuration information comprises USED-ADDR-NO and MAX-ENTRY-COUNT-IN-MAP;
the variable function conversion unit is used for automatically judging the function type and supporting multiple types of return values of the same function according to the return values and has automatic arrangement of function split values;
the memory unit is used for realizing template definition on function values based on an address stack, an address stack operation function and an object definition template, and simultaneously arranging the definition sequence of the function values in sequence;
and defining a conversion unit, performing code conversion on the conversion unit according to the numerical function, and realizing digital output by using the converted code.
2. The JAVA efficient programming system of claim 1, wherein the system configuration information further comprises a heap entity and a MAP table, and the MAP table is a reusable MAP table entry.
3. The JAVA efficient programming system of claim 1, wherein the function type comprises a push function to implement a top of first address for function return subtends;
the pop function is used for realizing the query and output of the function;
judging a function, namely judging the position of the function;
and protecting the function, namely performing node processing on the pop function and realizing repeated call of opposite directions in the function.
4. The JAVA efficient programming system of claim 3, wherein the function types further comprise a de-protect function, to remove protection from the protection function, to implement a second call;
receiving function, which is not existed in the programmable read-only space and belongs to the interpretation and memory of foreign function;
and analyzing the function, classifying and distinguishing all function values, and integrating the function values according to classes.
5. The JAVA programming system of claim 1, wherein the memory unit further comprises a free block unit, an integration unit, and a sorting unit, the free block unit and the following progressive free block units are integrated by the integration unit, and the sorting unit is used to sort the free block units from high to low or from low to high.
6. The JAVA efficient programming system of claim 3, wherein the definition translation unit further comprises an auto-recognition compiler for performing a dual operation of interpreted debugging and compiled debugging execution, and during the operation, the auto-recognition compiler performs a language translation to convert C language into binary instructions, and performs recognition compilation and sorting using the binary instructions.
7. The JAVA efficient programming system of claim 6, wherein the function types further comprise a function return function, and wherein the function return function is configured to perform validation and return of the function value, and to increase the frequency of the function value during use, so that the function return function is used to remember and retrieve the repeatable function value;
and cloning the function, cloning and copying the function values with more fetching times by using the cloning function, simultaneously carrying out memory storage on the cloned function through a memory unit, and carrying out variable conversion on the stored function values through a variable function conversion unit to form a binary instruction.
8. The JAVA efficient programming system of claim 6, wherein the auto-code recognizer compiler converts the source code into a plurality of sets of source codes such as C + +, Java, C #, Pascal, etc. after the auto-code recognizer compiler recognizes and compiles the source code, and also converts the source code into a language directly executed by the ARM embedded chip, thereby realizing the use of cross-language code.
CN202010626168.9A 2020-07-01 2020-07-01 JAVA efficient programming system Pending CN111857683A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010626168.9A CN111857683A (en) 2020-07-01 2020-07-01 JAVA efficient programming system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010626168.9A CN111857683A (en) 2020-07-01 2020-07-01 JAVA efficient programming system

Publications (1)

Publication Number Publication Date
CN111857683A true CN111857683A (en) 2020-10-30

Family

ID=72989054

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010626168.9A Pending CN111857683A (en) 2020-07-01 2020-07-01 JAVA efficient programming system

Country Status (1)

Country Link
CN (1) CN111857683A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101601012A (en) * 2006-12-01 2009-12-09 莫雷克斯公司 Has the programming framework that scene is supported towards producer graph
CN102521145A (en) * 2011-12-23 2012-06-27 东信和平智能卡股份有限公司 Java card system and space distribution processing method thereof
CN102880452A (en) * 2012-02-01 2013-01-16 日照市国软软件有限公司 Programming language capable of cross-language reusing
CN102981885A (en) * 2012-12-11 2013-03-20 中国工程物理研究院流体物理研究所 Object-based programming method and object-based programming system in C language programming
US20140040595A1 (en) * 2012-08-01 2014-02-06 Freescale Semiconductor, Inc. Space efficient checkpoint facility and technique for processor with integrally indexed register mapping and free-list arrays
CN105446748A (en) * 2015-12-29 2016-03-30 江苏图码信息科技有限公司 Machine identifiable geometric program
US9361070B1 (en) * 2012-01-27 2016-06-07 Andrew Nuss Compiling regular expression side-effects to java or C# code
CN109062556A (en) * 2018-06-23 2018-12-21 上海泽阳智能科技有限公司 A kind of function programming system of more return values

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101601012A (en) * 2006-12-01 2009-12-09 莫雷克斯公司 Has the programming framework that scene is supported towards producer graph
CN102521145A (en) * 2011-12-23 2012-06-27 东信和平智能卡股份有限公司 Java card system and space distribution processing method thereof
US9361070B1 (en) * 2012-01-27 2016-06-07 Andrew Nuss Compiling regular expression side-effects to java or C# code
CN102880452A (en) * 2012-02-01 2013-01-16 日照市国软软件有限公司 Programming language capable of cross-language reusing
US20140040595A1 (en) * 2012-08-01 2014-02-06 Freescale Semiconductor, Inc. Space efficient checkpoint facility and technique for processor with integrally indexed register mapping and free-list arrays
CN102981885A (en) * 2012-12-11 2013-03-20 中国工程物理研究院流体物理研究所 Object-based programming method and object-based programming system in C language programming
CN105446748A (en) * 2015-12-29 2016-03-30 江苏图码信息科技有限公司 Machine identifiable geometric program
CN109062556A (en) * 2018-06-23 2018-12-21 上海泽阳智能科技有限公司 A kind of function programming system of more return values

Similar Documents

Publication Publication Date Title
CN107861728B (en) Method and system for converting traditional program language into modern program language
JPH02272627A (en) Digital computer system and method of invocation of procedure of the same
CN110598855A (en) Deep learning model generation method, device, equipment and storage medium
CN104965687A (en) Big data processing method and apparatus based on instruction set generation
US20020062478A1 (en) Compiler for compiling source programs in an object-oriented programming language
US10678514B2 (en) Method and device for generating code assistance information
CN108595810B (en) Intelligent generation method of digital satellite simulation report
CN111857683A (en) JAVA efficient programming system
CN111880863A (en) Application program running method and device, electronic equipment and storage medium
US11651130B2 (en) Method, device, and storage medium for simulating a design
TW202403541A (en) System, method and device for introducing applet into third-party APP and medium
CN113626035B (en) Neural network compiling method facing RISC-V equipment based on TVM
CN113467828B (en) Method and system for converting programming language in heterogeneous many-core processor
CN108664238A (en) A kind of execution method and device of explanation type script C-SUB
US9250878B1 (en) Function attribute for dynamic stack allocation
CN112241268A (en) Keil engineering compiling method, system and equipment
US6311227B1 (en) Procedure calling method
CN112416362B (en) PDK compiling function implementation method
CN116719514B (en) Automatic RPA code generation method and device based on BERT
CN114489683B (en) JVM-based functional programming grammar implementation method for java-like language
CN111857732B (en) Serial program parallelization method based on marks
CN113742361A (en) Method and system for storing JSON data by using SQL under JS development environment
CN114968417A (en) Function calling method, device and equipment
Igor Using Fortran code in programs on other languages
CN114253523A (en) Method and device for reading bare device, computer device and 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