摘要
针对软件移植嵌入式平台时的裁剪问题,提出一个通用的、自动化的裁剪方案。该方案基于覆盖测试思想,利用源代码静态分析技术,在每个函数的首尾插入桩代码,通过执行已插桩的程序,动态地获得函数的覆盖信息。根据函数的覆盖信息,能对软件进行自动化的裁剪。该裁剪方案可以将软件体积减少30%左右。
This paper gives a solution of a general way for automatic tailoring while transplanting a software to an embedded systeln. The solution is based on the technique of coverage test. It makes static analysis for the source code which is tailored, and inserts the stub code into the beginning and ending of each function. After instrumentation, it executes the code and gets the coverage information. It tailors those functions which are never used. Though this way, it can reduce the size of software by about 30%.
出处
《计算机工程》
CAS
CSCD
北大核心
2010年第1期73-75,共3页
Computer Engineering
关键词
嵌入式软件
插桩
覆盖测试
裁剪
embedded software
instrumentation
coverage test
tailoring