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

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.

Next Hop Computation Functions for Equal Cost Multi-Path Packet Switching Networks

Next hop computation functions for use in a per-node ECMP path determination algorithm are provided, which increase traffic spreading between network resources in an equal cost multi-path packet switch network. In one embodiment, packets are mapped to output ports by causing each ECMP node on the network to implement an entropy preserving mapping function keyed with unique key material. The unique key material enables each node to instantiate a respective mapping function from a common function prototype such that a given input will map to a different output on different nodes. Where an output set of the mapping function is larger than the number of candidate output ports, a compression function is used to convert the keyed output of the mapping function to the candidate set of ECMP ports.
Owner:RPX CLEARINGHOUSE

System and method for generating white-box implementations of software applications

A development suite for generating files, such as DRM-protected files, using white-box cryptography. The suite consists of a code generation tool, a data transformation engine, and a white-box data generation tool, and a white-box library. In the white-box cryptography context, the data transformation engine is used to protect the boundary between the cryptographic operation and the surrounding code. In particular, the data transformation engine is used to apply data transformations to the inputs to and outputs from the cryptographic operations. If the user specifies that transformations are required via a white-box parameterization file, the code generation tool puts the information specified by the user into a form the data transformation engine understands, namely as qualifiers on data variables and function prototypes. The data transformation engine then applies the specified transformations, and passes information to the data generation tool regarding which transformations were chosen.
Owner:IRDETO ACCESS

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

System and method for statically checking source code

The present invention is directed at a system and method for statically checking source code to determine potential compatibility issues with a new software release. The system and method perform a static check on input source files associated with a software release. The static check includes identifying programming constructs, such as function prototypes, structures, unions, and the like, within source code files associated with the software release. The programming constructs undergo a filtering process that reduces the number of potentially false change errors. The filtered programming constructs are saved in a database associated with the software release. The database is then compared with another database containing programming constructs for another software release in order to identify differences between the two software releases. A list of changes is generated that identifies the differences between the two software releases. These changes are used to identify potential incompatibilities between the two software releases.
Owner:MICROSOFT TECH LICENSING LLC

Rapid die compensation method considering rebound of bent part

The invention relates to a rapid die compensation method considering rebound of a bent part. The method comprises the contents of firstly establishing a rebound distribution function comprising putting forward a function prototype and fitting function parameters, and secondly putting forward a rapid rebound compensation method. The method is not used for numerical simulation, is directly used for predicting the spring back angle of the bent part according to the rebound distribution function and then converting the adjustment amount of a die surface according to the spring back angle, so as to perform rapid compensation on the die surface, and improves the efficiency of die design.
Owner:SHENYANG AIRCRAFT CORP

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

LabVIEW-based dynamic link library calling method

The invention discloses a LabVIEW-based dynamic link library calling method. The method comprises the steps of determining the position and function prototype of a dynamic link library (DLL) file and function parameters and types; selecting a function calling mode; utilizing call library function (CLF) node in a LabVIEW for extracting a function in the DLL file; configuring the function in the DLL file based on standards of the LabVIEW; inputting a called function name, and obtaining a formal parameter type and a returned value type of the functions configured based on the LabVIEW; connecting the CLF node with an attribute node corresponding to the data type node, and completing the code design utilizing the LabVIEW. According to the technical scheme, a CLF is used for calling dynamic link library functions generated by other languages in the LabVIEW, so that the work which the LabVIEW cannot complete is completed, and the program development efficiency is improved.
Owner:BEIJING INST OF RADIO METROLOGY & MEASUREMENT

Method and apparatus for quick prototyping of embedded peripherals

The disclosure describes methods and apparatus for quickly prototyping of a solution developed using one or more sensing devices (e.g., sensors), functional blocks, algorithm libraries, and customized logic. The methods produce firmware executable by a processor (e.g., a microcontroller) on an embedded device such as a development board, expansion board, or the like. By performing these methods on the apparatus described, a user is able to create a function prototype without having deep knowledge of the particular sensing device or any particular programing language. Prototypes developed as described herein enable the user to rapidly test ideas and develop sensing device proofs-of-concept. The solutions produced by the methods and apparatus improve the functioning of the sensor being prototyped and the operation of the embedded device where the sensor is integrated.
Owner:STMICROELECTRONICS INT NV

Next hop computation functions for equal cost multi-path packet switching networks

Next hop computation functions for use in a per-node ECMP path determination algorithm are provided, which increase traffic spreading between network resources in an equal cost multi-path packet switch network. In one embodiment, packets are mapped to output ports by causing each ECMP node on the network to implement an entropy preserving mapping function keyed with unique key material. The unique key material enables each node to instantiate a respective mapping function from a common function prototype such that a given input will map to a different output on different nodes. Where an output set of the mapping function is larger than the number of candidate output ports, a compression function is used to convert the keyed output of the mapping function to the candidate set of ECMP ports
Owner:ROCKSTAR CONSORTIUM INC

