The invention discloses a
compiler-free embedded program construction
system, method and device based on a large
language model, and the method comprises the steps: receiving a structured hardware demand description through a large
language model subjected to
instruction set architecture knowledge enhancement, and carrying out the direct reasoning to generate an
assembly instruction sequence for specific target hardware; and then mapping the
assembly instruction into a binary
machine code, executing in target hardware or a
simulation environment, capturing input and output logs and state data during operation in real time, carrying out semantic comparison with a preset acceptance standard, and when the comparison fails, constructing a feedback prompt word containing difference characteristics, and driving a model to carry out targeted logic correction, so as to complete the
verification of the
assembly instruction. And checking and accepting. In the construction process, the compilation step of converting a high-level language into an
intermediate code is completely abandoned, and code feedback correction is achieved. According to the method, the code volume can be reduced by more than 90% on the premise of ensuring the logic consistency, and the method is particularly suitable for the development of an
embedded system with
limited resources.