Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

LinusΪʲô²»ÓÃC++дLinuxÄںˣ¿

ÔÚ×î½üµÄÒ»¸ö¹ØÓÚLKMLµÄÌÖÂÛÖУ¬Linus¸ø³öÁËΪʲô²»ÓÃC++À´Ð´LinuxÄں˵ÄÀíÓÉ£º
"In fact, in Linux we did try C++ once already, back in 1992. It sucks. Trust me - writing kernel code in C++ is a BLOODY STUPID IDEA.
“ÊÂʵÉÏ£¬ÎÒÃÇÔø¾­³¢ÊÔ¹ýÓÃC++À´Ð´£¬ÊÇÔÚ1992ÄêµÄʱºò¡£ºÜÔã¸â¡£ÏàÐÅÎÒ--ÓÃC++À´Ð´Äں˴úÂëÊÇÒ»¸ö·Ç³£ÓÞ´ÀµÄÏë·¨¡£”
"The fact is, C++ compilers are not trustworthy. They were even worse in 1992, but some fundamental facts haven't changed: 1) the whole C++ exception handling thing is fundamentally broken. It's _especially_ broken for kernels. 2) any compiler or language that likes to hide things like memory allocations behind your back just isn't a good choice for a kernel. 3) you can write object-oriented code (useful for filesystems etc) in C, _without_ the crap that is C++."
“ʵ¼ÊÉÏ£¬C++±àÒëÆ÷ÊǺܲ»¿É¿¿µÄ¡£ÔÚ1992ÄêµÄʱºòÇé¿ö¾ÍºÜ²îÁË£¬¶øÇÒһЩ»ù´¡µÄ¶«Î÷µ½ÏÖÔÚ»¹Ã»Óиı䣺(1)Õû¸öC++¶ÔExceptionµÄ´¦Àí¸ù±¾¾ÍÊDz»ÍêÕûµÄ£¬ÌرðÊÇÔÚдÄں˵Äʱºò¡£(2)ÈκÎϲ»¶°Ñ¸úÄÚ´æ·ÖÅäÓйصŦÄÜÄä²ØÆðÀ´µÄ±àÒëÆ÷»òÕß³ÌÐòÓïÑÔ¶ÔÓÚ±àдÄÚºËÀ´Ëµ¶¼ÊÇ´íÎóµÄÑ¡Ôñ¡£(3)ÔÚCÀïÃæÄãÒ²¿ÉÒÔдÃæÏò¶ÔÏóµÄ´úÂë(дÎļþϵͳµÄʱºòºÜÓÐÓÃ)£¬ÊDz»ÐèÒªC++µÄ¡£


Ïà¹ØÎĵµ£º

[תÌû]LinuxÇý¶¯¿ª·¢Ñ§Ï°µÄһЩ±ØÒª²½Öè

 1. ѧ»áд¼òµ¥µÄmakefile
2. ±àһЩӦÓÃ
³ÌÐò
£¬¿ÉÒÔÓÃmakefileÅÜÆðÀ´
3. ѧ»áдÇý¶¯
µÄmakefile
4. дһ¼òµ¥charÇý¶¯£¬makefile±àÒëͨ¹ý£¬¿ÉÒÔinsmod£¬ lsmod£¬ rmmod. ÔÚÇý¶¯µÄinitº¯ÊýÀï´òÓ¡hello world£¬insmodºóÓ¦¸ÃÄܹ»Í¨¹ýdmesg¿´µ½Êä³ö
¡£
5. дһÍêÕûÇý¶¯£¬ ¼ÓÉÏread£¬ write£¬ ioctl£¬ pollingµÈ¸ ......

º½¿Õ¹«Ë¾¹ÜÀíϵͳ(VC++ ÓëSQL 2005)