A method for carrying out IIC expansion by using a PCA9548A expansion chip

The invention relates to a method for carrying out IIC expansion by using a PCA9548A expansion chip. A plurality of expansion chips are mounted on one file node. Firstly, the slave address of the PCA9548A is understood; the address naming rule is shown in the specification. The first four bits are fixed values; A2, the slave addresses of the devices A1 and A0 are related to hardware connection, atmost eight 9548A expansion chips can be mounted on one file node, and after a file node function is opened, the slave addresses of the devices need to be bound, and the function prototypes are as follows: ioctl (fd, 2C _ SLAVE _ FORCE, Addres), wherein Address is the front seven-bit address of the IIC device, different slave device addresses are bound to access different PCA9548A chips, and a PCA9548A routing mechanism is used for gating and connecting optical modules and controlling a plurality of optical modules. And the I / O and interruption resources of the zynq are saved, and the production cost is reduced.
Owner:TOEC TECH

A method of debugging a function function in an embedded system program in an application

The invention discloses a method for debugging a function function in an embedded system program in an application. The method comprises the steps that a corresponding table between function pointersand function prototypes is established in an embedded system program, a function prototype analysis function is added, a communication port is used for receiving a function calling character string and analyzing the function calling character string, then a lookup table is matched, the function pointers needing to be executed are found, finally an execution function is skipped to, and an executionresult is returned. According to the function debugging method provided by the invention, the function debugging can be carried out on the premise of not influencing the program function, and the participation of a debugging tool is not needed. And when the program is executed, an application layer debugging method by outputting debugging information is avoided.
Owner:NARI TECH CO LTD

Large binary firmware parameter number identification method under simplified instruction set

The invention discloses a large-scale binary firmware parameter number identification method under a simplified instruction set, which is used for carrying out static analysis on the whole large-scalebinary firmware, and comprises the following steps of: firstly, extracting a calling relationship of a function, and designing a function parameter number identification method based on a voting mechanism according to the calling relationship of the function and a parameter transfer rule; and identifying the number of parameters of the functiond, so that subsequent function prototype recovery isfacilitated. According to the method, the executable code of the whole binary firmware is statically analyzed to obtain the global function call relationship, each function call is analyzed to obtainthe number of the parameters of the sub-function, and the most accurate number of the function parameters is obtained according to the voting mechanism, so that the influence of compiler optimizationis avoided, the accuracy of function parameter number recognition is improved, and the method has good applicability.
Owner:PLA STRATEGIC SUPPORT FORCE INFORMATION ENG UNIV PLA SSF IEU

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

Method for discovering memory destruction vulnerability based on natural language understanding function prototype

The invention provides a method for discovering a memory destruction vulnerability based on a natural language understanding function prototype, and relates to the field of software security. The method comprises the following steps: 1, extracting a function prototype in a source code as a to-be-compared function prototype; 2, extracting corpora in the annotations to generate a self-adaptive corpus; 3, performing function prototype segmentation on the to-be-compared function prototype by using the adaptive corpus, and segmenting the to-be-compared function prototype into a group of words or phrases; 4, selecting a function prototype with known function semantics as a reference function prototype, and judging the type of the function prototype to be compared through the reference function prototype; and 5, marking the source code to be detected by using the matching information in the function matching list, and detecting the memory destructive vulnerability by taking the function vulnerability rule as the input of symbolic execution. In the method, the missing report generated in the static source code vulnerability detection is reduced by extracting the memory management function in the source code.
Owner:上海蜚语信息科技有限公司

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

A calling method of dynamic link library based on labview

The invention discloses a calling method of a dynamic link library based on LabVIEW, including: determining the position of the DLL file of the dynamic link library, the function prototype, and the parameters and types of the function; selecting the method of calling the function; using the call library function node CLF in LabVIEW Extract the functions in the DLL file; configure the functions in the DLL file based on the LabVIEW specification; input the name of the called function to obtain the formal parameter type and return value type of the function based on the LabVIEW configuration; combine the nodes in the CLF and their data types Connect the corresponding attribute nodes of the nodes to complete the code design using LabVIEW. The technical scheme of the present invention uses CLF in LabVIEW to call dynamic link library functions produced by other languages, thereby completing the work that LabVIEW cannot do, and improving the efficiency of program development.
Owner:BEIJING INST OF RADIO METROLOGY & MEASUREMENT

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:航天欧华信息技术有限公司

