首页>
外国专利>
Method of detecting stack overflows and processor for implementing such a method
Method of detecting stack overflows and processor for implementing such a method
展开▼
机译:检测堆栈溢出的方法和用于实现这种方法的处理器
展开▼
页面导航
摘要
著录项
相似文献
摘要
A method of detecting stack overflows includes the following steps: storing in at least one dedicated register at least one data item chosen from: a data item (SPHaut) indicating a maximum permitted value for a stack pointer, and a data item (SPBas) indicating a minimum permitted value for said stack pointer; effecting a comparison between a current value (SP) or past value (SPMin, SPMax) of said stack pointer and said data item or each of said data items; and generating a stack overflow exception if said comparison indicates that said current or past value of said stack pointer is greater than said maximum permitted value or less than said minimum permitted value. A processor for implementing such a method is also provided.
展开▼