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

178 results about "Intermediate code" patented technology

Voice generation method and device, equipment and medium

The invention relates to the technical field of speech synthesis, can be applied to business scenes such as financial science and technology, medical health and the like, and discloses a speech generation method, device, equipment and medium. And inputting a text speech language model to generate an intermediate code in combination with a speech code extracted based on a codebook generation mode, extracting a speaker feature vector in the prompt speech, decoding the intermediate code and the speaker feature vector by a generative adversarial decoder, and outputting a target speech. According to the method, fine-grained text representation is established by fusing character semantics and pinyin pronunciation information, and voice cloning is completed through unified voice language modeling and an adversarial generation mechanism in combination with codebook-driven acoustic coding and speaker personality characteristics, so that the naturalness, similarity and pronunciation accuracy of generated voices are improved.
Owner:PING AN TECH (SHENZHEN) CO LTD

Systems and methods for iterative feedback-driven code synthesis using syntax trees and large language models

PendingUS20250306882A1Code compilationSource to sourceCode synthesisObject code
A system for translating source code in a first programming language to a target language is provided. The system is configured to receive source code for converting to target code; determine an abstract syntax tree from the source code; determine program specifications from the source code; determine a dependency graph from the source code; determine a plurality of chunks based at least in part on the abstract syntax tree, the program specifications, and the dependency graph; determine a plurality of converted chunks based at least in part on the plurality of chunks and a deep learning model, the deep learning model converting the plurality of chunks from the language of the source code to the language of the target code; post-process the plurality of converted chunks to obtain intermediate code; and provide the intermediate code as the target code.
Owner:UST GLOBAL INC

Interactive visualization method, device and equipment for fuzz test bottleneck breakthrough

The invention relates to an interactive visualization method, device and equipment for fuzzy test bottleneck breakthrough, and belongs to the field of network security. According to the method, all compiling modules in a tested program are combined into a complete intermediate code, and a global view of the tested program is obtained; generating a unique label for each function by using a hash algorithm; constructing a call graph and a control flow graph, and obtaining function call instruction information by scanning a basic block of each function; carrying out pile insertion on the basic blocks; performing a fuzzy test on the tested program after compiling and instrumentation, and obtaining runtime data in real time; according to the fuzzy test runtime data and the static analysis data, data-driven visualization is carried out, and a call graph, a control flow graph and real-time execution statistical information are displayed in real time; a test engineer is assisted through an interactive chart, and fuzzy test bottleneck constraints are positioned. According to the method, a test engineer can be helped to better understand and intervene the fuzzy test process, and the fuzzy test code coverage rate and the defect detection number are improved.
Owner:CHINESE PEOPLES LIBERATION ARMY UNIT 61660

Financial operation security dialogue method and system based on verifiable intermediate code

The invention relates to the technical field of secure dialogues, and provides a financial operation secure dialogue method and system based on a verifiable intermediate code. The method comprises the steps of obtaining a natural language instruction of a user, generating V-FOC structured data based on a large language model, obtaining a question needing to be confirmed by the user, and generating a corresponding API instruction according to the generated V-FOC structured data after confirmation by the user; based on the generated API instruction, performing simulation execution by adopting a sandbox environment to obtain an expected execution result; the expected execution result is sent to the user for confirmation, and after the user confirms the expected execution result and authorizes the expected execution result, the safety API executor calls the background financial service API to complete operation. According to the invention, a transparent, controllable and verifiable'security firewall 'is established for the behavior of directly executing financial operation, so that the security of user funds is guaranteed while intelligent services are provided.
Owner:HAIER CONSUMER FINANCE CO LTD

Computer augmented threat evaluation

