搜索
bottom↓
回复: 1

马老师,在ICCAVR中BOOL类型量的定义是用的什么头文件?多谢拉

[复制链接]

出0入0汤圆

发表于 2006-12-8 09:27:27 | 显示全部楼层 |阅读模式
马老师,在ICCAVR中BOOL类型量的定义是用的什么头文件?多谢拉

阿莫论坛20周年了!感谢大家的支持与爱护!!

一只鸟敢站在脆弱的枝条上歇脚,它依仗的不是枝条不会断,而是自己有翅膀,会飞。

出0入0汤圆

发表于 2007-3-10 00:17:40 | 显示全部楼层
以下是ICCAVR所支持的变量类型



TYPE        SIZE (bytes)        RANGE

unsigned char        1        0..255

signed char        1        -128..127

char (*)        1        0..255

unsigned short        2        0..65535

(signed) short        2        -32768..32767

unsigned int        2        0..65535

(signed) int        2        -32768..32767

pointer        2        N/A

unsigned long        4        0..4294967295

(signed) long        4        -2147483648..2147483647

float        4        +/-1.175e-38..3.40e+38

double        4        +/-1.175e-38..3.40e+38



(*) "char" is equivalent to "unsigned char"

floats and doubles are in IEEE standard 32-bit format with 8 bit exponent, 23-bit mantissa and 1 sign bit.

Bitfield types must be either signed or unsigned but they will be packed into the smallest space. For example:



struct {



unsigned a : 1, b : 1;



};



Size of this structure is only 1 byte. Bitfields are packed right to left.
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-5-22 16:06

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表