A C / C++ software plugin extension method and system based on runtime memory just-in-time compilation
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- NINGXIA VOCATIONAL TECHN COLLEGE OF IND & COMMERCE
- Filing Date
- 2026-03-27
- Publication Date
- 2026-06-30
AI Technical Summary
Existing C/C++ programs are difficult to dynamically extend in terms of functionality at runtime. Dynamic link library solutions suffer from performance overhead and hot update issues, while embedded scripting language solutions are inefficient and have difficulty directly accessing native C/C++ data structures.
The method adopts a runtime memory-based just-in-time compilation approach. It receives the plugin source code and metadata in compressed package form, parses the assembly information, creates the plugin control block, and compiles it in the host process memory to generate machine code, establishes event port control structure and field mapping, and realizes direct interaction between the plugin and the host.
It reduces the performance overhead of dynamic link libraries, supports hot plugin updates, solves ABI compatibility issues, improves runtime efficiency, avoids additional bridging overhead and data copying, and achieves efficient plugin extension.
Smart Images

Figure CN122308839A_ABST