易截截图软件、单文件、免安装、纯绿色、仅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.


相关文档:

C面试题

1  #i nclude “filename.h”和#i nclude <filename.h>的区别?
   答:对于#i nclude <filename.h>编译器从标准库开始搜索filename.h
    对于#i nclude “filename.h”编译器从用户工作路径开始搜索filename.h
2  头文件的作用是什么?
答:一 ......

CentOS5 no acceptable C compiler found in $PATH

CentOs5安装apache的时候
#./configure
(于检查系统是否有编译时所需的库,以及库的版本是否满足编译的需要等安装所需要的系统信息。为随后的编译工作做准备。)
提示错误如下:(没有GCC编译器环境)
checking build system type... i686-pc-linux-gnu
checking host system type.. ......

通配符的 C 语言源代码

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

C 的开始

    C 的开始
 
    2010年2月10日,
    开始阅读家里有关"C语言"的各种资料。
    使用 TurboC2.0,偶尔可能也会用到 Microsoft Visual C++ 6.0。 ......

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

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