发明授权
US07831809B2 Method for reducing code size of a program in code memory by dynamically storing an instruction into a memory location following a group of instructions indicated by an offset operand and either a length operand or a bitmask operand of an echo instruction
有权
一种用于通过在由偏移操作数指示的一组指令和回波指令的长度操作数或位掩码操作数指示的动态存储指令到存储器位置中来减少代码存储器中程序的代码大小的方法
- 专利标题: Method for reducing code size of a program in code memory by dynamically storing an instruction into a memory location following a group of instructions indicated by an offset operand and either a length operand or a bitmask operand of an echo instruction
- 专利标题(中): 一种用于通过在由偏移操作数指示的一组指令和回波指令的长度操作数或位掩码操作数指示的动态存储指令到存储器位置中来减少代码存储器中程序的代码大小的方法
-
申请号: US11510730申请日: 2006-08-28
-
公开(公告)号: US07831809B2公开(公告)日: 2010-11-09
- 发明人: Keun-soo Yim , Jae-don Lee , Jeong-joon Yoo , Kyoung-ho Kang , Jung-keun Park , Chae-seok Im , Woon-gee Kim , Chang-woo Baek
- 申请人: Keun-soo Yim , Jae-don Lee , Jeong-joon Yoo , Kyoung-ho Kang , Jung-keun Park , Chae-seok Im , Woon-gee Kim , Chang-woo Baek
- 申请人地址: KR Suwon-Si
- 专利权人: Samsung Electronics Co., Ltd.
- 当前专利权人: Samsung Electronics Co., Ltd.
- 当前专利权人地址: KR Suwon-Si
- 代理机构: Staas & Halsey LLP
- 优先权: KR10-2005-0088927 20050923
- 主分类号: G06F9/40
- IPC分类号: G06F9/40
摘要:
A method of reducing a code size of a program by controlling a control flow of the program using software in a computer system is disclosed. The method includes the steps of storing a first program count of a first instruction in a first buffer when an error occurs while the first instruction having an Operand including Offset and Length is being executed among a plurality of instructions loaded in the code memory, changing a current program count of the code memory to a second program count which is obtained by adding the Offset to the first program count, storing a second instruction, which is located at a position shifted from the second program count by a value of the Length, in a second buffer, replacing the second instruction with a third instruction, which is not recognized by a microprocessor, replacing the third instruction with the second instruction stored in the second buffer when an error occurs while the third instruction is being executed, and changing the current program count of the code memory to a predetermined program count next to the first program count stored in the first buffer.
公开/授权文献
- US20070074003A1 Method for reducing code size of program in code memory 公开/授权日:2007-03-29
信息查询