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 "Temporary variable" patented technology

In computer programming, a temporary variable is a variable with short lifetime, usually to hold data that will soon be discarded, or before it can be placed at a more permanent memory location. Because it is short-lived, it is usually declared as a local variable, i.e., a variable with local scope. There is no formal definition of what makes a variable temporary, but it is an often-used term in programming.

Compiling method and device based on PLC object model, equipment and medium

PendingCN122086415ACode compilationCode generationTemporary variable
The invention discloses a compiling method and device based on a PLC object model, equipment and a medium. In the scheme, when the compiler compiles the PLC program code, the target instance and the target function to be called need to be determined, and the corresponding instance calling code is generated, so that the PLC executable program is generated based on the instance calling code. Wherein the target instance is created through a target function block, and if the parameter type comprises a heterogeneous instruction function block type, the heterogeneous resource is directly stored in a heterogeneous resource memory allocated by the target instance, and adaptation of the object model and the heterogeneous instruction is achieved; moreover, the data can be effectively monitored through the temporary variable of the instance; through the reserved memory of the instance, the overall memory space of the instance does not need to be changed during hot update, and the influence of hot update on the instance is reduced; therefore, the method can meet the special requirements of the PLC equipment, and enables the PLC compiler to compile the PLC program code accurately and effectively.
Owner:SHENZHEN INVT ELECTRIC

Space-time isolated high-real-time control logic compiling optimization method and system

The invention discloses a time-space isolated high-real-time control logic compilation optimization method and system. The method comprises the steps that a compiling system reads user logic and task information, a compiling space is divided according to POUs in the user logic, a task queue is constructed based on the task information, grammar and semantics of the POUs in the compiling space are analyzed, and SSA-based primary representation is generated; marking align attributes of structural member variables in user logic according to the size of a cache line of a target platform, marking array member variables in the user logic by using dynamic distribution, calculating access frequencies of all types of variables in a basic block, and determining variables to be replaced based on the access frequencies; and replacing the to-be-replaced variable with a temporary variable in the basic block, and performing memory layout and register subordination on all marked variables. According to the method, cache space-time isolation is realized through collaborative design of the spatial layout of the data structure and the register allocation strategy during compiling, the program execution efficiency is improved, and the cache miss overhead is reduced.
Owner:BEIJING SIFANG JIBAO AUTOMATION +1

A structured text code generation method for PLC honey point

PendingCN122386884ACode generationData stream
This invention provides a structured text code generation method for PLC honeypots, relating to the field of computer technology. The method includes: constructing a set of protected variables; performing equivalent structural transformations on control blocks and expressions; re-segmenting the code after data flow analysis; and performing statement rearrangement, value modification, and temporary variable renaming on linear statement segments based on data dependency analysis, achieving diverse code perturbations while maintaining semantic consistency. The transformation space is further expanded through loop safety checks and large language model-assisted refinement. Finally, declaration information is supplemented and the output variant L5X file is backfilled. This invention, through semantic awareness and large language model assistance, improves the semantic consistency, formal diversity, and usability of generated code variants.
Owner:GUANGZHOU UNIVERSITY