随笔分类 -  KEIL-C166

C166 -MDH
摘要:Writing a C logic for moving MDH register contents after MUL instruction http://www.keil.com/forum/5231/ unnecessary code generation http://www.keil.c 阅读全文

posted @ 2018-12-11 09:57 xihong 阅读(223) 评论(0) 推荐(0) 编辑

C166 8位字节位运算赋值-代码优化
摘要:8位字节位运算赋值优化特记录下: unsigned short func1(){ unsigned short a; return a;} unsigned char func2(){ unsigned char a; return a;} unsigned short u_16;unsigned 阅读全文

posted @ 2018-12-10 22:01 xihong 阅读(308) 评论(0) 推荐(0) 编辑

c166 -div
摘要:unsigned short a=10; unsigned short b; unsigned short c;unsigned long d; b = (unsigned short)(d/2400)/60; /*ok */ //sbit p3_0 = P3^0; unsigned long fu 阅读全文

posted @ 2018-12-09 19:58 xihong 阅读(228) 评论(0) 推荐(0) 编辑

Fixed-point multiplication (C166 A*B/B)
摘要:Read-Only AuthorAndrew Neil Posted22-Oct-2003 09:34 GMT ToolsetC166 RE: Fixed-point multiplication Read-Only AuthorMike Kleshov Posted22-Oct-2003 09:5 阅读全文

posted @ 2018-12-09 17:47 xihong 阅读(306) 评论(0) 推荐(0) 编辑

C166 结构按字节访问的设置
摘要:PACK Compiler Directive Home » Compiling Programs » Directives » Reference » PACK None. A decimal number (1 or 2) enclosed in parentheses. PACK(1) Opt 阅读全文

posted @ 2018-12-07 20:35 xihong 阅读(164) 评论(0) 推荐(0) 编辑

C166-变量和函数指定物理地址之二
摘要:按照《RENAMECLASS Compiler Directive》http://www.keil.com/support/man/docs/c166/c166_renameclass.htm #include "variables.h" extern void sub_000A0(); #prag 阅读全文

posted @ 2018-09-24 17:04 xihong 阅读(321) 评论(0) 推荐(0) 编辑

C166-变量和函数指定物理地址一
摘要:1、函数指定地址 按照http://www.keil.com/support/docs/2215.htm C166: LOCATING PROGRAM SECTIONS TO SPECIAL MEMORY AREAS的方法一 编写sub_00000.c #include "variables.h" 阅读全文

posted @ 2018-09-24 10:18 xihong 阅读(346) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示