易截截图软件、单文件、免安装、纯绿色、仅160KB

C 汇编混合编程

As is Known to us,the function Main is the entry point of all programs.Therefore, we are usually neglecting all that we don't do,which makes us not understanding it more clearly.Now there is a sample arm program which will provide something that opration system usually do.
asm:
    IMPORT main
    area test,CODE,READONLY
    ENTRY
    bl start
start
    bl main
C:
#define rGPBCON    (*(volatile unsigned *)0x56000010) //Port B control
#define rGPBDAT    (*(volatile unsigned *)0x56000014) //Port B data
#define rGPBUP     (*(volatile unsigned *)0x56000018) //Pull-up control B
int main(int argc, char *argv[])
{
 unsigned int temp = 0x0e;
 rGPBCON = 0x00555555;
 rGPBUP = 0xffff;
 rGPBDAT = 0XE1F; 
 return 0;
}
The code very sample,but it is very useful.


相关文档:

Linux下C语言编程 信号处理函数

前言:这一章我们讨论一下Linux下的信号处理函数. 
     Linux下的信号处理函数: 
1.信号的产生 
2.信号的处理 
3.其它信号函数 
--------------------------------------------------------------------------------
一个实例 
1。信号的产生  ......

通配符的 C 语言源代码

/* find files from wildcards, for MicroSoft C v4.0 */
/* ------------------------------------------------------------ */
/*   copyright 1986:      */
/*   Nourse Gregg & Browne, Inc.  */
/*   1 Horizon Road. #612 ......

C 语言编程————经验之谈

1、C语言的项目内存管理很让人头疼,自始至终你要明白哪些内存应该要释放,哪些到最后才能释放,不然的话,就会出现一些堆被破坏的错误
2、每写一个函数一定要记得写它的测试程序,不管那个函数简单的还是复杂,不然的话,到最后会忙死你,有时还会犯一些低级的错误。这个教训我就犯过,写了一大堆Utility工具函数库,一个 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号