An automated system attempts to characterize code as safe or unsafe. For intermediate code samples not placed with sufficient confidence in either category, human-readable analysis is automatically generated to assist a human reviewer in reaching a final disposition. For example, a random forest over human-interpretable features may be created and used to identify suspicious features in a manner that is understandable to, and actionable by, a human reviewer. Similarly, a k-nearest neighbor algorithm may be used to identify similar samples of known safe and unsafe code based on a model for, e.g., a file path, a URL, an executable, and so forth. Similar code may then be displayed (with other information) to a user for evaluation in a user interface. This comparative information can improve the speed and accuracy of human interventions by providing richer context for human review of potential threats.
Owner:SOPHOS LTD

Computer augmented threat evaluation

An automated system attempts to characterize code as safe or unsafe. For intermediate code samples not placed with sufficient confidence in either category, human-readable analysis is automatically generated to assist a human reviewer in reaching a final disposition. For example, a random forest over human-interpretable features may be created and used to identify suspicious features in a manner that is understandable to, and actionable by, a human reviewer. Similarly, a k-nearest neighbor algorithm may be used to identify similar samples of known safe and unsafe code based on a model for, e.g., a file path, a URL, an executable, and so forth. Similar code may then be displayed (with other information) to a user for evaluation in a user interface. This comparative information can improve the speed and accuracy of human interventions by providing richer context for human review of potential threats.
Owner:SOPHOS LTD

Code generation method and device based on large model, storage medium and computer equipment

The invention discloses a code generation method and device based on a large model, a storage medium and computer equipment. The method comprises the steps that a UI prototype draft of a target service is acquired; performing element identification on the UI prototype draft through a picture identification large model, and determining element information in the UI prototype draft; generating a code generation cue word based on the element information and a preset cue word, inputting the code generation cue word into a code generation large model to obtain an intermediate code corresponding to the UI prototype draft, and arranging a target service code of the target service based on the intermediate code. The automatic process from UI design to code generation is achieved, the tedious process of manually writing UI components and debugging interaction logic in traditional development is avoided, repeated work and human errors are reduced, developers can put more energy into core service function development, then development efficiency is improved, code quality is guaranteed, and the development cost is reduced. And rapid and high-quality delivery of the project is promoted.
Owner:CSC FINANCIAL CO LTD

Compiler performance optimization method

The invention provides a compiler performance optimization method. The compiler performance optimization method comprises the steps that a source code program is compiled into an initial intermediate code # imgabs0 # based on the lowest optimization level; executing each optimization in the complete optimization list set on the initial intermediate code # imgabs1 # in sequence to obtain an intermediate code of an execution result; calculating intermediate representation complexity of the intermediate code; according to the intermediate representation complexity of each intermediate code, an optimization with a forward optimization effect is screened out; and compiling the source program code into a target program based on forward optimization. The invention provides a method for judging optimization effectiveness on an intermediate code level according to intermediate representation complexity. The method is used for avoiding invalid or negative optimization in the compiling process. The method does not depend on a specific hardware architecture, has good universality and is suitable for various target platforms; and the optimization effect is dynamically evaluated on the intermediate language level, so that the compiling time is greatly shortened, and the performance of the target program is better.
Owner:WUHAN LINGJIU MICROELECTRONICS CO LTD

Innotation-based document generation method and system, electronic equipment and storage medium

The invention relates to an annotation-based document generation method and system, electronic equipment and a storage medium, and the method comprises the steps: obtaining a preset self-defined annotation as a special behavior identifier of a document generator; adopting protobuf as a description format, and defining a data structure of an API interface according to the user-defined annotation to obtain a protocol description file; analyzing the protocol description file, and generating an intermediate code conforming to an OpenAPI specification according to a user-defined annotation in the file; compiling the intermediate code to generate an API (Application Program Interface) document conforming to an OpenAPI (Open Application Program Interface) specification; and obtaining a preset compiling tool, and compiling the API document to obtain a final delivery document. According to the application, the document description is simplified and migrated into the protocol description, the document can be generated only by scanning the protocol description, the document generation time and computing resource consumption are reduced, and the document is directly generated from the protocol description, so that the consistency of the document content and the actual API definition is ensured, and the accuracy and reliability of the document are improved.
Owner:HANGZHOU ELECTRONICS SOUL NETWORK TECH

