C language function calling method for STB (set-top box) script

A C language, set-top box technology, applied in the embedded field, can solve problems such as rewriting code, and achieve the effect of reducing workload, reducing tedious procedures, and improving production efficiency

Inactive Publication Date: 2011-04-20
FUJIAN NEWLAND COMM SCI TECH
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The technical problem to be solved by the present invention is to provide a method for calling a c language function by a set-top box script, which overcomes the problem that the traditional set-top box directly calls various c language functions in a compiled mode, and when the script application needs to be changed, the code must be rewritten question

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
  • C language function calling method for STB (set-top box) script
  • C language function calling method for STB (set-top box) script

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0012] The present invention will be further described below in conjunction with the embodiments with reference to the accompanying drawings.

[0013] A method for calling a c language function from a set-top box script, see figure 1 The following steps are shown:

[0014] Step 10, design a function interface with one parameter, write the c language function according to the described function interface;

[0015] Step 20, register the script analysis engine of set-top box in the described c language function written by function interface, the c language function through registration is called for script analysis engine;

[0016] Step 30, when the script of the set-top box calls the c language function, the script parsing engine dynamically generates a private stack, and the private stack is used to interact with the parameters required by the c language function and obtain the result of the operation of the c language function, and follow the steps from Insert the parameters...

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

PUM

No PUM Login to view more

Abstract

The invention provides a C language function calling method for STB (set-top box) script, which is characterized in that a specially designed private stack structure is used for completing the passing of the running return values of the parameter and the function between the STB script and the C language function, and a special function docking interface for the C language function is also designed, thereby realizing the directly calling of the C language function in the STB script. The method has the advantages of reducing the original tedious processes, reducing the workload of the programming personnel, and enhancing the production efficiency.

Description

【Technical field】 [0001] The invention relates to the field of embedded technology, in particular to a method for calling a C language function by a set-top box script. 【Background technique】 [0002] As digital TV set-top box application development requirements become more and more fast and efficient, using scripts to write set-top box application programs has become a good solution for rapid development, and how script programs use the original compiler resources of set-top boxes becomes the key to script application. The traditional set-top box uses the compiled state to directly call various C language functions. When the script application needs to be changed, the code must be rewritten, and then compiled and downloaded to the target machine, which increases the workload of the programmer and the production. The cost is also greatly increased. 【Content of invention】 [0003] The technical problem to be solved by the present invention is to provide a method for calli...

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
Patent Type & Authority Applications(China)
IPC IPC(8): H04N21/40G06F9/44
Inventor 方立
Owner FUJIAN NEWLAND COMM SCI TECH
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