基本信息:
- 专利标题: 혼합 모드 프로그램의 소스 코드 오류 위치 검출 장치 및 방법
- 专利标题(英):Apparatus and method for detecting error and determining corresponding position in source code of mixed mode application program source code thereof
- 专利标题(中):用于检测混合模式的源代码中的错误和确定相应位置的装置和方法应用程序源代码
- 申请号:KR1020120099609 申请日:2012-09-07
- 公开(公告)号:KR1020140033616A 公开(公告)日:2014-03-19
- 发明人: 심희준 , 안민욱 , 정진세 , 한연조
- 申请人: 삼성전자주식회사
- 申请人地址: ***, Samsung-ro, Yeongtong-gu, Suwon-si, Gyeonggi-do, Republic of Korea
- 专利权人: 삼성전자주식회사
- 当前专利权人: 삼성전자주식회사
- 当前专利权人地址: ***, Samsung-ro, Yeongtong-gu, Suwon-si, Gyeonggi-do, Republic of Korea
- 代理人: 특허법인가산
- 主分类号: G06F11/36
- IPC分类号: G06F11/36 ; G06F11/28
摘要:
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)错误位置检测步骤
公开/授权文献:
- KR102013582B1 혼합 모드 프로그램의 소스 코드 오류 위치 검출 장치 및 방법 公开/授权日:2019-08-23