摘要
嵌入式软件的可靠性越来越成为决定整个嵌入式系统可靠性的重点,随着软件规模的增大,采用人工方式对程序错误进行排除的工作变得非常低效和复杂。介绍了一种利用调试软件Valgrind进行嵌入式应用程序错误查找的技术,利用它可以高效、自动地查找出程序中的多种错误。首先介绍了嵌入式程序常见错误,接着研究了Valgrind的工作原理,最后介绍了利用Valgrind进行程序错误检测的步骤和应用实例。
The reliability of embedded software is more and more important in the embedded system. The scale of software is becoming large and this makes the work to remove the errors of program manually more complex and inefficient. In this paper, a technology to detect the errors of program by using Valgrind is introduced. Many errors of program can be found automatically and efficiently with the help of Valgrind. Some familiar errors of embedded program, the principle of Valgrind is studied and finally the steps of using Valgrind to avoid errors are given.
出处
《电脑开发与应用》
2007年第6期63-66,共4页
Computer Development & Applications