Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

3 results about "Local variable" patented technology

In computer science, a local variable is a variable that is given local scope. Local variable references in the function or block in which it is declared override the same variable name in the larger scope. In programming languages with only two levels of visibility, local variables are contrasted with global variables. On the other hand, many ALGOL-derived languages allow any number of nested levels of visibility, with private variables, functions, constants and types hidden within them, either by nested blocks or nested functions. Local variables are fundamental to procedural programming, and more generally modular programming: variables of local scope are used to avoid issues with side-effects that can occur with global variables.

Function block calling methods, devices, equipment and media of industrial control configuration software

ActiveCN116009994BSolve storage problemssolve functionLocal variableSoftware engineering
This application discloses a method, apparatus, device, and storage medium for calling function blocks in industrial control configuration software, relating to the field of industrial control. The method includes: storing the addresses of local variables of a target function block in the industrial control configuration software using a target structure based on preset storage rules, thereby completing the storage of the target function block; obtaining the structure variable corresponding to the target function block and writing values ​​to the structure variable based on configuration logic; converting the target function block into C language to obtain a corresponding .c file, and calling C functions in the .c file so that the .c file generates a controller executable file through a compilation module, and using the controller executable file to implement the industrial controller's call to the target function block, thereby completing the corresponding industrial control process. Therefore, this application solves the problems of function block storage and function block calling during the conversion of IEC logic into C language.
Owner:HANGZHOU HOLLYSYS AUTOMATION

Stack space allocation method and apparatus, electronic device, and readable storage medium

ActiveCN116991415BLocal variableTerm memory
Embodiments of the present application provide a stack space allocation method and device, electronic equipment and a readable storage medium. The method comprises: obtaining a to-be-processed function containing local variables in a to-be-compiled program during the compilation of the to-be-compiled program; determining a target alignment value of the to-be-processed function based on the respective alignment attribute values of the local variables in the to-be-processed function; the target alignment value is not less than the minimum value of the respective alignment attribute values of the local variables; allocating the respective target memory areas of the local variables in the to-be-processed function based on the target alignment value, and determining the stack space of the to-be-processed function based on the respective target memory areas of the local variables; the starting address of the target memory area corresponds to an integer multiple of the target alignment value; and responding to the access operation of the to-be-processed function according to the stack space of the to-be-processed function. The execution efficiency of the to-be-processed function is improved to a certain extent.
Owner:LOONGSON TECH CORP

A method for accelerating Scloud+ algorithm based on multi-thread matrix multiplication

A method for accelerating Scloud+ algorithm based on multi-thread matrix multiplication. S1, a coarse-grained parallel architecture is constructed; S2, the AES-128 encryption module of the matrix A generation link in Scloud+.KEM is optimized by GPU native; S3, a local variable storage reuse strategy is adopted, and the local matrix variables with non-overlapping life cycle are stored in the storage space; S4, a pre-computation and persistence mechanism is introduced, and the pre-computation of the index data required for the generation of the matrix A is completed in the program initialization stage; S5, instruction level deep optimization; S6, a warp level fine-grained synchronization mechanism is constructed; S7, a double-thread cooperation fine-grained parallel implementation based on the coarse-grained architecture. Through the multi-dimensional collaborative innovation of architecture, memory hierarchy and instruction set, the computing, storage and communication bottlenecks of the post-quantum cryptography algorithm Scloud+ on the general parallel computing architecture are systematically solved.
Owner:NANJING UNIV OF POSTS & TELECOMM