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.