C Runtime Library
C Runtime Library
1)ÔËÐÐʱ¿â¾ÍÊÇ C run-time library£¬ÊÇ C ¶ø·Ç C++ ÓïÑÔÊÀ½çµÄ¸ÅÄî:È¡Õâ¸öÃû×Ö¾ÍÊÇÒòΪÄãµÄ C ³ÌÐòÔËÐÐʱÐèÒªÕâЩ¿âÖеĺ¯Êý.
2)C ÓïÑÔÊÇËùνµÄ“СÄں˔ÓïÑÔ£¬¾ÍÆäÓïÑÔ±¾ÉíÀ´ËµºÜС£¨²»¶àµÄ¹Ø¼ü×Ö£¬³ÌÐòÁ÷³Ì¿ØÖÆ£¬Êý¾ÝÀàÐ͵ȣ©£»ËùÒÔ£¬C ÓïÑÔÄں˿ª·¢³öÀ´Ö®ºó£¬ Dennis Ritchie ºÍ Brian Kernighan ¾ÍÓà C ±¾ÉíÖØдÁË 90% ÒÔÉ쵀 UNIX ϵͳº¯Êý£¬²¢ÇÒ°ÑÆäÖÐ×î³£ÓõIJ¿·Ö¶ÀÁ¢³öÀ´£¬ÐγÉÍ·ÎļþºÍ¶ÔÓ¦µÄ LIBRARY£¬C run-time library ¾ÍÊÇÕâÑùÐγɵġ£
3)Ëæºó£¬Ëæ×Å C ÓïÑÔµÄÁ÷ÐУ¬¸÷¸ö C ±àÒëÆ÷µÄÉú²úÉÌ/¸öÌå/ÍÅÌ嶼×ñÑÀϵĴ«Í³£¬ÔÚ²»Í¬Æ½Ì¨É϶¼ÓÐÏà¶ÔÓ¦µÄ Standard Library£¬µ«´ó²¿·ÖʵÏÖ¶¼ÊÇÓë¸÷¸öƽ̨Óйصġ£ÓÉÓÚ¸÷¸ö C ±àÒëÆ÷¶Ô C µÄÖ§³ÖºÍÀí½âÓкܶà·ÖÆçºÍ΢ÃîµÄ²î±ð£¬ËùÒÔ¾ÍÓÐÁË ANSI C£»ANSI C £¨Ö÷¹ÛÒâͼÉÏ£©ÏêϸµÄ¹æ¶¨ÁË C ÓïÑÔ¸÷¸öÒªËصľßÌ庬ÒåºÍ±àÒëÆ÷ʵÏÖÒªÇó£¬Òý½øÁËеĺ¯ÊýÉùÃ÷·½Ê½£¬Í¬Ê±¶©Á¢ÁË Standard Library µÄ±ê×¼ÐÎʽ¡£ËùÒÔCÔËÐÐʱ¿âÓɱàÒëÆ÷Éú²úÉÌÌṩ¡£ÖÁÓÚÓÉÆäËû³§ÉÌ/¸öÈË/ÍÅÌåÌṩµÄÍ·ÎļþºÍ¿âº¯Êý£¬Ó¦µ±³ÆΪµÚÈý·½ C ÔËÐп⣨Third party C run-time libraries£©¡£
4)C run-time libraryÀïÃ溬Óгõʼ»¯´úÂ룬»¹ÓдíÎó´¦Àí´úÂë(ÀýÈçdivide by zero´¦Àí)¡£ÄãдµÄ³ÌÐò¿ÉÒÔûÓÐ math¿â£¬³ÌÐòÕÕÑùÔËÐУ¬Ö»ÊDz»ÄÜ´¦Àí¸´ÔÓµÄÊýѧÔËË㣬²»¹ýÈç¹ûûÓÐÁËC run-time¿â£¬main()¾Í²»»á±»µ÷Óã¬exit()Ò²²»Äܱ»ÏìÓ¦¡£ÒòΪC run-time library°üº¬ÁËC³ÌÐòÔËÐеÄ×î»ù±¾ºÍ×î³£Óõĺ¯Êý¡£
5)µ½ÁË C++ ÊÀ½çÀÓÐÁíÍâÒ»¸ö¸ÅÄî:Standard C++ Library,Ëü°üÀ¨ÁËÉÏÃæËù˵µÄ C run- time library ºÍ STL¡£°üº¬ C run-time library µÄÔÒòºÜÃ÷ÏÔ£¬C++ ÊÇ C µÄ³¬¼¯£¬Ã»ÓÐÀíÓÉÔÙÖØÐÂÀ´Ò»¸ö C ++ run-time library. VCÕë¶ÔC++ ¼ÓÈëµÄStandard C++ LibraryÖ÷Òª°üÀ¨£ºLIBCP.LIB, LIBCPMT.LIBºÍ MSVCPRT.LIB
6)Windows»·¾³Ï£¬VCÌṩµÄ C run-time libraryÓÖ·ÖΪ¶¯Ì¬ÔËÐÐʱ¿âºÍ¾²Ì¬ÔËÐÐʱ¿â¡£
¶¯Ì¬ÔËÐÐʱ¿âÖ÷ÒªÊÇDLL¿âÎļþmsvcrt.dll(or MSVCRTD.DLL for debug build),¶ÔÓ¦µÄImport libraryÎļþÊÇMSVCRT.LIB(MSVCRTD.LIB for debug build)
¾²Ì¬ÔËÐÐʱ¿â(release°æ)¶ÔÓ¦µÄÖ÷ÒªÎļþÊÇ£º
LIBC.LIB (Single thread static library, retail version)
LIBCMT.LIB (Multithread static library, retail version)
msvcrt.dllÌṩ¼¸Ç§¸öCº¯Êý£¬¼´Ê¹ÊÇÏñprintfÕâôµÍ¼¶µÄº¯Êý¶¼Ô
Ïà¹ØÎĵµ£º
Ò»¡¢¹¤¾ßµÄʹÓÃ
1¡¢Ñ§»áʹÓÃvim/emacs£¬vim/emacsÊÇlinuxÏÂ×î³£ÓõÄÔ´Âë±à¼¾ß£¬²»¹âҪѧ»áÓÃËüÃDZà¼Ô´Â룬»¹ÒªÑ§»áÓÃËüÃǽøÐвéÕÒ¡¢¶¨Î»¡¢Ìæ»»µÈ¡£ÐÂÊֵĻ°ÍƼöʹÓÃvim£¬ÕâÒ²ÊÇÎÒĿǰʹÓõÄÎı¾±à¼Æ÷¡£vimÓÐÒ»¸öÖÐÎÄÔÚÏßÊÖ²áhttp://vcd.gro.clinux.org¡£
2¡¢Ñ§»ámakefileÎļþµÄ±àд¹æÔò£¬²¢½áºÏʹÓù¤¾ßaclocal¡¢autoc ......
c:\progra~1 ÕâÖÖĿ¼ÊÇÔÚ´¿DOSÏ¿´µ½µÄ,´¿DOSʹÓÃ8+3Îļþ¸ñʽ,Ò²¾ÍÊÇ˵ÎļþÃû×î¶à²»³¬¹ý8¸ö×Ö·û,À©Õ¹Ãû×î¶à²»³¬¹ý3¸ö×Ö·û,³¤ÎļþÃû¾Í²ÉÓõÚ7¸ö×Ö·ûΪ~µÚ8¸ö×Ö·û°´ÓÐûÓÐÖظ´µÄÅÅÁË.ËùÒÔ´°¿ÚϵÄc:\program files Îļþ¼Ð½øÈë´¿DOS¿´µ½µÄÊÇc:\progra~1 ,
Õâ¸ö±»ÑÓÐøµ½WINDOWSÖÐ,Ò²ÊÇÒòΪµØÖ·Ì«³¤²Åд³ÉÕâÑùµÄ.ÒòΪֻÄÜÊäÈ ......
ÔÎÄ£ºhttp://hi.baidu.com/magicdemon/blog/item/821b2e22d7df494cad34debd.html
C++Ï»ù±¾ÀàÐÍËùռλÊýºÍÈ¡Öµ·¶Î§£º
·ûºÅÊôÐÔ ³¤¶ÈÊôÐÔ »ù±¾ÐÍ ËùռλÊý È¡Öµ·¶Î§ ÊäÈë·û¾ÙÀý&n ......
CRT È«³Æ£ºVisual C++ C RunTime Lib ¾ÍÊÇCÔËÐÐʱ¿â¡£
×¢£º ÒÔÏÂÄÚÈݲ¿·ÖÒý×ÔCSNDÖÐÏà¹ØÌÖÂÛµÄÌû×Ó£¬²¢½áºÏ×Ô¼ºµÄÀí½âÕûÀí¶ø³É¡£½ö¹©²Î¿¼¡£
1)ÔËÐÐʱ¿â¾ÍÊÇ C run-time library£¬ÊÇ C ¶ø·Ç C++ ÓïÑÔÊÀ½çµÄ¸ÅÄî:È¡Õâ¸öÃû×Ö¾ÍÊÇÒòΪÄãµÄ C ³ÌÐòÔËÐÐʱÐèÒªÕâЩ¿âÖеĺ¯Êý.
2)C ÓïÑÔÊÇËùνµÄ“СÄں˔ÓïÑÔ£¬¾ÍÆäÓ ......
ÕâÒ»ÕÂÎÒÃÇѧϰLinuxµÄʱ¼ä±íʾºÍ¼ÆË㺯Êý
1.ʱ¼äµÄ±íʾ
2.ʱ¼äµÄ²âÁ¿
3.¼ÆʱÆ÷µÄʹÓÃ
--------------------------------------------------------------------------------
1¡£Ê±¼ä±íʾ ÔÚ³ÌÐòµ±ÖÐ,ÎÒÃǾ³£ÒªÊä³öϵͳµ±Ç°µÄʱ¼ä,±ÈÈçÎÒÃÇʹÓÃdateÃüÁîµÄÊ ......