Basic Types
Type-Specifier
int1
Defines a 1 bit number
int8
Defines an 8 bit number
int16
Defines a 16 bit number
int32
Defines a 32 bit number
char
Defines a 8 bit character
float
Defines a 32 bit floating point number
short
By default the same as int1
Int
By default the same as int8
long
By default the same as int16
void
Indicates no specific type
注意:所有的类型,除去浮点(
float
),默认的是无符号(
unsigned
);然而,
可能由
unsigned
或
signed
在之前。
Short
和
long
要有关键字
INT
跟在后面没有影
响。同样查看
#TYPE
来改变默认的大小。
SHORT
是一种特殊类型用来产生非常有效的位操作和
I/O
排列的位
(INT1
或
SHORT)
代码在
RAM
是支持的
。指向位的指针是不允许的。
Type-Qualifier
static
V
ariable
is
globally
active
and
initialized
to
0.
Only
accessible
from
this
compilation
unit.
auto
V
ariable exists only while the procedure is active. This is the default and AUTO need
not be used.
double
Is a reserved word but is not a supported data type.
extern
External
variable
used
with
multiple
compilation
units.
No
storage
is
allocated.
Is
used
to
make
otherwise
out
of
scope
data
accessible.
there
must
be
a
non-extern
definition at the global level in some compilation unit.
register
Is allowed as a qualifier however, has no effect.
_fixed(n)
Creates a fixed point decimal number where n is how many decimal places to round
to.
特殊类型
Enum
枚举类型:产生一个整形常量的列表。
Emum
[id]
{[id[=cexpr]]}
一个或多个逗号隔开