Decompiling prevention method and device for program and medium

The invention discloses a program decompilation prevention method and device and a medium, and the method comprises the steps: determining a target code required to be protected in a program source code, carrying out the obfuscation processing of the target code and a mixed factor code of the target code according to the obfuscation logic of the target code, generating an intermediate code, and carrying out the obfuscation processing of the mixed factor code of the target code through an SM4 symmetric encryption algorithm, the method comprises the following steps of: firstly, generating an intermediate code, encrypting the intermediate code to generate an encrypted Class file, then, carrying out hierarchical encryption on a preset loading class to generate a multi-layer encrypted loading class, and finally, packaging the encrypted Class file, the multi-layer encrypted loading class and a basic class to generate an encrypted JAR packet. According to the method, the Class file is encrypted through the code obfuscation technology and the SM4 cryptographic algorithm, layer-by-layer encryption is carried out on the self-defined loading class, the complexity after code obfuscation is greatly improved, and the security of source code software is improved.
Owner:INSPUR GENERSOFT CO LTD

Code completion method and device, equipment and medium

The invention relates to the technical field of code completion, and discloses a code completion method, device and equipment and a medium, the method comprises the steps that a to-be-completed code is generated based on a first prompt word, the first prompt word is generated by formatting initial context information through a prompt word constructor, and the initial context information is used for representing a function requirement of the to-be-completed code; testing the to-be-complemented code by using a code executor, recording error report information in a testing process, and reserving a correct code in the testing process; generating an intermediate code based on a second cue word, wherein the second cue word is generated by formatting the intermediate context information through the cue word constructor; according to the technical scheme, the code executor is used for repeatedly testing the intermediate codes on the basis of the causal inference technology until the generated intermediate codes are all correct codes, the generated intermediate codes serve as the completion codes correspondingly, and the technical effect that the generated completion codes are high in precision is achieved.
Owner:SUN YAT SEN UNIV

Code processing method and device, equipment, storage medium and program product

The embodiment of the invention discloses a code processing method and device, equipment, a storage medium and a program product. The method comprises the steps of obtaining input data including a first code, a test platform file and a design description file; performing code error detection processing on the first code based on the test platform file to obtain an error detection report; taking the first code as a second code after error correction under the condition that the error detection report indicates that no code error is detected; otherwise, code error modification processing is conducted on the first code through an error correction model based on the design description file and the error detection report, and an intermediate code is obtained; candidate codes with higher code quality are determined from the first codes and the intermediate codes; taking the candidate code as a new first code, and iteratively executing the step of code error detection processing on the new first code until a second code after error correction is obtained; automation of the verification and error correction process of codes can be achieved, time and resources in the development process are saved, and the development process is accelerated.
Owner:ZHIWEI CHUANGXIN (NANJING) TECHNOLOGY CO LTD

Compiler-based program branch data integrity protection method, system and equipment and medium

The invention discloses a compiler-based program branch data integrity protection method, system and device and a medium, and the method comprises the steps: inputting a program intermediate code when data flow integrity protection is carried out on a program, carrying out control dependence analysis on the input program intermediate code, and obtaining to-be-protected branch data related to a control flow in the program; a static value flow analysis algorithm is transmitted to position source points of branch data, then a program data flow diagram is generated according to the source points of the branch data, meanwhile, the source points of the branch data are stored in a runtime definition table, and when a program runs, the corresponding source points in the runtime definition table are indexed according to data addresses; the safety of the definition table during running is protected through Intel MPK hardware, finally, whether a source point is within the range of a program data flow diagram or not is judged, if yes, the program continues to be executed, and if not, abnormity is thrown out; the system, the equipment and the medium are used for realizing the compiler-based program branch data integrity protection method. The method has the advantages of high security, low system overhead and wide compatibility.
Owner:XIDIAN UNIV

