Patents
Literature
Patsnap Copilot is an intelligent assistant for R&D personnel, combined with Patent DNA, to facilitate innovative research.
Patsnap Copilot

34 results about "Function prototype" patented technology

In computer programming, a function prototype or function interface is a declaration of a function that specifies the function's name and type signature (arity, data types of parameters, and return type), but omits the function body. While a function definition specifies how the function does what it does (the "implementation"), a function prototype merely specifies its interface, i.e. what data types go in and come out of it. The term function prototype is particularly used in the context of the programming languages C and C++ where placing forward declarations of functions in header files allows for splitting a program into translation units, i.e. into parts that a compiler can separately translate into object files, to be combined by a linker into an executable or a library. Modern compilers such as Arduino IDE don't require function prototypes anymore as these are determined and declared on compilation.

Algorithm protection method, device, device and storage medium based on go language

The invention discloses an algorithm protection method based on go language, belonging to the field of information security. The invention relates to an algorithm protection method based on go language, which is used for protecting the algorithm in intelligent contract. The method comprises the following steps: compiling an algorithm library source file by go language; The algorithm library sourcefile is compiled to generate the corresponding algorithm dynamic library file and the API function prototype of the algorithm dynamic library file. Upload the intelligent contract and algorithm dynamic library files to docker, deploy and initialize the intelligent contract; The intelligent contract is written in go language, and the algorithm part of the intelligent contract is realized by calling the API interface of the algorithm dynamic library file. Deploying includes specifying the call path of the algorithm dynamic library file in the docker in the smart contract; Initializing includesdynamically invoking the API interface of the algorithm dynamic library according to the invocation path to load the algorithm dynamic library. The invention does not need to make any modification tothe original deployment flow of the intelligent contract, and is easy to realize.
Owner:PING AN TECH (SHENZHEN) CO LTD

Automatic code generating method and automatic code generating device for loading dynamic link library

The invention provides an automatic code generating method and an automatic code generating device for loading a dynamic link library. The device comprises an extracting rule editing module, a function prototype and constant definition extracting module, a code template and parameter transformation rule editing module and an object code generating module, wherein the extracting rule editing module is used for defining an extracting rule for an extracting module; the function prototype and constant definition extracting module is used for extracting a function prototype and constant definition list from a header file according to the defined extracting rule; the code template and parameter transformation rule editing module is used for editing a code template and parameter transformation rule; and the object code generating module is used for selecting a corresponding code template and parameter transformation rule according to an object code language and a filling mode, and is used for transforming function prototype and constant definition into object programming language codes. By the scheme, loading codes are generated automatically, demands on developers are reduced, and the developers do not need to concern dynamic loading and static loading specific implementing methods of the DLL (dynamic link library) under optional programming languages, and do not need to be familiar with corresponding relations of parameter types under different languages.
Owner:CHINA ELECTRONIS TECH INSTR CO LTD

Method and system for implementing driving on SPI equipment under VxWorks operating system

The present invention relates to a method and system for implementing driving on SPI equipment under a VxWorks operating system. The VxWorks operating system comprises an application layer, a kernel layer and an SPI equipment driving layer. The method adopted by the VxWorks operating system comprises: acquiring custom SPI equipment component description file and SPI driver registry function prototype from the SPI equipment driving layer; according to the custom SPI equipment component description file and SPI driver registry function prototype, forming a compiling rule for an SPI driver; according to the compiling rule, carrying out register on the SPI driver on the kernel layer and initializing the SPI driver, wherein the step of initializing the SPI driver comprises the substeps of setting SPI driver interruption and operations corresponding to the SPI driver interruption and setting a sending cache region and a receiving cache region on the kernel layer; enabling the SPI equipment driving layer to carry out data interaction with the sending cache region and the receiving cache region of the kernel layer by SPI driver interruption; and enabling the kernel layer to carry out data interaction with the application layer by an application interface. According to the method and system for implementing driving on the SPI equipment under the VxWorks operating system, the coupling degree of codes can be reduced and stability and reliability of the SPI communication are improved.
Owner:航天欧华信息技术有限公司

Method for packaging UOML into application program interface

The invention discloses a method for enclosing UOML into API which comprises the following procedures that: the UOML object is mapped into a composite data type of the programming language, the property of the UOML object corresponds to the variables of simple data type or the variables of complex data type in the composite data type, sub-elements of the UOML object correspond to the variables of simple data type or the variables of complex data type in the composite data type; the UOML operation is mapped into an API function prototype of the programming language, the object of the UOML operation corresponds to the parameters of the API function prototype; the operation corresponding to the API function in an API function body of the programming language is converted into the UOML operation according to the defined mappings in the procedures, and the return result of the operation is converted into a return type of the programming language. The API functions of the UOML aiming at different programming languages are realized by the method, thereby, the application developers of different programming languages can directly realize the application on the document library system by calling the corresponding API function, and the developing efficiency is improved.
Owner:TIANJIN SURSEN INVESTMENT CO LTD +1

