Compiling method of application program using Lua script and third-party C module

A technology of application programs and compilation methods, applied in the field of application program compilation, can solve problems such as increasing development costs, achieve the effects of convenient integration, improvement of development efficiency, and reduction of development costs

Pending Publication Date: 2020-03-03
苏州迈科网络安全技术股份有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If there are many similar systems that need to be adapted, it will greatly increase the development cost

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
  • Compiling method of application program using Lua script and third-party C module

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0031] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.

[0032] See figure 1 As shown, an embodiment of the present invention uses a Lua script and a third-party C module application compilation method, including the following steps:

[0033] S1, compile third-party C modules used by Lua scripts into static link libraries.

[0034] In the prior art, the third-party C module used by the Lua script is generally compiled into a dynamic link library, for example, the gcc tool is used to package it into

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 discloses a method for compiling an application program by using a Lua script and a third-party C module, which comprises the following steps of: compiling the third-party C module usedby the Lua script into a static link library to obtain a name list of the static link library; analyzing the Lua script, and obtaining a name of a third-party C module, namely a static link library, used by the Lua script and a corresponding list of loading interface function names of corresponding modules; and embedding a third-party C module, namely a static link library, used by the Lua scriptinto the application program for compiling by initializing a function, so as to realize static calling. According to the method, the C module used by the Lua script is embedded into the application program to be compiled, so that the compiling mode of the application program can be universalized, too much time is not needed for cross-platform adaptation, Meanwhile, the existing Lua script does notneed to be modified at all. Therefore, the development efficiency is greatly improved, and the development cost is reduced.

Description

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

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
Owner 苏州迈科网络安全技术股份有限公司
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