Compilation method for compiling C language source code into RISC-V assembly code

The invention discloses a compiling method for compiling a C language source code into an RISC-V assembly code. The method comprises the following steps: acquiring a C language source code; performing lexical analysis on the C language source code to generate a mark flow; performing syntactic analysis on the mark flow, and constructing an abstract syntax tree; performing semantic analysis on the abstract syntax tree to generate a target abstract syntax tree; constructing a runtime environment of the RISC-V assembly code; generating an intermediate code and a control flow diagram corresponding to the intermediate code according to a rule in the runtime environment and the target abstract syntax tree; generating a target code by using the intermediate code and the control flow diagram corresponding to the intermediate code; according to the technical scheme, the intermediate representation more adaptive to RISC-V custom instruction mapping can be generated, so that the execution efficiency of assembly codes is improved; and meanwhile, by designing a lightweight runtime environment, the performance overhead is further reduced.
Owner:CHINA SOUTHERN POWER GRID COMPANY

Fuzzy testing method and device for closed source operating system

The invention belongs to the technical field of operating system security, and particularly discloses a fuzzy testing method and device for a closed source operating system, and the method comprises the steps: for a task in a target task set, in the process of executing a test case, when a TCG of virtualization software QEMU performs code translation on a translation block TB, performing code translation on the translation block TB by the TCG of the virtualization software QEMU; inserting the target intermediate code into the intermediate code translated by the TCG, wherein the target intermediate code is used for instruction tracking or vulnerability detection; and when the intermediate code is executed, obtaining test information of the closed source operating system through the target intermediate code. According to the method, the target intermediate code is inserted, so that when the intermediate code corresponding to the TB is executed, the target intermediate code is utilized to perform instruction tracking or vulnerability detection to obtain the test information, and the execution mode of the QEMU is switched into a hardware virtualization KVM mode for tasks except the target task set; fuzzy testing can be efficiently carried out on the closed source operating system.
Owner:HUAZHONG UNIV OF SCI & TECH +1

Source code correction program and source code correction device

PendingJP2026013547AProgram code adaptionCode compilationSoftware engineeringCoding conventions
To efficiently prepare a program of high quality corresponding to various coding rules and various using program languages.SOLUTION: By the processing 2, the definition file A2 is used to convert the source code described in the predetermined program language into intermediate codes separated for each component having a meaning. The intermediate codes are converted into post-proofreading intermediate codes matched with the coding convention of the target program language by using a coding convention definition file A3 by processing 3. Further, by the process 4, the post-proofreading intermediate codes are converted into post-proofreading source codes of the target program language by using the source code conversion definition file A4.SELECTED DRAWING: Figure 3
Owner:SAXA

Control flow graph representation method and system for obtaining basic block calling relation of HIP kernel function

The invention discloses a control flow graph representation method and system for obtaining a basic block calling relation of an HIP kernel function, and the method comprises the steps: extracting the kernel function of an HIP program, compiling the kernel function into an LLVM IR intermediate code, and dividing the kernel function into a plurality of basic blocks; a unique serial number is distributed to each basic block, and a new edge basic block is inserted into the jump edge to represent the calling relation; generating a kernel function control flow diagram of a basic block level; the LLVM is used for instrumenting Pass, and instrumentation is carried out on the newly-added edge basic blocks; the method comprises the following steps: designing two lightweight thread instrumentation modes to reduce the instrumentation overhead, namely ProfileCTA and ProfileWavefront; the method comprises the following steps of: operating on a domestic DCU (Data Communication Unit) platform by adopting a compiling process of combining instrumentation of an equipment end and a host end, collecting calling times among basic blocks, taking dynamic information as an edge weight of CFG, and finally generating a basic-block-level HIP program kernel function CFG with the dynamic information. According to the method, the instrumentation overhead is effectively reduced, the obtaining efficiency of the dynamic calling relation is improved, and powerful support is provided for high-performance calculation and program optimization.
Owner:XI AN JIAOTONG UNIV

