首页> 外国专利> APPARATUS AND METHOD FOR DETECTING ERROR AND DETERMINING CORRESPONDING POSITION IN SOURCE CODE OF MIXED MODE APPLICATION PROGRAM SOURCE CODE THEREOF

APPARATUS AND METHOD FOR DETECTING ERROR AND DETERMINING CORRESPONDING POSITION IN SOURCE CODE OF MIXED MODE APPLICATION PROGRAM SOURCE CODE THEREOF

机译:混合模式应用程序源代码的源代码中的错误检测和确定对应位置的装置和方法

摘要

Disclosed are an apparatus and method for detecting a source code error location in a mixed-mode program, capable of providing source level debugging information without applying complex algorithm. An apparatus for detecting a source code error location in a mixed-mode program according to an embodiment comprises: a compiler unit which generates a first program by compiling a source code in a first mode, and generates a second program by compiling the source code in a second mode; a mapping table generation unit which generates a first mapping table for the first program, and a second mapping table for the second program; a simulation unit which simulates the first program and simulates the second program; a low-level data extraction unit which extracts first low-level data on the first program during the simulation of the first program, and extracts second low-level data on the second program during the simulation of the second program; a comparison data generation unit which maps the first low-level data onto the first mapping table to generate a verification target mapping table, and maps the second low-level data onto the second mapping table to generate a reference mapping table; and an error location detection unit which compares the verification target mapping table with the reference mapping table to determine whether there is an inconsistent record of data, and if so, obtains program location information relating to the record. [Reference numerals] (AA) Start; (BB) End; (S100) Compile step; (S110) Simulation and low level data extraction step; (S120) Comparison data generation step; (S130) Error location detection step
机译:公开了一种用于在混合模式程序中检测源代码错误位置的装置和方法,其能够在不应用复杂算法的情况下提供源级调试信息。根据实施例的用于在混合模式程序中检测源代码错误位置的设备包括:编译器单元,其通过以第一模式编译源代码来生成第一程序,并且通过以以下方式编译源代码来生成第二程序。第二种模式映射表生成单元,其为第一程序生成第一映射表,并为第二程序生成第二映射表;模拟单元,其模拟第一程序并模拟第二程序;低级数据提取单元,在第一程序的模拟过程中提取第一程序的第一低级数据,在第二程序的模拟过程中提取第二程序中的第二低级数据;比较数据生成单元,将第一低级数据映射到第一映射表以生成验证目标映射表,并将第二低级数据映射到第二映射表以生成参考映射表;错误位置检测单元将验证目标映射表与参考映射表进行比较,以确定是否存在数据记录不一致,如果存在,则获取与该记录有关的程序位置信息。 [参考数字](AA)开始; (BB)结束; (S100)编译步骤; (S110)模拟和低级数据提取步骤; (S120)比较数据生成步骤; (S130)错误位置检测步骤

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号