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

linux software

³ÌÐòÊÇÓÃÓÚÖ´ÐÐÌض¨ÈÎÎñµÄ¼ÆËã»úÖ¸Áî×éºÏ¡£³ÌÐò¿ÉÒÔÓûã±àÓïÑÔ£¬Ò»Öַdz£µÍ¼¶µÄ¼ÆËã»úÓïÑÔÀ´±àд£¬Ò²¿ÉÒÔʹÓúͻúÆ÷Î޹صĸ߼¶ÓïÑÔ£¬±ÈÈç C
ÓïÑÔ±àд¡£²Ù×÷ϵͳÊÇÒ»¸öÌØÊâµÄ³ÌÐò£¬ÔÊÐíÓû§Í¨¹ýËüÔËÐÐÓ¦ÓóÌÐò£¬±ÈÈçµç×Ó±íºÍÎÄ×Ö´¦ÀíµÈµÈ¡£±¾Õ½éÉÜÁË»ù±¾µÄ±à³ÌÔ­Àí£¬²¢¼ò½é²Ù×÷ϵͳµÄÄ¿µÄºÍ¹¦ÄÜ¡£
2.1 Computer Languages( ¼ÆËã»úÓïÑÔ )
2.1.1. »ã±àÓïÑÔ
    CPU ´ÓÄÚ´æÖжÁÈ¡ºÍÖ´ÐеÄÖ¸Áî¶ÔÓÚÈËÀàÀ´½²ÎÞ·¨Àí½â¡£ËüÃÇÊÇ»úÆ÷´úÂ룬¾«È·µÄ¸æËß¼ÆËã»úÒª×öʲô¡£±ÈÈçÊ®Áù½øÖÆÊý 0x89E5
£¬ÊÇ Intel 80486 µÄÖ¸Á½«¼Ä´æÆ÷ ESP µÄÄÚÈÝ¿½±´µ½¼Ä´æÆ÷ EBP
ÖС£ÔçÆÚ¼ÆËã»úÖÐ×î³õµÄÈí¼þ¹¤¾ßÖ®Ò»ÊÇ»ã±à³ÌÐò£¬Ëü¶ÁÈëÈËÀà¿ÉÒÔÔĶÁµÄÔ´Îļþ£¬½«Æä×°Åä³É»úÆ÷´úÂë¡£»ã±àÓïÑÔÃ÷È·µØ´¦Àí¶Ô¼Ä´æÆ÷ºÍ¶ÔÊý¾ÝµÄ²Ù×÷£¬¶øÕâÖÖ²Ù
×÷¶ÔÓÚÌض¨µÄ΢´¦ÀíÆ÷¶øÑÔÊÇÌØÊâµÄ¡£ Intel X86 ΢´¦ÀíÆ÷µÄ»ã±àÓïÑÔºÍ Alpha AXP ΢´¦ÀíÆ÷µÄ»ã±àÓïÑÔÍêÈ«²»Í¬¡£ÒÔÏ Alpha
AXP »ã±à´úÂëÑÝʾÁ˳ÌÐò¿ÉÒÔÖ´ÐеIJÙ×÷ÀàÐÍ£º
Ldr r16, (r15) ; µÚÒ»ÐÐ
Ldr r17, 4(r15) ; µÚ¶þÐÐ
Beq r16,r17,100; µÚÈýÐÐ
Str r17, (r15); µÚËÄÐÐ
100: ; µÚÎåÐÐ
    µÚÒ»ÌõÓï¾ä£¨µÚÒ»ÐУ©½«¼Ä´æÆ÷ 15 Ö¸¶¨µÄµØÖ·ÖеÄÄÚÈݼÓÔص½¼Ä´æÆ÷ 16 ÖС£µÚ¶þÌõÖ¸Á½ô½Ó×ŵÄÄÚ´æÖеÄÄÚÈݼÓÔص½¼Ä´æÆ÷ 17
ÖС£µÚÈýÐбȽϼĴæÆ÷ 16 ºÍ¼Ä´æÆ÷ 17 £¬Èç¹ûÏàµÈ£¬·ÖÖ§µ½±êºÅ 100 £¬·ñÔò£¬¼ÌÐøÖ´ÐеÚËÄÐУ¬½«¼Ä´æÆ÷ 17
µÄÄÚÈÝ´æµ½ÄÚ´æÖС£Èç¹ûÄÚ´æÖеÄÊý¾ÝÏàͬ£¬¾Í²»±Ø´æ´¢Êý¾Ý¡£±àд»ã±à¼¶µÄ³ÌÐòÐèÒª¼¼ÇɶøÇÒÊ®·ÖÈß³¤£¬ÈÝÒ׳ö´í¡£ Linux
ϵͳµÄºËÐĺÜÉÙµÄÒ»²¿·ÖÊÇÓûã±àÓïÑÔ±àд£¬¶øÕâЩ²¿·ÖÖ®ËùÒÔʹÓûã±àÓïÑÔÖ»ÊÇΪÁËÌá¸ßЧÂÊ£¬²¢ÇҺ;ßÌåµÄ΢´¦ÀíÆ÷Ïà¹Ø¡£
2.1.2 The C Programming Language and Compiler (C ÓïÑԺͱàÒëÆ÷ )
    Ê¹Óûã±àÓïÑÔ±àд´óÐͳÌÐòÊ®·ÖÀ§ÄÑ£¬ÏûºÄʱ¼ä£¬ÈÝÒ׳ö´í¶øÇÒÉú³ÉµÄ³ÌÐò²»ÄÜÒÆÖ²£¬Ö»ÄÜÊø¸¿ÔÚÌض¨µÄ´¦ÀíÆ÷¼Ò×å¡£¸üºÃµÄÑ¡ÔñÊÇʹÓúͻúÆ÷ÎÞ¹Ø