Data processing method and device based on block chain and readable storage medium

The embodiment of the invention discloses a data processing method and device based on a block chain and a readable storage medium, and the method comprises the steps: carrying out the fragmentation processing of an intermediate code corresponding to a smart contract, and obtaining A byte arrays; a is a positive integer greater than 1; the A byte arrays comprise a byte array Bc, and c is a positive integer and is smaller than or equal to A; generating a program fragment Dc according to the number of the byte array Bc, the total fragment number A and the byte array Bc; sending the program fragments corresponding to the A byte arrays to a block chain network, so that a block chain node in the block chain network performs uplink processing on the A program fragments; a linked program fragments are used for being assembled to generate a complete intermediate code. By adopting the method and the device, not only can the applicability of intelligent contract deployment be improved, but also the installation efficiency of the intelligent contract can be improved and manual approval errors can be avoided.
Owner:TENCENT TECHNOLOGY (SHENZHEN) CO LTD

Blockchain-based data processing method, device, and readable storage medium

A blockchain-based data processing method includes: performing sharding processing on an intermediate code corresponding to a smart contract to obtain A byte arrays, A being a positive integer greater than 1; generating A program shards according to indices of the byte arrays, a total quantity of shards, and the byte arrays, the total quantity being A, and each byte array corresponding to one program shard; and transmitting the A program shards to a blockchain network, the A program shards being added to a blockchain by a blockchain node in the blockchain network to obtain A on-chain program shards, and the A on-chain program shards being configured to be assembled to generate the complete intermediate code of the smart contract.
Owner:TENCENT TECHNOLOGY (SHENZHEN) CO LTD

Application generation method and device, equipment and storage medium

The invention provides an application generation method and device, equipment and a storage medium. The application generation method comprises the steps of obtaining a function code file and an interface library code file of a target application program of a desktop end version; compiling the function code file to obtain an intermediate code file; compiling the interface library code file to obtain a static library file; linking the intermediate code file and the static library file to obtain a target code file capable of running in the browser; and generating a target application program of the webpage end version according to the target code file. The application development efficiency is improved, and the application development cost is reduced.
Owner:SHENZHEN FUTU NETWORK TECH CO LTD

A lightweight robotic process automation method based on browser extension

The application relates to a lightweight robot process automation method based on a browser extension and belongs to the technical fields of robot process automation and browser plug-ins. The method comprises the following steps: initializing a drawing environment, preprocessing a node style, binding an input event to construct an interaction mechanism; communication is established through an event bus, an interface is constructed through a dynamic form component, instructions are encapsulated and syntax verification is performed; a command data format is defined, after syntax and semantic verification, the command data format is converted into executable code by an intermediate code generator, and error feedback visualization is supplemented; a content script is used to access a monitoring webpage DOM, an element operation and RPA instruction mapping library are established, and automatic conversion of a capture result into an instruction is realized; a lightweight execution kernel is realized through intermediate code acquisition, a process is monitored in an asynchronous non-blocking mode, and execution state global sharing and real-time updating are realized through a state management library. The lightweight architecture design of RPA, high-performance interaction optimization, intelligent process configuration and precise execution monitoring are realized.
Owner:MYRON INTELLIGENT TECH (SHANGHAI) CO LTD

Logic diagram compilation detection method, system, electronic device and storage medium

The present application relates to a logic diagram compilation detection method, system, electronic device, and storage medium. The method comprises: obtaining an initial logic diagram to be compiled and extracting the logical elements and logical structure of the initial logic diagram; converting the logical elements in the initial logic diagram into intermediate code based on the logical structure; and determining whether the intermediate code is consistent with the initial logic diagram based on a comparison result between the intermediate code and the initial logic diagram. This application avoids errors in the logic diagram compilation process, ensuring the correct output of the control system. This solves the problem in related technologies of additional losses caused by the process control system failing to output correct results, thereby achieving detection of the logic diagram compilation process.
Owner:SUPCON TECH CO LTD