Compiling implementation method for variable-parameter function

The invention discloses a compiling implementation method for a variable-parameter function. The compiling implementation method comprises the steps that (1) the number of fixed parameters in a function prototype is obtained, and the storage position of the first variable parameter is determined according to the number of the fixed parameters; (2) the parameters in the function are read, whether the current parameters are variable or not is judged, if the current parameters are not variable, a parameter register is used preferentially for transmission, and when no parameter register is available, a stack is used for transmission, and if the current parameters are variable, the stack is used for transmission; (3) traversal is conducted on the parameters from the first variable parameter, each parameter is obtained through the storage position of the parameter, the storage position of a next parameter is obtained according to the storage positions of the parameters and the values of the parameters, and traversal is ended until all the variable parameters are obtained. The compiling implementation method for the variable-parameter function has the advantages that the method is simple, operation is convenient, the utilization rate of hardware resources is high, the execution efficiency is high, and the flexibility is high.
Owner:NAT UNIV OF DEFENSE TECH

Intrinsic function identification method based on subgraph isomorphism matching algorithm in decompilation

The invention discloses an intrinsic function identification method based on a subgraph isomorphism matching algorithm in decompilation, and belongs to the technical field of decompilation. By establishing an intrinsic function template library, the present invention performs subgraph isomorphism matching on the intrinsic function template and the target assembly file based on the control flow graph generated by decompilation, and locates the compiled optimized and inline expanded objects in the target assembly file in the target program. intrinsic function. The invention realizes the automatic identification of the inline intrinsic function in the process of decompilation, and at the same time, by analyzing the template and prototype of the intrinsic function, the function name, return value, return value type and function parameters of the intrinsic function are restored, so as to achieve the inline function. Purpose of intrinsic function semantic promotion. The improved inline intrinsic function provides more type information for type analysis in decompilation, reduces the complexity of data flow analysis and control flow analysis, improves the abstraction level of intermediate code, and enhances the reliability of decompilation results. readability.
Owner:XI AN JIAOTONG UNIV

A Compilation Implementation Method Oriented to Variable Parameter Functions

The invention discloses a compiling implementation method for a variable-parameter function. The compiling implementation method comprises the steps that (1) the number of fixed parameters in a function prototype is obtained, and the storage position of the first variable parameter is determined according to the number of the fixed parameters; (2) the parameters in the function are read, whether the current parameters are variable or not is judged, if the current parameters are not variable, a parameter register is used preferentially for transmission, and when no parameter register is available, a stack is used for transmission, and if the current parameters are variable, the stack is used for transmission; (3) traversal is conducted on the parameters from the first variable parameter, each parameter is obtained through the storage position of the parameter, the storage position of a next parameter is obtained according to the storage positions of the parameters and the values of the parameters, and traversal is ended until all the variable parameters are obtained. The compiling implementation method for the variable-parameter function has the advantages that the method is simple, operation is convenient, the utilization rate of hardware resources is high, the execution efficiency is high, and the flexibility is high.
Owner:NAT UNIV OF DEFENSE TECH

Method and system for driving spi device under vxworks operating system

The present invention relates to a method and system for implementing driving on SPI equipment under a VxWorks operating system. The VxWorks operating system comprises an application layer, a kernel layer and an SPI equipment driving layer. The method adopted by the VxWorks operating system comprises: acquiring custom SPI equipment component description file and SPI driver registry function prototype from the SPI equipment driving layer; according to the custom SPI equipment component description file and SPI driver registry function prototype, forming a compiling rule for an SPI driver; according to the compiling rule, carrying out register on the SPI driver on the kernel layer and initializing the SPI driver, wherein the step of initializing the SPI driver comprises the substeps of setting SPI driver interruption and operations corresponding to the SPI driver interruption and setting a sending cache region and a receiving cache region on the kernel layer; enabling the SPI equipment driving layer to carry out data interaction with the sending cache region and the receiving cache region of the kernel layer by SPI driver interruption; and enabling the kernel layer to carry out data interaction with the application layer by an application interface. According to the method and system for implementing driving on the SPI equipment under the VxWorks operating system, the coupling degree of codes can be reduced and stability and reliability of the SPI communication are improved.
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