disable optimization for hook.c
arm compatibility for hook