A C++ vector programming method based on domestic heterogeneous platforms

The present invention discloses a C++ vector programming method based on a domestic heterogeneous platform, and the programming method comprises the following steps: S1, obtaining support for vector data types and vector programming interfaces by introducing header file simd.h; S2, the compiler performs front-end processing on the C++ vector program to generate intermediate representation code; S3, the compiler mid-end optimizes the intermediate representation code generated in S25 to generate a new intermediate representation; S4, the compiler mid-end generates instructions for the optimized intermediate code in step S3 to form vector assembly code; S5, generates machine code; S6, the linker mixes and links all the master core and slave core machine codes generated above into an executable code; S7, runs the executable code on a heterogeneous multi-core platform. The present invention provides a new programming method for the application development of the domestic heterogeneous multi-core architecture, which is conducive to maximizing the advantages of the architecture and improving application performance.
Owner:JIANGNAN INST OF COMPUTING TECH

Compiler fuzz testing technology for generating complex compiling options based on large model

The invention provides a compiler fuzz testing technology for generating complex compiling options based on a large model. According to the technology, the large model is effectively introduced into each stage of compiler testing. Firstly, in the aspect of a test code data set, a test code is obtained in combination with a historical defect report of a compiler, and a code snippet embedded in a natural language text of the historical defect report is obtained by using a large model; in order to more efficiently and specifically combine the complex compiling option test compiler, the technology combines a large model cue word project to generate a more targeted complex compiling option test compiler for each section of test program. Meanwhile, in order to avoid the situation that input codes exceed the context length limit of a large model, the technology abstracts source codes on the intermediate code level. The method has the main advantages that the code understanding and generating capacity of the language model is well utilized, legal and diversified complex compiling option input programs are automatically generated, and therefore the testing efficiency of the compiler is improved.
Owner:NANJING UNIV

Code processing method and device, electronic equipment, storage medium and computer program product

The invention discloses a code processing method and device, electronic equipment, a storage medium and a computer program product. The method comprises the steps that an original code is obtained, the original code is used for declaring that one or more quantum bits are written into a pointer array, the pointer array comprises one or more pointers, and the one or more pointers are used for pointing to the one or more quantum bits; determining the type of the pointer array and the name of the one or more quantum bits by using the original code; constructing an object array by using the type of the pointer array and the name of the one or more quantum bits, the object array being used for pointing to the one or more quantum bits; and replacing the pointer array with the object array to obtain a compiled intermediate code. According to the technical scheme, in the code compiling process, the pointers of the pointer array are replaced with the specific objects pointed by the pointers, and the processing efficiency when the objects associated with the pointer array are called subsequently can be improved.
Owner:CHINA MOBILE (SUZHOU) SOFTWARE TECH CO LTD +1

Source code positioning detection method and system, electronic device and storage medium

The embodiment of the application discloses a source code positioning detection method and system, electronic equipment and a storage medium, and relates to the technical field of static security detection. The method comprises the following steps: generating a corresponding bytecode file based on a to-be-positioned source code; the bytecode file comprises structure information, metadata and method information; analyzing the bytecode file to obtain intermediate code corresponding to the bytecode file; parsing the intermediate code to generate a function sequence list called in the to-be-positioned source code; the function sequence list comprises attribute information and calling information of a function; and matching and querying according to the function sequence list to determine position information of the to-be-positioned source code. The application can realize accurate matching and positioning of a source code function, thereby solving the false alarm problem of functions with the same name in different modules and being suitable for a source code function static detection scene.
Owner:HARBIN ANTIY TECH

Real-time compiling interpreter system capable of running on MCU, FPGA, GPU or universal CPU

