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

ARM ±ê×¼C/C++ ÔËÐÐʱ¿â


1.
ÔËÐÐʱ¿âµÄ·¾¶
Ö¸¶¨·½Ê½£º
£¨1£©      
Á¬½ÓÑ¡Ïî
–libpath
£¨2£©      
»·¾³±äÁ¿
ARMLIB
ÓÅÏȼ¶£º
      
libpath
¸ßÓÚ
ARMLIB
±»Ö¸¶¨µÄ·¾¶£º
      
°üº¬
armlib, cpplib
µÄ¸¸Â·¾¶¡£
 
2.
ÔËÐÐʱ¿âµÄÃüÃû¸ñʽ¡£
C/C++
ÔËÐÐʱ¿â¸ñʽ£º
      
Root_<arch><fpu><dfmt><stack><entrant>.<endian>
 
Root
È¡ÖµÈçÏ£º
   
c
– ANSI C
¼°
C++
»ù±¾ÔËÐÐʱ֧³Ö¡£
      
f
– C/Java
µÄ¸¡µãËãÊõÔËËãÖ§³Ö¡£
      
g
– IEEE
µÄ¸¡µãËãÊõÔËËãÖ§³Ö
      
m

³¬Ô½ÀàÊýѧº¯Êý¡£
      
cpp

ÎÞ¸¡µãËãÊýÔËËãµÄ¸ß¼¶
C++
ËãÊý
      
cppfp

Óи¡µãËãÊýÔËËãµÄ¸ß¼¶
C++
ËãÊý
 
arch
È¡ÖµÈçÏ£º
      
a
– ARM
ÔËÐÐʱ¿â
      
t
– Thumb
ÔËÐÐʱ¿â
 
fpu
È¡ÖµÈçÏ£º
      
f

ʹÓÃ
FPA
Ö¸Á
      
v

ʹÓÃ
VFP
Ö¸Á
      

-
²»Ê¹Óø¡µãÔËËãÖ¸Áî
 
dmft
È¡ÖµÈçÏ£º
      
p

µ¥´¿ÄÚ´æģʽ£¨
endian
¸ñʽ£©µÄË«¾«¶È¸ñʽ
      
m

»ìºÏÄÚ´æģʽ£¨
endian
¸ñʽ£©µÄË«¾«¶È¸ñʽ
      
-     
-
²»Ê¹ÓÃË«¾«¶È¸¡µãÊý¡£
 
Stack
È¡ÖµÈçÏ£º
      
u

²»Ê¹ÓÃÈí¼þµÄÊý¾ÝÕ»Òç³ö¼ì²é
      
s
-
ʹÓÃÈí¼þµÄÊý¾ÝÕ»Òç³ö¼ì²é
      
-
-
δ¹æ¶¨¸ÃÑ¡Ïî
 
entrant
È¡ÖµÈçÏ£º
 &nb


Ïà¹ØÎĵµ£º

Çó½Ì¸ßÊÖ ¹ØÓÚC²¥·ÅwavÎÊÌâ


×î½üÔÚÍøÉϲéÁ˺öà¹ØÓÚC²¥·ÅwavÕâ·½ÃæµÄ×ÊÁÏ£¬µ÷ÊÔ°ëÌìҲûÓнá¹û£¬Ëѵ½Ò»¸ö±àÒëºÃµÄEXEÎļþÄܲ¥·Å£¬Ã»ÓÐÔ´´úÂ룬·´»ã±à²»ÁË£¬Ë­ÄÜÖ¸µãһϡ£¡£¡£¡£¡£ÒÔÏÂÁ½ÖÖ´úÂë¶Î£º
 #include <stdio.h>
#include <dos.h>
/* wavÎļþ½á¹¹ */
typedef struct WaveData
{
   unsigned long sample_le ......

¶¨ÒåC/C++È«¾Ö±äÁ¿/³£Á¿¼¸ÖÖ·½·¨µÄÇø±ð

ÔÚÌÖÂÛÈ«¾Ö±äÁ¿Ö®Ç°ÎÒÃÇÏÈÒªÃ÷°×¼¸¸ö»ù±¾µÄ¸ÅÄ
 
1. ±àÒëµ¥Ôª(Ä£¿é)£º
    ÔÚIDE¿ª·¢¹¤¾ß´óÐÐÆäµÀµÄ½ñÌ죬¶ÔÓÚ±àÒëµÄһЩ¸ÅÄîºÜ¶àÈËÒѾ­²»ÔÙÇå³þÁË£¬ºÜ¶à³ÌÐòÔ±×îŵľÍÊÇ´¦ÀíÁ¬½Ó´íÎó(LINK ERROR), ÒòΪËü²»Ïñ±àÒë´íÎóÄÇÑù¿ÉÒÔ¸ø³öÄã³ÌÐò´íÎóµÄ¾ßÌåλÖã¬Äã³£³£¶ÔÕâÖÖ´íÎó¸Ðµ½°ÃÄÕ£¬µ«ÊÇÈç¹ûÄã¾ ......

C/C++½á¹¹Ìå×Ö½Ú¶ÔÆë


[×¢]£º×î½üÔÚ×öUVCÃèÊö·ûµÄ±à¼­¹¤¾ß£¬Óõ½ºÜ¶àµÄ½á¹¹£¬ÎªÁË·½±ã°Ñ½á¹¹Ìåд³ÉbinÎļþ£¬ÐèÒª°Ñ½á¹¹ÌåÖÐÌî³äµÄ×Ö½ÚÈ¥µô£¬ÔÚÍøÉÏËÑË÷µÃµ½ÕâƪÎÄÕ£¬¸Ð¾õͦºÃµÄ£¬×ª¹ýÀ´×ö¸ö¼ÍÄî¡£
½á¹¹Ìå(struct)µÄsizeofÖµ£¬²¢²»ÊǼòµ¥µÄ½«ÆäÖи÷ÔªËØËùÕ¼×Ö½ÚÏà¼Ó£¬¶øÊÇÒª¿¼Âǵ½´æ´¢¿Õ¼äµÄ×Ö½Ú¶ÔÆëÎÊÌâ¡£ÏÈ¿´ÏÂÃ涨ÒåµÄÁ½¸ö½á¹¹Ìå.
struct ......

Ö÷Òª¹ØÓÚCµÄ±ê×¼»¯ÊäÊä³ö

ÍøÂçËѼ¯-×ÊÁÏ
¸ñʽ»¯ÊäÈëÊä³öº¯Êý
      Turbo C2.0 ±ê×¼¿âÌṩµÄÁ½¸ö¿ØÖÆ̨¸ñʽ»¯ÊäÈë¡¢ Êä³öº¯Êý£ºprintf( ) ¡¢scanf()¡£
      printf()º¯ÊýÓÃÀ´Ïò±ê×¼Êä³öÉ豸(ÆÁÄ»)дÊý¾Ý;
      scanf() º¯ÊýÓÃÀ´´Ó±ê×¼ÊäÈëÉ豸(¼ü ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