In order to make production of the target-based adaptive guidance algorithm for extensive use, model-base design method and code auto-generation method are used to transform the algorithm into software production. The software production is made upof core algorithm and peripheral driver. The core algorithm is designed by model-base design method and is transformed into production code by code auto-generation method, and the peripheral driver is realized by hand-writing code because of its complexity. The core algorithm and peripheral driver are downloaded together to the hardware circuit board to realize production. Ground tests are taken to verify the consistency of the algorithm model and production code. And the test results show that this algorithm production method can improve the algorithm design efficiency and succession, reduce the design complexity, make the algorithm production process quickly and flexibly and it can be used for reference for other complex algorithm production process.