Object-based programming method and object-based programming system in C language programming

A C language and object technology, applied in the direction of program control design, memory system, computing, etc., can solve the problems of program operation efficiency and memory usage efficiency reduction, and achieve the effect of ensuring memory security and high efficiency

Inactive Publication Date: 2013-03-20
INST OF FLUID PHYSICS CHINA ACAD OF ENG PHYSICS
View PDF2 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But unfortunately, the memory hosting mechanism it relies on will reduce program running efficiency and memory usage eff

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Object-based programming method and object-based programming system in C language programming
  • Object-based programming method and object-based programming system in C language programming
  • Object-based programming method and object-based programming system in C language programming

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] The present invention provides an object-based programming method and system in C language programming. In order to make the purpose, technical solution and effect of the present invention clearer and clearer, the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0025] Such as figure 1 As shown, the present invention provides an underlying system based on object programming in C language programming, a first-level user can use the object definition template and function definition template in the underlying system to define their own objects and object operation functions, and a second-level user can use a User-defined objects and object manipulation functions to write applications easily.

[0026] Such as figure 1 As shown, the underlying system i...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

Certain currently popular programming languages (such as C++) are highly efficient but can easily bring about memory errors, and certain currently popular programming languages (such as Java) are safe in memories but lower in efficiency. The invention discloses an object-based programming method and an object-based programming system in C language programming, and the system is a convenient, safe and high-efficiency programming framework. The system utilizes the stack technique to efficiently judge the attribute of an 'object' (i.e. a non-generic type variable), also standardizes assignment and other operations on the object, and can release object resources and optimize the efficiency of object usage (or the efficiency of parameter transfer) simultaneously. The system provides defining templates for objects and object-operating functions, so that programmers can conveniently define the objects and the object-operating functions, the objects and functions defined by the defining templates can be conveniently subjected to recursionrecur and can be conveniently nested, invoked and operated in any other complex ways like generic type variables and functions, and the problems of memory safety and efficiency are automatically processed by the templates.

Description

1. Technical field [0001] The invention relates to a method for object-based programming in C language programming, through which the convenience, safety and high efficiency of object-based programming in C language programming can be realized. 2. Background technology [0002] The C language has the advantages of concise syntax and being close to the bottom layer of the computer. A student who has just been exposed to C language can write efficient general calculation programs in C language after a short period of study. Therefore, the C language is the most widely chosen as the teaching language of programming in colleges and universities, and has the most extensive familiarity groups. Most programmers know C language. [0003] 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 most important reasons is that there are vari...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/45
Inventor 肖波
Owner INST OF FLUID PHYSICS CHINA ACAD OF ENG PHYSICS
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products