This invention relates to the field of electronic
digital data processing, and discloses a dynamic expansion
system and method for an embedded IoT
concentrator based on WebAssembly. The
system includes: a storage configuration module that allocates the runtime environment control structure to internal storage and routes the
bytecode module's linear memory and execution stack to
external storage; a logic execution module that loads the
bytecode and stores the
heartbeat instruction; a cross-domain interaction module that generates the host
physical address based on the relative offset and the linear memory
base address, transmits data frames via physical memory
copying, and performs boundary overflow
verification before
copying; and an exception cleanup module that monitors changes in the
heartbeat value, and, upon determining an application failure, reverses the release of
peripheral mutexes and resets the hardware state. This invention utilizes hierarchical storage allocation to reduce
bus contention, ensures kernel security through addressing barriers, and combines a lock reclamation mechanism to prevent
bus deadlock.