Abstract:For the host-based embedded software testing, a general method for statement coverage testing in the unit test was proposed. The method was implemented by piling technology before compiling the source code. The relevant algorithm of the test code, with which the piling technology would be automatically performed, was designed. And these approaches were eventually applied to the platform ARMtest for embedded software emulating and testing. By these approaches, the problems in the early embedded software development can be found and improved through the host-based environment and simulation environment.