MIT C note

来源:互联网 发布:caffe cudnn加速 编辑:程序博客网 时间:2024/05/16 16:59

 • Big endian: the most significant bits (MSBs) occupy thelower address. This representation is used in the powerpc processor. Networks generally use big-endian order, and thus it is called network order

.• Little endian : the least signficant bits (LSBs) occupy thelower address. This representation is used on all x86 compatible processors.


static keyword has two meanings, depending on wherethe static variable is declared• Outside a function, static variables/functions only visiblewithin that file, not globally (cannot be extern’ed)• Inside a function, static variables:• are still local to that function• are initialized only during program initialization• do not get reinitialized with each function call



During execution, data processed in registers• Explicitly store commonly used data in registers – minimizeload/store overhead• Can explicitly declare certain variables as registers usingregister keyword• must be a simple type (implementation-dependent)• only local variables and function arguments eligible• excess/unallowed register declarations ignored, compiledas regular variables• Registers do not reside in addressed memory; pointer of aregister variable illegal

0 0
原创粉丝点击