The invention discloses a real-time compiling interpreter system capable of running on an MCU (Microprogrammed Control Unit), an FPGA (Field Programmable Gate Array), a GPU (Graphics Processing Unit) or a universal CPU (Central Processing Unit), and belongs to the technical field of embedded systems and computer compiling. According to the system, hardware decoupling is achieved through a modular architecture, and C / C + +, Python and LLVM intermediate codes are supported to be converted into unified intermediate byte codes; a byte code interpreter and an instant compiling module are integrated, both quick starting and efficient execution are considered, and starting can be completed within 1 millisecond; an event driving and periodic scheduling mechanism is provided, and the real-time response requirement is met; a segmented memory model and a security policy are adopted, low-power-consumption edge equipment is adapted, and domestic instruction sets such as RISC-V and LoongArch are compatible. The system solves the problems that a traditional embedded system is poor in flexibility, difficult in cross-platform, insufficient in real-time performance and the like, can achieve unified execution of heterogeneous platform codes, is suitable for the fields of industrial control, Internet of Things edge AI and the like, and has remarkable technical progress and industrial value.
Owner:GUANGZHOU KINGPIN IND CO LTD

Class structure compilation optimization method for transaction strategy backtesting

The invention discloses a class structure compiling optimization method for transaction strategy backtesting, and belongs to the technical field of databases, source codes are decomposed into minimum meaningful lexical units through grammar analysis, and lexical unit sequences are combined into an abstract syntax tree with a hierarchical structure according to grammar rules; an intermediate code is generated according to the abstract syntax tree, member access is optimized through type pushing, specifically, a large number of virtual methods exist in a class achieved by an interpreter, and virtual method calling is converted into direct method calling through type derivation on the basis of type information; compiling the intermediate code to obtain a machine code; executing the machine code to obtain a machine instruction; a global member variable access cache is added, a member variable in the access request is searched firstly, the found member variable is returned, and if the found member variable is not found, the global member variable access cache is updated, and the member variable is returned; executing the interpreter to obtain a machine instruction; and the operating system receives and executes the machine instruction.
Owner:DOLPHINDB INC (CN)

A method and system for constructing an application installation package, an electronic device, and a storage medium

This application discloses a method, system, electronic device, and storage medium for constructing an application installation package, belonging to the technical field of software engineering. The method for constructing the application installation package includes: determining the current environment; determining module requirement information based on the current environment; wherein the module requirement information describes whether functional modules need to be integrated into the application installation package; the functional modules include a first type of functional module and a second type of functional module, the first type of functional module being those that need to be integrated into the application installation package, and the second type of functional module being those that do not need to be integrated into the application installation package; executing a first control operation and a second control operation to obtain an intermediate code file; and packaging the intermediate code file and corresponding resource files to obtain the application installation package. This application can construct an application installation package while avoiding useless code residue.
Owner:FOUNDER SECURITIES CO LTD

SPIR-V-based inter-thread shared memory processing method

The invention is suitable for the technical field of GPU (Graphics Processing Unit), and provides an SPIR-V-based inter-thread shared memory processing method, which comprises the following steps of: S1, reading a high-level language code source code to a character buffer area, and then converting the source code in the character buffer area into an intermediate code in an SPIR-V form; s2, traversing an instruction sequence of an intermediate code, and for variable declarations in the instruction sequence, accumulating the sum of occupied spaces of all shared memory variables; s3, calculating a one-dimensional index and a shared memory address of the thread group; and S4, traversing the instruction sequence of the intermediate code, and for instructions in the function declaration and the function definition, if processing of a shared memory is involved, calculating a real address and generating different GPU instructions according to instruction types. The invention provides a universal method for translating related codes, used for processing a shared memory of a working group, in SPIR-V codes into basic instructions of all GPU architectures, and the instructions used in the method are basic instructions of all GPU instruction sets, so that the method has hardware platform universality.
Owner:WUHAN LINGJIU MICROELECTRONICS CO LTD