Ç×ÃܽӴ¥C¿É±ä²ÎÊýº¯Êý
Ç×ÃܽӴ¥C¿É±ä²ÎÊýº¯Êý
±¾ÎÄ´Ó³ÌÐòԱʵ¼ùµÄ½Ç¶ÈÀ´ÆÊÎöC¿É±ä²ÎÊýº¯ÊýÔÚIntel 32λCPUÉϵÄʵÏÖÓëÔÀí
×÷ÕߣºÁÖº£·ã
ÍøÖ·:http://blog.csdn.net/linyt/archive/2008/04/02/2243605.aspx
[*]»¶ÓתÔØ£¬µ«ÇëÍêÕûתÔز¢×¢Ã÷×÷ÕßÒÔ¼°µØÖ·£¬ÇëÎðÓÃÓÚÈκÎÉÌÒµÓÃ;¡£
¿É±ä²ÎÊýº¯ÊýµÄʵÏÖ
Èç¹û˵CÓïÑÔ¾ßÓкܶàµÍ¼¶ÓïÑÔµÄÌØÐÔ£¬ÄÇô¿É±ä²ÎÊýº¯Êý±ãÊÇÕâЩÌØÐÔÖеÄÒ»¸ö¡£ÎÞÂÛÊÇCר¼Ò»¹ÊÇC³õѧÕߣ¬¶¼¶Ôprintf±ê×¼¿âº¯ÊýÏ൱Á˽⣬ÒòΪËüÊÇÎÒÃDz½ÈëCÓïÑԵĵÚÒ»¸öº¯Êý¡£Ê¹ÓÃprintfº¯Êýʱ£¬¾Í²»Öª²»¾õµØ½Ó´¥µ½CÓïÑԵĿɱä²ÎÊýº¯Êý»úÖÆ¡£
printfº¯ÊýµÄÔÐͶ¨ÒåÈçÏ£º
int printf(const char *format, ...);
Óë´ËÀàËÆ£¬CÓïÑԵĿɱä²ÎÊýº¯ÊýµÄ¶¨ÒåÈçÏ£º
type fun( type arg1, type arg2, ...);
ÆäÖÐtype±íʾÀàÐÍ,arg1, arg2±íʾ²ÎÊýÃû£¬¶ø×îÖØÒªµÄÊǿɱä²ÎÊýº¯ÊýµÄ²ÎÊýÁбíÖгöÏÖÁË“...”·ûºÅ¡£·ûºÅ“...”ÓÃÀ´±íʾ²ÎÊýµÄ¸öÊýÒÔ¼°ÏàÓ¦µÄÀàÐͶ¼ÊǿɱäµÄ£¬Ï൱ÓÚ¶à¸ö²ÎÊýµÄռλ·û£¬¿ÉΪ0¸ö£¬1¸ö»ò¶à¸ö²ÎÊý£¬²¢ÇÒÒªÇó“...”Ç°ÖÁÉÙÓÐÒ»¸ö²ÎÊý£¬²¢ÇÒËüµÄºóÃæ²»ÄÜÔÙ³öÏÖ²ÎÊý¡£ CÓïÑÔÌṩ¿É±ä²ÎÊýº¯Êý¿ÉÒÔ¸ù¾Ýʵ¼ÊµÄÐèÒªÀ´ÊµÏÖ²ÎÊý¸öÊýºÍÀàÐÍΪ¿É±äµÄÇé¿ö£¬ÔÚC±ê×¼¿â¿âÖÐÒÔprintf×îΪ³öÃû¡£¶øÔÚUnix»·¾³ÖУ¬exec¼Ò×庯Êý¾ÍÊÇ×îºÃµÄÀýÖ¤¡£ÔÚ´ËÒÔÒ»¸öÇóºÍº¯Êý£¨sum)À´ÌÖÂÛÈçºÎʵÏֿɱä²ÎÊýº¯ÊýµÄʵÏÖ¡£sumº¯ÊýµÄÄ¿±ê£¬ÓÃÓÚʵÏֿɱä¸öÕûÊýÇóºÍ£¬º¯ÊýÔÐÍ£ºint sum(int num, ...)¡£Óû§ÔÚʹÓøú¯ÊýÊǷdz£·½±ãµÄ£¬Ö»ÐèÖ¸¶¨ÇóºÍµÄ¸öÊýÒÔ¼°Ã¿¸ö²ÎÊý£¬Í¨¹ýµ÷Ó÷µ»ØÇóºÍµÄÖµ¡£µ«ÊÇ´ÓÒÔǰʹÓõķ½·¨À´ÊµÏÖ£¬ÄÇÊǷdz£ÒòÄѵģ¬ÕâÊÇÒòΪ£º
[1]µ±Óû§µ÷ÓÃʱ£¬ÔËÐÐʱÿ¸ö²ÎÊýÖµµÄÄÑÒÔ»ñµÃ£¬ÔÚÆÕͨº¯ÊýÖУ¬Í¨¹ýÐβμ´¿É»ñµÃ£¬µ«ÊÇÔڿɱä²ÎÊýº¯ÊýµÄ²ÎÊýÁбíÖÐÖ»ÓÐ"..."£¬¶ø²»Öª¸÷¸öÐβεÄÃû×Ö¡£
[2]¿É±ä²ÎÊýµÄ¸öÊýÊDz»È·¶¨µÄ£¬ËäÈ»¿ÉÒÔͨ¹ýÇ°ÃæµÄ²ÎÊýÀ´È·¶¨ºóÃæµÄ¿É±ä²ÎÊýµÄ¸öÊýºÍÀàÐÍ£¨Èçsumº¯Êýͨ¹ýnum²ÎÊýÀ´±íÃ÷ºóÃæ¿É±ä²ÎÊýµÄ¸öÊý£¬printfº¯Êýͨ¹ýformatÀ´¾ö¶¨¿É±ä²ÎÊýµÄ¸öÊýÒÔ¼°ËüµÄÀàÐÍ£©£¬µ«ÊÇÕâ¸öº¯Êý¶¨ÒåµÄÓïÒåÎÊÌ⣬CµÄ±àÒëÆ÷²»Äܼì²âµ½ÈκÎÏà¹ØµÄ´íÎ󣬲¢ÇÒÒ²¿ÉÄÜÔËÐÐʱҲ¿ÉÄܲ¶×½²»µ½Ïà¹ØµÄ´íÎó¡£
Èç¹û¶ÁÕ߶ÔCPUÓÐÏ൱µÄÁ˽â»òÕ߶ÔCÓïÑÔº¯Êýµ÷ÓõÄÔ¼¶¨ÊìϤ£¬»òÕ߶Իã±àµÄ¾Ñ飬ÄÇôÓÃCÓïÑÔ£¨»ò½áºÏ»ã±à£©À´Ð´Ò»¸ö¿É±ä²ÎÊýº¯Êý²¢²»ÊǺÜÄѵġ£ÏÔÈ»£¬½áºÏ»ã±àÀ´ÊµÏֿɱä²ÎÊýº¯Êý»á½µµÍ³ÌÐòµÄ¿ÉÒÆÖ²ÐÔ¡£ÎªÁ˱
Ïà¹ØÎĵµ£º
CentOs5°²×°apacheµÄʱºò
#./configure
(ÓÚ¼ì²éϵͳÊÇ·ñÓбàÒëʱËùÐèµÄ¿â£¬ÒÔ¼°¿âµÄ°æ±¾ÊÇ·ñÂú×ã±àÒëµÄÐèÒªµÈ°²×°ËùÐèÒªµÄϵͳÐÅÏ¢¡£ÎªËæºóµÄ±àÒ빤×÷×ö×¼±¸¡£)
Ìáʾ´íÎóÈçÏÂ:£¨Ã»ÓÐGCC±àÒëÆ÷»·¾³£©
checking build system type... i686-pc-linux-gnu
checking host system type.. ......
C µÄ¿ªÊ¼
2010Äê2ÔÂ10ÈÕ£¬
¿ªÊ¼ÔĶÁ¼ÒÀïÓйØ"CÓïÑÔ"µÄ¸÷ÖÖ×ÊÁÏ¡£
ʹÓà TurboC2.0£¬Å¼¶û¿ÉÄÜÒ²»áÓõ½ Microsoft Visual C++ 6.0¡£ ......
B/S½á¹¹£¨Browser/Server½á¹¹£©½á¹¹¼´ä¯ÀÀÆ÷ºÍ·þÎñÆ÷½á¹¹¡£ËüÊÇËæ×ÅInternet¼¼ÊõµÄÐËÆ𣬶ÔC/S½á¹¹µÄÒ»Öֱ仯»òÕ߸ĽøµÄ½á¹¹¡£ÔÚÕâÖֽṹÏ£¬Óû§¹¤×÷½çÃæÊÇͨ¹ýWWWä¯ÀÀÆ÷À´ÊµÏÖ£¬¼«ÉÙ²¿·ÖÊÂÎñÂß¼ÔÚÇ°¶Ë£¨Browser£©ÊµÏÖ£¬µ«ÊÇÖ÷ÒªÊÂÎñÂß¼ÔÚ·þÎñÆ÷¶Ë£¨Server£©ÊµÏÖ£¬ÐγÉËùνÈý²ã3-tier½á¹¹¡£ÕâÑù¾Í´ó´ó¼ò»¯ÁË¿Í»§¶ËµçÄÔÔØ ......
µÚÒ»Õ CÓïÑÔ¸ÅÊö
²»ÒªÌÖÂÛΪʲôҪѧϰCÓïÑÔµÄÎÊÌ⣬CÓïÑÔ×ÔÓÐËü×Ô¼º¶ÀÌصÄÆøÏ¢£¡
Ò»¡¢CÓïÑÔµÄÀúÊ·
CÓïÑÔÊÇ1972ÄêÖÁ1973Äê¼ä£¬ÔÚÃÀ¹úµÄ±´¶ûʵÑéÊÒ( Bell Laboratories )ÓÉDennis M. RitchieÒ»¸öÈË¿ª·¢³öÀ´µÄÒ»ÖÖÏà¶Ô±È½ÏеijÌÐòÉè¼ÆÓïÑÔ¡£
1960Ä꣬³öÏÖµÄALGOL 60 (Ò²³Æ A ÓïÑ ......
Ò»¡¢Ô¤±¸ÖªÊ¶—³ÌÐòµÄÄÚ´æ·ÖÅä
Ò»¸öÓÉc/C++±àÒëµÄ³ÌÐòÕ¼ÓõÄÄÚ´æ·ÖΪÒÔϼ¸¸ö²¿·Ö
1¡¢Õ»Çø£¨stack£©— ÓɱàÒëÆ÷×Ô¶¯·ÖÅäÊÍ·Å £¬´æ·Åº¯ÊýµÄ²ÎÊýÖµ£¬¾Ö²¿±äÁ¿µÄÖµµÈ¡£Æä²Ù×÷·½Ê½ÀàËÆÓÚÊý¾Ý½á¹¹ÖеÄÕ»¡£
2¡¢¶ÑÇø£¨heap£© — Ò»°ãÓɳÌÐòÔ±·ÖÅäÊÍ·Å£¬ Èô³ÌÐòÔ±²»ÊÍ·Å£¬³Ì ......