Inline Hook不像用户态Hook或SSDT hook(用C语言就足够),它需要在程序中嵌入汇编代码(Inline Assembly)以操作堆栈和执行内核API对应的部分汇编指令。当然,这些都须以驱动的形式进行。
基于1个网页-相关网页
But compared to manually written assembly code, the code generated by high level language compilers is often much worse and cannot meet the requirements.
但使用高级语言编译器生成代码的质量和手工编写的汇编代码相比还有很大差距,不能满足嵌入式系统的要求。
参考来源 - 嵌入式处理器编译器关键技术研究According to the way CodeWarrior compiles, we optimize c code and the algorithm of decoding bits from the bit stream. Then the assembly code of key modules is rewrote by using the special DSP instructions.
首先优化解码栈空间分配、内存分配、代码结构、冗余代码处理;其次结合CodeWarrior编译特点,优化了关键模块的C代码,优化了码流解码算法;最后结合DSP特点,优化并重写了关键模块的汇编代码。
参考来源 - 电子导游系统中宽带语音编解码器SPEEX优化研究·2,447,543篇论文数据,部分数据来源于NoteExpress
应用推荐