Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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°æ

typedef     struct   StackNode
{
    ElemType    data;
    StackNode   *next;
)StackNode, *LinkType;                  &nb ......

½ÌÄãÀí½â¸´ÔÓµÄC/C++ÉùÃ÷

      Ôø¾­Åöµ½¹ýÈÃÄãÃԻ󲻽⡢ÀàËÆÓÚint * (* (*fp1) (int) )
[10];ÕâÑùµÄ±äÁ¿ÉùÃ÷Â𣿱¾ÎĽ«ÓÉÒ×µ½ÄÑ£¬Ò»²½Ò»²½½Ì»áÄãÈçºÎÀí½âÕâÖÖ¸´ÔÓµÄC/C++ÉùÃ÷£ºÎÒÃÇ
½«´ÓÿÌ춼ÄÜÅöµ½µÄ½Ï¼òµ¥µÄÉùÃ÷ÈëÊÖ£¬È»ºóÖð²½¼ÓÈëconstÐÞÊÎ
·ûºÍtypedef£¬»¹Óк¯ÊýÖ¸Õ룬×îºó½éÉÜÒ»¸öÄܹ»ÈÃÄã׼ȷµØÀí½âÈκÎC/C++ ......

C++/CÊÔÌâ

C++/CÊÔÌâµÄ´ð°¸ÓëÆÀ·Ö±ê×¼(À´×ÔÓÚÁÖÈñµÄ<<¸ßÖÊÁ¿C++±à³ÌÖ¸ÄÏ>>),È«ÎÄÇëµ½±¾²©×ÊÔ´ÖÐÏÂÔØ.
Ò»¡¢ÇëÌîдBOOL , float, Ö¸Õë±äÁ¿ Óë“ÁãÖµ”±È½ÏµÄ if Óï¾ä¡££¨10·Ö£©
 
Çëд³ö BOOL  flag Óë“ÁãÖµ”±È½ÏµÄ if Óï¾ä¡££¨3·Ö£©
±ê×¼´ð°¸£º
    if ( flag )
&nb ......

C ÓïÑÔ¸ÅÊö

µÚÒ»Õ  CÓïÑÔ¸ÅÊö
 
 
²»ÒªÌÖÂÛΪʲôҪѧϰCÓïÑÔµÄÎÊÌ⣬CÓïÑÔ×ÔÓÐËü×Ô¼º¶ÀÌصÄÆøÏ¢£¡
 
Ò»¡¢CÓïÑÔµÄÀúÊ·
 
CÓïÑÔÊÇ1972ÄêÖÁ1973Äê¼ä£¬ÔÚÃÀ¹úµÄ±´¶ûʵÑéÊÒ( Bell Laboratories )ÓÉDennis M. RitchieÒ»¸öÈË¿ª·¢³öÀ´µÄÒ»ÖÖÏà¶Ô±È½ÏеijÌÐòÉè¼ÆÓïÑÔ¡£
1960Ä꣬³öÏÖµÄALGOL 60 (Ò²³Æ A ÓïÑ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