The invention discloses a safe function parameter transmission method based on static binding of a hierarchical structure body and an RAM (
random access memory), which belongs to the field of
embedded system software design and comprises the following steps: S1, constructing a hierarchical function special structure
body type with
verification parameters; s2, function parameter transfer optimization; s3, realizing data and code life cycle synchronous management through
compiler instruction and link script forced binding; s4, through an XOR
verification mechanism, improving the function parameter transfer security; by constructing a three-layer function proprietary
structure type with
verification parameters, optimizing memory
layout, eliminating memory holes and adopting an XOR verification mechanism, the security and high efficiency of parameter transmission are ensured, and meanwhile, synchronous management of data and code life cycles is realized through
compiler instructions and link scripts, so that the security and high efficiency of
data transmission are improved. The fragmentation problem caused by dynamic memory allocation is avoided, and the stability and reliability of the
system are further improved.