ÉîÈë»°Ìâ
´«Í³µÄµ÷ÊÔ·½·¨¿É¸ÅÀ¨ÎªÈçϹý³Ì£ºÉè¶Ïµã--³ÌÐòÔÝÍ£--¹Û²ì³ÌÐò״̬--¼ÌÐøÔËÐС£±»µ÷ÊÔµÄÈç¹ûÊÇʵʱϵͳ£¬¼´Ê¹µ÷ÊÔÆ÷Ö§³ÖÅú´¦ÀíÃüÁî±ÜÃâÁËÓû§ÊäÈëÃüÁî¡¢¹Û²ì½á¹û´øÀ´µÄÑÓ³Ù£¬ËüÓëÄ¿±êϵͳ֮¼äµÄͨÐÅÒ²ÍêÈ«¿ÉÄÜ´í¹ý¶ÔÄ¿±êƽ̨ÍâÉèÐźŵÄÏìÓ¦¡£ÓÚÊÇ£¬Õë¶ÔijЩµ÷ÊÔÆ÷£¨ÈçGDB£©ÌṩµÄ¼àÊӵ㣨trace point£©ÕâÒ»ÌØÊâµ÷ÊÔÊֶΣ¬Ä¿±ê·½µÄ²å×®ÔÚÔÓеĻù´¡Éϱ»¸Ä½ø£¬³ÆΪ´úÀí£¨agent£©¡£µ÷ÊÔʱÓû§Ê×ÏÈÔÚµ÷ÊÔÆ÷ÉèÖüàÊӵ㣬ÒÔÔ´´úÂë±í´ïʽµÄÐÎʽָ¶¨¸ÐÐËȤµÄ¶ÔÏóÃû¡£ÎªÁ˼õÉÙ´úÀí½âÎö±í´ïʽµÄ¹¤×÷£¬µ÷ÊÔÆ÷½«±í´ïʽת»»Îª¼òµ¥µÄ×Ö½ÚÂ룬´«ËÍÖÁ´úÀí¡£³ÌÐòÔËÐкóÃüÖмàÊӵ㡢»½ÐÑ´úÀí£¬´úÀí¸ù¾Ý×Ö½ÚÂë¼Ç¼Óû§ËùÐèÊý¾Ý´æÈëÌض¨»º³åÇø£¨²»½ö½öÊDZí´ïʽµÄ×îÖÕ½á¹û£¬»¹ÓÐÖмä½á¹û£©£¬Áî³ÌÐò¼ÌÐøÔËÐУ»ÕâÒ»²½ÖèÎÞÐèÓëµ÷ÊÔÆ÷ͨÐÅ¡£µ±µ÷ÊÔÆ÷Ôٶȵõ½¿ØÖÆʱ£¬¾Í¿ÉÒÔ·¢³öÃüÁÏò´úÀí²éѯÀú´Î¼àÊӼǼ¡£½ÏÖ®ÓÚ²å×®£¬´úÀíÔö¼ÓÁ˶ԽÓÊܵ½µÄ×Ö½ÚÂëµÄ·ÖÎöÄ£¿é£¬ÏàÓ¦µÄÄ¿±ê´úÂëÌå»ýÖ»ÓдóÔ¼3K×Ö½Ú£»µ±È»£¬¼àÊӼǼ»º³åÇøÒ²ÒªÕ¼ÓÃÄ¿±êƽ̨µÄ´æ´¢¿Õ¼ä£¬²»¹ý»º³åÇøµÄ´óС¿ÉÔÚ´úÀíÉú³ÉʱÓÉÓû§¾ö¶¨¡£×ÜÖ®£¬ÕâÒ»¸Ä½øÒÔÓÐÏÞµÄÄ¿±êϵͳ×ÊԴΪ´ú¼Û£¬ÎªÊµÊ±¼àÊÓÌṩÁËÒ»¸öµÍ³É±¾µÄ¿ÉÐз½°¸¡£
µ÷ÊÔ²¢²»½ö½öÒâζ×ÅÉè¶Ïµã--³ÌÐòÔÝÍ£--¹Û²ì--¼ÌÐøÕâÒ»¹ý³Ì£¬ÍùÍù»¹ÐèÒªprofiling¡¢¸ú×Ù£¨trace£©µÈ¶àÖÖÊֶΣ¬¶øÏÖ´ú΢´¦ÀíÆ÷µÄ¼¼Êõ½ø²½È´ÎªÕâЩµ÷ÊÔÊֶεÄʵÐдøÀ´ÁËÀ§ÄÑ¡£ÒÔ¸ú×ÙΪÀý£¬ÆäÄ¿µÄÎÞ·ÇÊǼǼÕæʵµÄ³ÌÐòÔËÐÐÁ÷£»¿ÉÏÖ´ú´¦ÀíÆ÷Ö¸Á´æ¶¼¼¯³ÉÓÚоƬÄÚ£¨RISC´¦ÀíÆ÷ÓÈΪÈç´Ë£©£¬ÔËÐÐÖ¸Áîʱ"È¡Ö¸"ÕâÒ»²Ù×÷´ó¶àÔÚоƬÄÚ²¿Õë¶ÔÖ¸Á´æ½øÐУ¬Ð¾Æ¬Íⲿ×ÜÏßÉÏÖ»Äܹ۲쵽¶àÌõÖ¸ÁîµÄԤȡ£¨prefetch£©£¬Ô¤È¡µÄÖ¸Áî²¢²»Ò»¶¨Ö´ÐУ¨ÓÉÓÚÌøתµÈÔÒò£©£»ÁíÍ⣬ָÁîÍùÍù¾¹ý¶¯Ì¬µ÷¶ÈºóÔÚÁ÷Ë®ÏßÖÐÂÒÐòÖ´ÐУ¬ÈçºÎÔÙÏÖÆäÔʼ˳ÐòÒ²ÊǸöÎÊÌâ¡£½â¾ö·½°¸´óÖÂÓÐÒÔÏÂÈýÖÖ£º
1.ÓеĴ¦ÀíÆ÷³ýÁËÕý³£ÔËÐÐÍ⣬»¹ÄÜÒÔ´®Ðз½Ê½ÔËÐУ¬ËùÓеÄÈ¡Ö¸ÖÜÆÚ¶¼¿É³ÊÏÖÓÚƬÍâ×ÜÏߣ¨Ï൱ÓÚ½ûÓûº´æÓëÁ÷Ë®Ïߣ©¡£ÕâÑùÒ»À´£¬¸ú×ÙÈÝÒ׶àÁË£¬´¦ÀíÆ÷ÐÔÄÜÒ²´ó´ó½µµÍÁË£¬¸ù±¾²»ÊÊÓÃÓÚʵʱҪÇóÑϸñµÄϵͳ¡£
2.±àÒëÆ÷×Ô¶¯ÔÚÖ¸¶¨µÄ·ÖÖ§¼°º¯Êý³öÈë¿Ú²åÈë¶ÔÌض¨ÄÚ´æÇøÓòµÄдָÁÓëgprofµÈprofiling¹¤¾ß²ÉÓõÄÊÖ¶ÎÀàËÆ£©£¬ËüÃǶ¼ÊDz»Í¨¹ý»º´æ¶øÖ±½ÓÏòÄÚ´æдµÄ£¬Õâ¾ÍÄÜ·´Ó³ÓÚоƬÍâ×ÜÏß´Ó¶ø±»Íâ½ÓµÄÂß¼·ÖÎöÒǼǼ£¬×îÖÕÓÉÖ÷»ú¶ËµÄµ÷ÊÔ¹¤¾ß·ÖÎö²¢½áºÏ·ûºÅ±íÖع¹³ÌÐòÁ÷¡£ÕâÖÖ·½·¨Ëä±»¹ã·ºÊ¹Ó㬵«±Ï¾¹ÊǸÉÈÅʽµÄ£¨intrusive£©£¬¶ÔϵͳÐÔÄÜÒ²ÓÐÓ°Ïì¡£
3.ÏñÉÏÎÄËùÊöµÄƬÉϵ÷ÊÔÄÇÑù£¬Ò²Óд¦ÀíÆ÷ÔÚƬÄÚ¸½¼ÓÁ˸ú×ٵ緣¬ÊÕ¼¯³ÌÐòÁ÷ÔËÐÐʱµÄ"²»Á¬¹á"£¨discontinuities£©ÐÅÏ¢£¨·ÖÖ§ºÍÒì³£´¦ÀíµÄÌøתĿµÄ¼°Ô´µØÖ·µÈ£©£¬Ñ¹ËõºóËÍÖÁÌض¨¶Ë¿Ú£¬ÔÙÓÉÂß¼·ÖÎöÒDz¶»ñËÍÖÁÖ÷»ú¶Ëµ÷ÊÔ¹¤¾ßÖع¹³ÌÐòÁ÷¡£¸Ã·½°¸¶ÔϵͳÐÔÄÜÓ°Ïì×îС¡£
×ÜÖ®£¬´¦ÀíÆ÷³§¼ÒÌṩ¼¯³ÉÓÚƬÄڵĵ÷ÊÔµç·Ϊ¸ßµµÇ¶Èëʽϵͳ¿ª·¢Ìṩ¸÷ÖַǸÉÈÅʽµÄµ÷ÊÔÊÖ¶ÎÔçÒÑÊÇ´óÊÆËùÇ÷¡£ÎªÁ˽â¾ö¸ÃÁìÓò±ê×¼»¯µÄÐèÒª£¬Ò»Ð©´¦ÀíÆ÷³§¼Ò¡¢¹¤¾ß¿ª·¢¹«Ë¾ºÍÒÇÆ÷ÖÆÔìÉÌÓÚ1998Äê×é³ÉÁËNexus 5001 Forum£¬ÕâÊÇÒ»¸öÖ¼ÔÚΪǶÈëʽ¿ØÖÆÓ¦ÓòúÉúºÍ¶¨ÒåǶÈëʽ´¦ÀíÆ÷µ÷ÊÔ½Ó¿Ú±ê×¼µÄÁªºÏ×éÖ¯£¬ÒÔÇ°µÄÃû³ÆÊÇGlobal Embedded Processor Debug Interface Standard Consortium£¨È«ÇòǶÈëʽ´¦ÀíÆ÷µ÷ÊÔ½Ó¿Ú±ê׼лᣩ¡£NexusÏÖÔÚÓÐ24¸ö³ÉÔ±µ¥Î»£¬°üÀ¨´´Ê¼³ÉÔ±Motorola¡¢Infineon Technologies¡¢ÈÕÁ¢¡¢ETASºÍHPµÈ¹«Ë¾¡£¸Ã×éÖ¯Ê×ÏÈ´¦ÀíµÄÊÇÆû³µ¶¯Á¦Ó¦ÓÃËùÐèÒªµÄµ÷ÊÔ£¬ÏÖÔÚÒÑ·¢Õ¹³ÉΪµ÷ÊÔÊý¾ÝͨÐÅ¡¢ÎÞÏßϵͳºÍÆäËûʵʱǶÈëʽӦÓõÄͨÓýӿڡ£
²Î¿¼ÎÄÏ×
MPC860 PowerQUICC User's Manual MOTOROLA
http://www.vas-gmbh.de/software/mpcbdm/
http://www.metrowerks.com/tools/documentation/embedded/zenofbdm
http://www.redhat.com/support/wpapers/cygnus_heinsenberg/trace.Html
http://www.ednmag.com/reg/2000/05112000/10tt.htm
×÷Õß¼ò½é
Ðܾº£¬ÈÎÖ°ÓÚÖпÆÔº¼ÆËãËùǶÈëʽϵͳÈí¼þ×é¡£Ö÷Òª´ÓÊ¿ª·¢Ç¶Èëʽ²Ù×÷ϵͳµÄ·ÂÕæÆ÷¡¢µ÷ÊÔÆ÷¼°¼¯³É¿ª·¢»·¾³¡£Äú¿ÉÒÔͨ¹ýµç×ÓÓʼþ
[email protected]ÓëËûÁªÏµ¡£
[1] [2] ÏÂÒ»Ò³
£¨³ö´¦£ºhttp://www.sheup.com£©
ÉÏÒ»Ò³ [1] [2]