ϵͳ»·¾³£ºWindows 7
Èí¼þ»·¾³£ºVisual C++ 2008 SP1 +SQL Server 2005
±¾´ÎÄ¿µÄ£º±àдһ¸öº½¿Õ¹ÜÀíϵͳ
      ÕâÊÇÊý¾Ý¿â¿Î³ÌÉè¼ÆµÄ³É¹û£¬ËäÈ»³É¼¨²»¼Ñ£¬µ«ÊÇ×÷ΪÎÒÓÃVC++ ÒÔÀ´±àдµÄ×î´ó³ÌÐò»¹ÊÇ´«µ½ÍøÉÏ£¬ÒÔ¹©²Î¿¼¡£ÓÃVC++ ×öÊý¾Ý¿âÉè¼Æ²¢²»ÈÝÒ×£¬µ«Ò²²»ÊDz»¿ÉÄÜ¡£ÒÔÏÂÊÇÎҵijÌÐò½çÃ棬ºóÃæ ......

Ubuntu LinuxÈëÃŵ½¾«Í¨

 
 
¡¡¡¡
¡¡¡¡
¡¡¡¡±¾ÊéÈ«Ãæ½éÉÜÁËUbuntu LinuxµÄÏà¹Ø֪ʶ£¬ÄÚÈÝÏêʵ£¬ÂÛÊöÇåÎú¡£Ö÷ÒªÄÚÈÝ°üÀ¨Ubuntu½éÉÜ¡¢Îļþϵͳ¹ÜÀí¡¢½ø³Ì¹ÜÀí¡¢Ñ¹ËõÓë²éѯϵͳ¡¢ShellÓ¦Óá¢TCP/IP»ù´¡¡¢ÍøÂç¹ÜÀí¡¢ÍøÂçÓ²ÅÌÒÔ¼°¼ÓÃÜ°²È«Í¨ÐŵÈÄÚÈÝ¡£
¡¡¡¡±¾ÊéÊÇÒ»±¾ÀíÂÛÓëʵ¼ù²¢ÖصÄÊé¼®£¬¿É×÷ΪרҵÈËÔ±µÄ²Î¿¼Êé¼®£¬Ò²ÊʺÏÓÚ¶ÔUbuntu ......

Linux±Ø»á»ù´¡ÃüÁî

  1. man ¶ÔÄãÊìϤ»ò²»ÊìϤµÄÃüÁîÌṩ°ïÖú½âÊÍ eg:man ls ¾Í¿ÉÒԲ鿴lsÏà¹ØµÄÓ÷¨ ×¢£º°´q¼ü»òÕßctrl+cÍ˳ö£¬ÔÚlinuxÏ¿ÉÒÔʹÓÃctrl+cÖÕÖ¹µ±Ç°³ÌÐòÔËÐС£ 2. ls ²é¿´Ä¿Â¼»òÕßÎļþµÄÊô*£¬ÁоٳöÈÎһĿ¼ÏÂÃæµÄÎļþ eg: ls /usr/man ls -l a.d±íʾĿ¼(directory)£¬Èç¹ûÊÇÒ»¸ö"-"±íʾÊÇÎļþ£¬Èç¹ûÊÇlÔò±íʾ ......

linuxµ÷Õûϵͳʱ¼äºÍʱÇøµÄ·½·¨


linuxµ÷Õûϵͳʱ¼äºÍʱÇøµÄ·½·¨
1) ÕÒµ½ÏàÓ¦µÄʱÇøÎļþ /usr/share/zoneinfo/Asia/Shanghai
ÓÃÕâ¸öÎļþÌæ»»µ±Ç°µÄ/etc/localtimeÎļþ¡£
2) ÐÞ¸Ä/etc/sysconfig/clockÎļþ£¬ÐÞ¸ÄΪ£º
ZONE="Asia/Shanghai"
UTC=false
ARC=false
3)
ʱ¼äÉ趨³É2005Äê8ÔÂ30ÈÕµÄÃüÁîÈçÏ£º
#date -s 08/30/2005
½«ÏµÍ³Ê±¼äÉ趨³ÉÏÂÎ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