文件名称:C51-123
介绍说明--下载内容来自于网络,使用问题请自行百度
C51的一些误区和注意事项(ZT)
1)C忌讳绝对定位。 常看见初学者要求使用_at_,这是一种谬误,把C当作ASM看待了。在C中变量
的定位是编译器的事情,初学者只要定义变量和变量的作 用域,编译器就把一个固定地址给这个
变量。怎么取得这个变量的地址?要用指针。比如unsigned char data x 后,x的地址就是...
-C51 some errors and attention to the business (ZT) 1) C taboo absolute positioning. See beginners often require the use of _at_, this is a fallacy, ASM C as a treat. C variables in the positioning of the compiler things, as long as the definition of beginners variable and the variable scope, Compiler put a fixed address to this variable. How the variables made the address? Use indicators. Unsigned char data such as x, x is the address ...
1)C忌讳绝对定位。 常看见初学者要求使用_at_,这是一种谬误,把C当作ASM看待了。在C中变量
的定位是编译器的事情,初学者只要定义变量和变量的作 用域,编译器就把一个固定地址给这个
变量。怎么取得这个变量的地址?要用指针。比如unsigned char data x 后,x的地址就是...
-C51 some errors and attention to the business (ZT) 1) C taboo absolute positioning. See beginners often require the use of _at_, this is a fallacy, ASM C as a treat. C variables in the positioning of the compiler things, as long as the definition of beginners variable and the variable scope, Compiler put a fixed address to this variable. How the variables made the address? Use indicators. Unsigned char data such as x, x is the address ...
(系统自动生成,下载前可以参看下载内容)
下载文件列表
51.pdf
www.dssz.com.txt
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.