µÄÓïÑÔ£¬ÀýÈç C ¡£ C ÔÊÐíÄãÓÃÂß¼­Ëã·¨ÃèÊö³ÌÐòºÍÒª´¦ÀíµÄÊý¾Ý¡£±»³ÆΪ±àÒë³ÌÐò£¨ compiler £©µÄÌØÊâ³ÌÐò¶ÁÈë C
³ÌÐò£¬²¢½«Ëüת»»Îª»ã±àÓïÑÔ£¬½ø¶ø²úÉú»úÆ÷Ïà¹ØµÄ´úÂë¡£ºÃµÄ±àÒëÆ÷Éú³ÉµÄ»ã±àÖ¸Áî¿ÉÒԺͺõĻã±à³ÌÐòÔ±±àдµÄ³ÌÐòЧÂʽӽü¡£´ó²¿·Ö Linux
ºËÐÄÊÇÓà C ÓïÑÔ±àдµÄ¡£ÒÔÏ嵀 C Ƭ¶Ï£º
if (x != y)
x = y;
    Ö´ÐÐÁ˺ÍÇ°ÃæʾÀýÖлã±


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì (Æß) SDPЭÒé

Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖЭÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀЭÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......

linuxµÄÈÕÖ¾¹ÜÀí

SyslogÉ豸ÒÀ¾ÝÁ½¸öÖØÒªµÄÎļþ£º/etc/syslogd£¨ÊØ»¤½ø³Ì£©ºÍ/etc/syslog.confÅäÖÃÎļþ£¬Ï°¹ßÉÏ£¬¶àÊýsyslog ÐÅÏ¢±»Ð´µ½/var/adm»ò/var/logĿ¼ÏµÄÐÅÏ¢ÎļþÖУ¨messages.*£©¡£Ò»¸öµäÐ͵Äsyslog¼Í¼°üÀ¨Éú³É³ÌÐòµÄÃû×ÖºÍÒ»¸öÎı¾ÐÅÏ¢¡£Ëü»¹°üÀ¨Ò»¸öÉ豸ºÍÒ»¸öÓÅÏȼ¶·¶Î§£¨µ«²»ÔÚÈÕÖ®ÖгöÏÖ£©¡£
¡¡¡¡Ã¿¸ösyslogÏûÏ¢±»¸³ÓèÏ ......

linuxÏß³Ì(pthread)±à³ÌÖеÄsegmentation fault£¡£¡


linuxÏß³Ì(pthread)±à³ÌÖеÄsegmentation fault£¡£¡
Posted on ÐÇÆÚÎå, 3ÔÂ 27th, 2009 at 10:28 ÏÂÎç
Ô´ÎÄÀ´×Ôhttp://www.isongzi.com/2009/03/27/pthread-segmentation-fault/
¼Ìsocket bad addres ´íÎóÖ®ºó£¬ÔÚ´´½¨Ï̡߳¾pthread_create()¡¿µÄʱºòÓÖ³öÏÖÁË segmentation fault¡£
´íÎóÓï¾äÈçÏ£º
pthread_create(& ......

linux c and asm ͬʱʹÓÃ

from: ¡¶×Ô¼º¶¯ÊÖд²Ù×÷ϵͳ¡·
1. ÖжÏÏòÁ¿±í ²é¿´ linux/init/main.c in http://lxr.linux.no/#linux+v2.6.32/init/main.c
2.
; [root@XXX XXX]# nasm -f elf foo.asm -o foo.o
; [root@XXX XXX]# gcc -c bar.c -o bar.o
; [root@XXX XXX]# ld -s foo.o bar.o -o foobar
; [root@XXX XXX]# ./foobar
; the 2nd on ......

LinuxϵÄÖÐÎÄLatex

LinuxϵÄÖÐÎÄLatex

Latex(latex-project.org/)ÊÇTexµÄÀ©Õ¹£¬ÊÇÒ»Öֹ㷺µÄÓÃÓÚ¿ÆѧÓ빤³ÌÁìÓòµÄÎÄ×ÖÅŰ湤¾ß¡£ÌرðÔÚÅ·Ö޵Ĵóѧ£¬¿ÆÑе¥Î»£¬¼¸ºõËùÓеÄÂÛÎÄ£¬±¨¸æ¶¼ÊÇÔÚTex/LatexϵÁй¤¾ßÍê³ÉµÄ¡£
Ä¿Ç°£¬Tex/LatexÕýÖð²½±»¹úÄڵĿÆÑÐÈËÔ±½ÓÊÜ¡£ÓÈÆäÊÇÔÚwindowsƽ̨Ï£¬ÒѾ­³ÉÐεÄCTEXÎÞÒÉÊǶÔTex/LatexÍƹãµÄ¼«´ó´Ù½ø ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