The programming languages such as C/C++ suffer from memory management and security of code especially when their codes are used in critical systems. Therefore, we need an efficient mechanism to detect memory and type errors. Some researches have been done and many tools have been developed to detect these errors and to secure C/C++ code. However, theses tools have some drawbacks such as memory management and leak, and type errors in static and dynamic analysis. Generally speaking, this paper proposes a dynamic analysis mechanism to detect type errors in modules of C/C++ code using aspect-oriented programming. We illustrate problems by examples and discuss their solutions.
展开▼
机译:诸如C / C ++之类的编程语言会遭受内存管理和代码安全性的困扰,尤其是在关键系统中使用它们的代码时。因此,我们需要一种有效的机制来检测内存和类型错误。已经进行了一些研究,并且已经开发了许多工具来检测这些错误并保护C / C ++代码。但是,这些工具具有一些缺点,例如内存管理和泄漏以及静态和动态分析中的类型错误。一般而言,本文提出了一种动态分析机制,该机制可以使用面向方面的编程来检测C / C ++代码模块中的类型错误。我们通过示例说明问题并讨论其解决方案。
展开▼