摘要
基于编译基础设施Openimpact开发DSP编译器的过程中,调试信息的生成是支持调试功能的必要条件。Openimpact本身并不支持调试信息的生成,它仅仅将调试信息从源代码携带到前端,以高级中间语言Pcode格式存放。为了支持调试信息的生成,我们必须对Openimpact进行适当扩展。本文详细讨论了具体扩展方法,包括调试信息从Pcode格式到低级中间语言Lcode格式的转换以及从Lcode格式到汇编格式的生成。
In the process of developping compiler for DSP based on compiler infrastructure Openimpact, the generation of debugging information is necessary for the support of debugging. Openimpact doesn't support the generation of debugging information which is only carried from source code to front end, stored in the form of advanced intermediate language Pcode. To support the generation of debugging information, it is necessary to make the corresponding expansion on Openimpact. It is discussed in detail that the concrete methods for expansion, containing the conversion of debugging information from Pcode to low-level intermediate language format Lcode and from Lcode format to assembly format.
出处
《计算机系统应用》
2012年第6期106-110,共5页
Computer Systems & Applications
基金
核高基项目(2009ZX01034-001-001-002)
关键词
调试信息
块作用域
行号:变量
debugging information
block scope
line number
variable