A code automatic generation method and device for loading a dynamic link library

The present invention provides a method and device for automatically generating codes for loading a dynamic link library, wherein the device includes an extraction rule editing module for defining extraction rules for the extraction module; the function prototype and constant definition extraction module for according to The defined extraction rules extract the function prototype and constant definition list from the header file; the code template and parameter conversion rule editing module is used to edit the code template and parameter conversion rule; the target code generation module is based on the target code language and Filling method, select the corresponding code template and parameter conversion rules, and convert the function prototype and constant definition into the target programming language code. Using the above solution to automatically generate loading code reduces the requirements of developers, so that developers do not need to care about the specific implementation methods of dynamic loading and static loading of DLLs in any programming language, and do not need to be familiar with the corresponding relationship of parameter types in different languages.
Owner:CHINA ELECTRONIS TECH INSTR CO LTD

Disassembly function hijacking method and device based on Linux system and storage medium

The invention provides a disassembling function hijacking method and device based on a Linux system and a storage medium. The method comprises the following steps of (1) obtaining a function address of a target program needing to be hijacked; (2) disassembling the function address to obtain an assembly instruction of the function address; (3) modifying an assembly instruction of the function address into a jump instruction, wherein a jump target of the jump instruction is an intermediate processing function; (4) calling and executing an original assembly instruction of the function address by the intermediate processing function; (5) the intermediate processing function records the parameter and the return value of the function address; and (6) the intermediate processing function returns a return value of the function address to the caller. According to the disassembling function hijacking method, all functions can be hijacked, whether static compiling or system API functions or dynamic library functions can be hijacked as long as function prototypes are known, and the problem of hijacking failure caused by technologies such as static compiling and the like can be avoided.
Owner:科来网络技术股份有限公司

Method and apparatus for quick prototyping of embedded peripherals

The disclosure describes methods and apparatus for quickly prototyping of a solution developed using one or more sensing devices (e.g., sensors), functional blocks, algorithm libraries, and customized logic. The methods produce firmware executable by a processor (e.g., a microcontroller) on an embedded device such as a development board, expansion board, or the like. By performing these methods on the apparatus described, a user is able to create a function prototype without having deep knowledge of the particular sensing device or any particular programming language. Prototypes developed as described herein enable the user to rapidly test ideas and develop sensing device proofs-of-concept. The solutions produced by the methods and apparatus improve the functioning of the sensor being prototyped and the operation of the embedded device where the sensor is integrated.
Owner:STMICROELECTRONICS INT NV

Hot update method, device and equipment and storage medium

The embodiment of the invention provides a hot update method and device, equipment and a storage medium. In the embodiment of the invention, determining a to-be-updated first data object in response to a hot update instruction; creating a second data object meeting an updating requirement to obtain a target function prototype corresponding to the second data object; and replacing the function prototype of the first data object with the target function prototype so as to carry out hot update on the first data object. Therefore, according to the embodiment of the invention, the logic of the first data object can be updated by replacing the function prototype corresponding to the first data object, so that hot update can also be realized for the data object which is already loaded to the memory or registered to other language layers, and independent processing does not need to be performed for each data object any more, and therefore, the complexity of hot update can be effectively reduced, and the performance of hot update is improved.
Owner:CHENGDU PERFECT TIANZHIYOU BUSINESS CONSULTING CO LTD

Rapid die compensation method considering rebound of bent part

The invention relates to a rapid die compensation method considering rebound of a bent part. The method comprises the contents of firstly establishing a rebound distribution function comprising putting forward a function prototype and fitting function parameters, and secondly putting forward a rapid rebound compensation method. The method is not used for numerical simulation, is directly used for predicting the spring back angle of the bent part according to the rebound distribution function and then converting the adjustment amount of a die surface according to the spring back angle, so as to perform rapid compensation on the die surface, and improves the efficiency of die design.
Owner:SHENYANG AIRCRAFT CORP

Method for calling structure body function in dynamic link library based on LabVIEW

The invention relates to the technical field of LabVIEW function calling. The invention particularly discloses a method for calling a structure body function in a dynamic link library based on LabVIEW. The method includes the steps: when the LabVIEW calls the function with the structural body or a structural body pointer in the dynamic link library, further judging whether an array exists in a corresponding structural body variable or not, if yes, defining data types except the array according to a function prototype, decomposing the array meeting a decomposition condition, converting the decomposed array into a corresponding cluster, and directly converting other arrays into clusters; and further binding the defined data types into a cluster variable according to a sequence, finally setting the parameter type of the cluster variable to be matched to type, setting the data format to be value-based processing, and ending calling.
Owner:HUIZHOU DESAY SV AUTOMOTIVE
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products