随笔分类 -  AspectC

摘要:this->kind 操作类型this->targetName 被调用函数名称this->funcName 调用函数名称this->argsCount 参数个数this->argType(i) 获取编号为i的参数类型this->arg(i) 获取编号为i的参数类型this->retType 返回值类... 阅读全文
posted @ 2015-06-18 16:48 LittlePenguin 阅读(262) 评论(0) 推荐(0)
摘要:例子:malPro.acc文件: #include size_t totalMemoryAllocated; int totalAllocationFuncCalled; int totalFreeFuncCalled... 阅读全文
posted @ 2015-06-10 10:56 LittlePenguin 阅读(103) 评论(0) 推荐(0)
摘要:1.method 1: use "acc">acc hello.acc world.mc gcc hello.c world.c >./a.out2.method 2: use"tacc">tacc foo.c fooac.acc>./a.out>tacc foo.c fooac.acc -o t... 阅读全文
posted @ 2015-06-09 16:21 LittlePenguin 阅读(221) 评论(0) 推荐(0)
摘要:The checking logic would be refactored into an aspect file, as follows:after(void * s) : (call($ malloc(...)) || call($ calloc(...)) || call($ realloc... 阅读全文
posted @ 2015-06-09 15:51 LittlePenguin 阅读(137) 评论(0) 推荐(0)
摘要:int around(): execution(int main(...)) 阅读全文
posted @ 2015-06-09 11:56 LittlePenguin 阅读(263) 评论(0) 推荐(0)