交叉编译器 疑问 - OMAP-L138 - 嵌入式开发者社区 - 51ele.net
设为首页收藏本站

嵌入式开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 7071|回复: 5
打印 上一主题 下一主题

交叉编译器 疑问

[复制链接]

1

主题

3

帖子

1039

积分

金牌会员

Rank: 6Rank: 6

积分
1039
跳转到指定楼层
楼主
发表于 2016-6-4 20:49:35 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
在工具目录下 有两个交叉编译工具' l" w! B. w; ~# A/ J
arago-2011.09-armv5te-linux-gnueabi-sdk* t1 ]8 J8 o, r- y5 o4 f
arm-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu
+ B6 }" c: w$ e: n这两个 交叉编译 工具 有什么区别  $ s9 G- m/ m% Q1 _7 h3 z; h' e2 _# \3 E

6 s$ n  ]5 S7 I; U- l
$ t6 l9 H% I1 f$ ]& j2 p
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖
回复

使用道具 举报

0

主题

113

帖子

2121

积分

创龙

Rank: 8Rank: 8

积分
2121
推荐
发表于 2016-6-8 17:03:19 | 只看该作者
arago 对 TI 的支持应该更好* t  f% G' t1 J9 ~9 N. [1 Q6 \1 ~
http://arago-project.org/wiki/index.php/Main_Page
回复 支持 1 反对 0

使用道具 举报

0

主题

215

帖子

1246

积分

创龙

Rank: 8Rank: 8

积分
1246
沙发
发表于 2016-6-8 16:07:59 | 只看该作者
有区别的,具体的说不上。推荐使用 arago
回复 支持 反对

使用道具 举报

1

主题

3

帖子

1039

积分

金牌会员

Rank: 6Rank: 6

积分
1039
地板
 楼主| 发表于 2016-6-8 22:54:03 | 只看该作者
Jackindata 发表于 2016-6-8 17:037 |4 E" f3 s- j/ f
arago 对 TI 的支持应该更好
2 k; Z$ ]4 I2 {) k  u% O% p( i8 Khttp://arago-project.org/wiki/index.php/Main_Page
/ d, ]+ T+ k, U, f+ l  O
的确 文章里说 支持和更新 都优先支持 arago , 在实际编译出来输出文件 不知道有没有什么 优化。
回复 支持 反对

使用道具 举报

1

主题

3

帖子

1039

积分

金牌会员

Rank: 6Rank: 6

积分
1039
5#
 楼主| 发表于 2016-6-9 23:03:48 | 只看该作者
源码:; D* [) j8 E8 l$ S4 I; @% x
  1 #include<stdio.h>                                                           
! O* {! d$ b9 Z( s  2 #include<math.h>; {& F/ q# w7 `# p+ g6 Q
  3 int main(int argc,char* argv[])9 ]  p2 P/ d8 m) I4 |. A
  4 {
0 @/ b( L6 Y, F) o/ W# K& E  5     int a,b,c;
0 ^* D0 m0 M+ u; [3 S  6     c = a * b;) P$ m: c/ }: B" t, [; [
  7     return 0;1 D- e; x- z+ I$ M; {/ l
  8 }# b- e, b: t+ b) R+ r& ~$ f
( h1 _$ y2 G: w- _0 T
下面是两个编译器 编译出来的差异  差异好像不是很大  arm汇编不是很熟悉 大家看看
+ m& B1 E+ @! i, A6 Anone:
- h4 B3 n# |: O000082e0 <_init>:( m4 H2 D( f0 s, B- P8 X6 X# q8 F
    82e0:        e92d4010         push        {r4, lr}
8 I# E  l& ]: D    82e4:        eb00001c         bl        835c <call_gmon_start>  M" s- m6 k& p) @+ k1 E
    82e8:        e8bd8010         pop        {r4, pc}" U# W$ {& K) g( R0 O
arago:4 B0 d6 E4 g) C! L( j' i9 R
00008250 <_init>:
6 o' M$ `- ]2 G% \  N    8250:        e92d4008         push        {r3, lr}
3 c  Y/ r2 `- }7 T# @. i    8254:        eb00001d         bl        82d0 <call_gmon_start>: f0 H& y4 {7 n; }! l) o' J! {
    8258:        e8bd8008         pop        {r3, pc}- V( Y1 E  p8 v+ x8 _

) }  R/ Y- [+ A0 L$ Y3 fnone:
7 i9 k4 b5 [# H  b8 r- p, b1 d* q000082ec <.plt>:9 X4 S! y3 W: y: A
    82ec:        e52de004         push        {lr}                ; (str lr, [sp, #-4]!)
) P* G% z8 o' j' b( \    82f0:        e59fe004         ldr        lr, [pc, #4]        ; 82fc <_init+0x1c>7 _& M. |9 N; {
    82f4:        e08fe00e         add        lr, pc, lr
; e; T! N6 B3 ]# v+ q  |* n    82f8:        e5bef008         ldr        pc, [lr, #8]!3 t0 m. w4 j; {6 r( I
    82fc:        000082d4         .word        0x000082d4. w0 q% ]. U& ~$ e) u" q
    8300:        e28fc600         add        ip, pc, #0        ; 0x0
' V; W  Y- I, D  x$ R, z4 `4 b    8304:        e28cca08         add        ip, ip, #32768        ; 0x8000
7 L( K! y1 q" C( {. n    8308:        e5bcf2d4         ldr        pc, [ip, #724]!8 r; h' x  {8 n; M3 a) d9 N. h
    830c:        e28fc600         add        ip, pc, #0        ; 0x0: Q7 a4 `  M/ ?* v/ q
    8310:        e28cca08         add        ip, ip, #32768        ; 0x8000# I0 Y$ S  m/ j3 s- U  V* p
    8314:        e5bcf2cc         ldr        pc, [ip, #716]!
+ _/ x3 Z. I/ i7 v8 W( ?    8318:        e28fc600         add        ip, pc, #0        ; 0x0
2 a6 o% S- A) G' V, d    831c:        e28cca08         add        ip, ip, #32768        ; 0x8000
) j& \8 Z; N/ s* {3 z# H( [! ^    8320:        e5bcf2c4         ldr        pc, [ip, #708]!
1 ^1 h, @( p; z* l9 ]" ~arago:9 O1 }4 {- e* P
0000825c <.plt>:" {& I* L7 ]+ R$ n" ^
    825c:        e52de004         push        {lr}                ; (str lr, [sp, #-4]!)+ |6 T: I; f9 d: A4 O: }& C
    8260:        e59fe004         ldr        lr, [pc, #4]        ; 826c <_init+0x1c>9 Y& E, e3 K$ `* d
    8264:        e08fe00e         add        lr, pc, lr! m9 b: x. a/ @3 q& U
    8268:        e5bef008         ldr        pc, [lr, #8]!/ e/ G" c! f5 C
    826c:        0000827c         .word        0x0000827c
# N% Z% j5 z) T! Y  Y6 c    8270:        e28fc600         add        ip, pc, #0
6 T+ U# h6 s  L  M6 E1 V7 D( w8 i* Y" h    8274:        e28cca08         add        ip, ip, #32768        ; 0x80004 P9 G$ ?& i7 B$ }$ `
    8278:        e5bcf27c         ldr        pc, [ip, #636]!        ; 0x27c
$ O5 e% s8 Z: g6 o0 B    827c:        e28fc600         add        ip, pc, #0
+ o1 d* G- L* ]    8280:        e28cca08         add        ip, ip, #32768        ; 0x8000
( t6 [3 U* [6 r; ~$ Q    8284:        e5bcf274         ldr        pc, [ip, #628]!        ; 0x274; Z2 Y2 h9 [& a' w
    8288:        e28fc600         add        ip, pc, #0
. e& d2 h" A  V% `    828c:        e28cca08         add        ip, ip, #32768        ; 0x8000- P* a$ W/ _4 W* A1 g
    8290:        e5bcf26c         ldr        pc, [ip, #620]!        ; 0x26c
0 x: b. R% H$ r( Y8 }' Znone:
: C. N" p& j" j5 _- G4 p00008324 <_start>:8 h* W  Y2 J* y3 s; ?* U
    8324:        e59fc024         ldr        ip, [pc, #36]        ; 8350 <_start+0x2c>
6 r; z& s6 h. \    8328:        e3a0b000         mov        fp, #0        ; 0x03 o; I7 _7 t  a" O4 Z5 I: c
    832c:        e49d1004         pop        {r1}                ; (ldr r1, [sp], #4)
+ A) N3 w; ^) o% d9 u! N# h    8330:        e1a0200d         mov        r2, sp
; R  d6 o, k& p4 v7 I! e& b6 p    8334:        e52d2004         push        {r2}                ; (str r2, [sp, #-4]!)/ y9 b, w: s) S
    8338:        e52d0004         push        {r0}                ; (str r0, [sp, #-4]!)
) Z: ]; M, O! x1 o5 t* d    833c:        e59f0010         ldr        r0, [pc, #16]        ; 8354 <_start+0x30>2 W, G  c: H1 u# U4 O
    8340:        e59f3010         ldr        r3, [pc, #16]        ; 8358 <_start+0x34>3 V  a7 Z8 k2 K( }
    8344:        e52dc004         push        {ip}                ; (str ip, [sp, #-4]!)5 ?! s7 w1 G: L) _" I4 T2 @
    8348:        ebffffef         bl        830c <_init+0x2c>
1 t$ y" P  u# y( w1 X    834c:        ebffffeb         bl        8300 <_init+0x20>: }9 c; B+ q, f
    8350:        00008404         .word        0x00008404& M# n; q! {/ g
    8354:        000083cc         .word        0x000083cc# p( N- C7 e8 ^  p* {
    8358:        00008408         .word        0x00008408
( E: G* e6 ^  C, n+ `! ]arago:
0 J( [3 W4 ]4 {! q4 y+ |00008294 <_start>:
6 p' ~  G  t! M2 o) X* k: b- \( Y% X    8294:        e3a0b000         mov        fp, #0
+ Z) E& a* v, g9 a4 h    8298:        e3a0e000         mov        lr, #08 C& l3 f) I4 x6 @5 T/ }& ^; |
    829c:        e49d1004         pop        {r1}                ; (ldr r1, [sp], #4)
" w. ]3 n/ w1 `    82a0:        e1a0200d         mov        r2, sp
: ]6 ?3 g  ~0 W. C# Y8 ^& v    82a4:        e52d2004         push        {r2}                ; (str r2, [sp, #-4]!)8 I- c: c  X5 O% N- v
    82a8:        e52d0004         push        {r0}                ; (str r0, [sp, #-4]!)
" x6 c1 e( Q, c, v' T  Y9 x    82ac:        e59fc010         ldr        ip, [pc, #16]        ; 82c4 <_start+0x30>1 z' ~4 Z) `8 l1 o1 ]  }) x* E
    82b0:        e52dc004         push        {ip}                ; (str ip, [sp, #-4]!)
  @& ?$ k( j! Q5 Z* Y% K. [    82b4:        e59f000c         ldr        r0, [pc, #12]        ; 82c8 <_start+0x34>
1 Q  s6 @7 V: [2 ^! B    82b8:        e59f300c         ldr        r3, [pc, #12]        ; 82cc <_start+0x38>
  k# }' `$ U0 Q% C! \    82bc:        ebffffee         bl        827c <_init+0x2c>% s# ?; l1 v+ }( U8 l! R& G
    82c0:        ebffffea         bl        8270 <_init+0x20>. ^8 @+ V7 c6 f9 {+ r
    82c4:        000083dc         .word        0x000083dc
5 m1 X/ w" T2 d) V    82c8:        00008344         .word        0x00008344
3 Z: N: d+ f1 |: {2 W4 A& C3 ]    82cc:        0000837c         .word        0x0000837c
: z; {' D1 j- y! s& u% N" R- _7 Qnone:
) B& v! i5 S1 S2 @6 O5 Z7 `1 v0000835c <call_gmon_start>:7 y4 e- ], O; q
    835c:        e59f3014         ldr        r3, [pc, #20]        ; 8378 <call_gmon_start+0x1c>
& J; D. g+ t1 V+ [. r: C    8360:        e59f2014         ldr        r2, [pc, #20]        ; 837c <call_gmon_start+0x20>
5 A: b4 V& ]# T6 E6 o0 S& I# p    8364:        e08f3003         add        r3, pc, r39 @/ h1 F& j9 _( r. _
    8368:        e7931002         ldr        r1, [r3, r2]
$ B  l6 q9 c7 M: g( A    836c:        e3510000         cmp        r1, #0        ; 0x0
$ G# L' q' T! X7 }    8370:        012fff1e         bxeq        lr
: N  H5 a- \4 d  k- l    8374:        eaffffe7         b        8318 <_init+0x38>
+ J! p1 Q6 Z7 ~6 h: u+ P    8378:        00008264         .word        0x00008264' ]9 G# ]$ Q) h# N8 {# T
    837c:        00000018         .word        0x00000018
. X# X" Z4 D# l7 _+ Zarago:# K7 B' I: l% W1 F2 Y, E* ^
000082d0 <call_gmon_start>:3 @+ v8 I9 y& l! F$ m' ~
    82d0:        e59f3014         ldr        r3, [pc, #20]        ; 82ec <call_gmon_start+0x1c>
4 C3 ^2 `3 |5 @8 v# z    82d4:        e59f0014         ldr        r0, [pc, #20]        ; 82f0 <call_gmon_start+0x20>5 [& c1 o+ n# b$ r/ t( e' `
    82d8:        e08f3003         add        r3, pc, r3
1 {- w8 }8 d3 G    82dc:        e7932000         ldr        r2, [r3, r0]
' G) ?8 F) t0 M( c# h  y    82e0:        e3520000         cmp        r2, #0
; J3 G$ `/ g& |9 ~1 E6 _/ b! u    82e4:        012fff1e         bxeq        lr4 y& d9 R# ~* u2 W9 ?' [9 J# k) ~+ i
    82e8:        eaffffe6         b        8288 <_init+0x38>; H7 m. Y- X9 F1 p: G4 r
    82ec:        00008208         .word        0x000082082 k2 E" `3 f. r
    82f0:        00000018         .word        0x000000187 f* w/ N( R; C4 E. c
none:
$ h( l; B( O# ?: z( ^00008380 <__do_global_dtors_aux>:
/ z5 c4 h, `% U6 _* `( ?    8380:        e59f2010         ldr        r2, [pc, #16]        ; 8398 <__do_global_dtors_aux+0x18>0 N$ {% v% f. [4 ?
    8384:        e5d23000         ldrb        r3, [r2], s& k( U% ]6 L
    8388:        e3530000         cmp        r3, #0        ; 0x0; {0 }( a- m9 ?/ h
    838c:        03a03001         moveq        r3, #1        ; 0x1
% D( ^* Z" N1 C5 _! Q" }    8390:        05c23000         strbeq        r3, [r2]9 f. c6 J, c0 \7 k6 ~/ s0 p
    8394:        e12fff1e         bx        lr$ N  y" k8 _) v6 [& n; l+ q. z: L
    8398:        000105f4         .word        0x000105f4
! O% b3 R3 }7 sarago:
1 A$ g' H& x! i9 V000082f4 <__do_global_dtors_aux>:
! F! I2 L) O6 k2 M5 N' \    82f4:        e59f3010         ldr        r3, [pc, #16]        ; 830c <__do_global_dtors_aux+0x18>
' ]& T  m) f; b' u8 {1 h- N' r    82f8:        e5d32000         ldrb        r2, [r3]
3 n9 w( }/ e3 e, a    82fc:        e3520000         cmp        r2, #0  ?" I/ v, m# i3 A1 `! U! [
    8300:        02822001         addeq        r2, r2, #10 u; t$ [0 \/ v- H' `
    8304:        05c32000         strbeq        r2, [r3]
& {- Y8 g6 d  A    8308:        e12fff1e         bx        lr
! F" b4 E, L3 J  j    830c:        0001050c         .word        0x0001050c) o; _0 g4 H  x
none:$ e9 x4 R9 w1 c0 ]
0000839c <frame_dummy>:
1 j$ }: J; U" ?4 c& q    839c:        e59f0020         ldr        r0, [pc, #32]        ; 83c4 <frame_dummy+0x28>" W. W# c) l" x
    83a0:        e92d4010         push        {r4, lr}! u& E: c' O) u+ G5 B, n$ Y
    83a4:        e5903000         ldr        r3, [r0]
# D; v0 _7 u+ U5 C. b    83a8:        e3530000         cmp        r3, #0        ; 0x07 Q0 z: U( m2 b  w8 `5 x. n
    83ac:        08bd8010         popeq        {r4, pc}! ^# @6 d! F+ m1 I1 R
    83b0:        e59f3010         ldr        r3, [pc, #16]        ; 83c8 <frame_dummy+0x2c>5 K. e1 `- r8 _+ ^4 b( u; H( s1 B
    83b4:        e3530000         cmp        r3, #0        ; 0x06 u0 U* e7 W0 w1 k/ s1 B
    83b8:        08bd8010         popeq        {r4, pc}
& G: S; N5 F. j    83bc:        e12fff33         blx        r3- b8 B5 s3 {7 ~" k( S1 v% C
    83c0:        e8bd8010         pop        {r4, pc}
8 R. K0 h8 ]. b    83c4:        000104dc         .word        0x000104dc* h" G6 w3 V% A- ?' g
    83c8:        00000000         .word        0x00000000: K4 ]# P5 m5 g$ @, x- T% ]+ y3 v2 f
arago:
7 |* {1 [  R! w% Q4 R8 H00008310 <frame_dummy>:
1 }9 ]' `/ `! v7 l# H' |; j7 g    8310:        e59f0024         ldr        r0, [pc, #36]        ; 833c <frame_dummy+0x2c>
  J1 \; j! }, i, H: y    8314:        e92d4008         push        {r3, lr}+ O0 N& a0 L. m* S6 `  S3 a0 a: U
    8318:        e5903000         ldr        r3, [r0]
% _3 F# Q) L; J8 h    831c:        e3530000         cmp        r3, #0
; e, g) ~* y, V  B    8320:        0a000003         beq        8334 <frame_dummy+0x24>
5 C7 B) F" O  K( e3 W    8324:        e59f3014         ldr        r3, [pc, #20]        ; 8340 <frame_dummy+0x30>4 [9 v) X% a" h& X- |4 `/ Z
    8328:        e3530000         cmp        r3, #0
- q$ N% L4 I' E- @( V    832c:        11a0e00f         movne        lr, pc5 X! {' m) V% t  y# |1 W+ ]
    8330:        112fff13         bxne        r3% ]+ f2 U0 Z* y1 O7 m& s5 U
    8334:        e8bd4008         pop        {r3, lr}* n1 _; l( F, d9 U! r- C! q
    8338:        e12fff1e         bx        lr
+ M: _& n- S9 j" s    833c:        000103fc         .word        0x000103fc
) p6 M6 I; x$ L4 }3 w, B. H; |3 E- m    8340:        00000000         .word        0x000000000 w, u3 c& W6 O
none:/ R. G% a' [! ^- X9 o+ o1 }7 @
000083cc <main>:9 r4 g5 x4 g$ y  c. [7 J1 b9 p, |
    83cc:        e52db004         push        {fp}                ; (str fp, [sp, #-4]!)  z% q( L6 l' P3 ]! a
    83d0:        e28db000         add        fp, sp, #0        ; 0x0$ m2 v; \& w% J5 V
    83d4:        e24dd01c         sub        sp, sp, #28        ; 0x1c$ i" y; `' L* x8 A7 O: I
    83d8:        e50b0018         str        r0, [fp, #-24]  G6 T6 A, q. m# O
    83dc:        e50b101c         str        r1, [fp, #-28]
* j9 @" C2 m. N) y. W    83e0:        e51b2010         ldr        r2, [fp, #-16]+ {( E) ]% t$ z3 {
    83e4:        e51b300c         ldr        r3, [fp, #-12]
. }5 A" @! |8 K+ V* Q- x    83e8:        e0030392         mul        r3, r2, r3! M. t  D7 x) v/ v9 P8 C6 p
    83ec:        e50b3008         str        r3, [fp, #-8]
" {9 Q& P' F' V" e4 U    83f0:        e3a03000         mov        r3, #0        ; 0x09 w& e- V5 O  E* Z: m
    83f4:        e1a00003         mov        r0, r34 \& q" q( d, C
    83f8:        e28bd000         add        sp, fp, #0        ; 0x0
9 _8 s; A4 F3 A( w# G    83fc:        e8bd0800         pop        {fp}2 o' P! c& A# Y
    8400:        e12fff1e         bx        lr
) a% B& J8 G% b. Farago:( G& C, V- B$ S( a& \+ ?; y
00008344 <main>:# C- d! H' y, d. K+ [! X2 T' h* p) e* h
    8344:        e52db004         push        {fp}                ; (str fp, [sp, #-4]!)
6 q9 b+ f+ V- c6 Y, Q( F    8348:        e28db000         add        fp, sp, #0
* T7 K) b1 f/ K; p( j    834c:        e24dd01c         sub        sp, sp, #28
/ _! g: q2 O  y7 y5 g    8350:        e50b0018         str        r0, [fp, #-24]
! ~& `3 g" j; x7 p. `    8354:        e50b101c         str        r1, [fp, #-28]
6 u7 f4 C" G/ a! K# ^3 _: A# ^    8358:        e51b3008         ldr        r3, [fp, #-8]
5 S0 S" a' d3 b0 A; c    835c:        e51b200c         ldr        r2, [fp, #-12]% u# ~) l8 ~9 m
    8360:        e0030392         mul        r3, r2, r3
3 P. z$ C- h- ~% _$ G+ z    8364:        e50b3010         str        r3, [fp, #-16]
" M& n4 g5 G& n# o# z    8368:        e3a03000         mov        r3, #0
! l' e! y7 K- u' b    836c:        e1a00003         mov        r0, r3
. A/ e2 |1 }  k" U    8370:        e28bd000         add        sp, fp, #0
6 `3 i4 i$ ?# Z/ O6 l. l    8374:        e8bd0800         pop        {fp}. F1 x, y& l) L0 T, `& O
    8378:        e12fff1e         bx        lr/ _0 E+ U: v  z2 G) W' s
none:
. J4 t: R4 Y6 C* R9 c; A00008404 <__libc_csu_fini>:8 r  k) P! o' M$ b/ V
    8404:        e12fff1e         bx        lr& j6 X2 r: v! j% Z5 x
arago:/ b2 `# b- B* X* w
000083dc <__libc_csu_fini>:- e" c4 z8 p: x' O: S8 K6 x8 E' m
    83dc:        e12fff1e         bx        lr
5 P$ w1 l) m* n4 r4 Znone:
! _/ D9 M- d. E. Q% X00008408 <__libc_csu_init>:
/ p! l! U/ p/ @, ^    8408:        e92d47f0         push        {r4, r5, r6, r7, r8, r9, sl, lr}* P' n8 g2 D) @8 w- a% R" b$ ?
    840c:        e1a08001         mov        r8, r1& U  Q. E* z, C0 z* t
    8410:        e1a07002         mov        r7, r2/ ~: B6 [* T( h4 L; d7 \
    8414:        e1a0a000         mov        sl, r04 n2 i6 ^7 E* i2 {0 f- s) ^4 @; d
    8418:        ebffffb0         bl        82e0 <_init>
, o) u7 n0 _( I# B  L3 |    841c:        e59f1044         ldr        r1, [pc, #68]        ; 8468 <__libc_csu_init+0x60>( {& M( T3 B) g. A/ Q* ~& Y
    8420:        e59f3044         ldr        r3, [pc, #68]        ; 846c <__libc_csu_init+0x64>
2 x5 Q% u( }  W$ @2 X' A    8424:        e59f2044         ldr        r2, [pc, #68]        ; 8470 <__libc_csu_init+0x68>
( ^3 f! [2 [0 Y; W/ p) c. \* \, c    8428:        e0613003         rsb        r3, r1, r38 l) l* v3 H# m" y
    842c:        e08f2002         add        r2, pc, r2
9 e) ^* V( C  v8 }    8430:        e1b05143         asrs        r5, r3, #2: @$ t) C. T: H! ?- e
    8434:        e0822001         add        r2, r2, r1
# f" i" t# A; V6 t    8438:        08bd87f0         popeq        {r4, r5, r6, r7, r8, r9, sl, pc}
( M, I7 P, A( K    843c:        e1a06002         mov        r6, r2
% @& H: }& p- z! `. e* \. d- @    8440:        e3a04000         mov        r4, #0        ; 0x0( V# X! Z, L# c2 t) n$ k
    8444:        e1a0000a         mov        r0, sl
+ h0 u% q- m- g! k6 S6 ~    8448:        e1a01008         mov        r1, r8
3 V% p* e# H6 ~; z: R6 L% g6 O    844c:        e1a02007         mov        r2, r7
1 h0 L7 Q. V0 k; p) z. s& E    8450:        e1a0e00f         mov        lr, pc
1 U7 \" y: D. o! x* z5 K1 i    8454:        e796f104         ldr        pc, [r6, r4, lsl #2], X- n4 n6 A* o/ f2 T( Z& v, O
    8458:        e2844001         add        r4, r4, #1        ; 0x1
7 T" V& i: B+ S( k8 h; m    845c:        e1540005         cmp        r4, r5# c- `# m+ a/ `
    8460:        3afffff7         bcc        8444 <__libc_csu_init+0x3c># g, m% \7 d3 {
    8464:        e8bd87f0         pop        {r4, r5, r6, r7, r8, r9, sl, pc}7 b8 T: G1 m3 ?
    8468:        ffffff04         .word        0xffffff04
6 Z% c8 D6 |! D1 ~    846c:        ffffff08         .word        0xffffff08/ `2 |- W$ X& i9 P+ H; K
    8470:        0000819c         .word        0x0000819c
2 Z+ _% l6 l, \$ Q9 W4 parago:8 ^% m3 g5 Q4 q, \" {$ z1 T' o3 D
0000837c <__libc_csu_init>:: Q$ ]9 D3 {! W4 i$ q' |  s
    837c:        e92d45f8         push        {r3, r4, r5, r6, r7, r8, sl, lr}
' o4 E% a; x6 j  B    8380:        e59fa04c         ldr        sl, [pc, #76]        ; 83d4 <__libc_csu_init+0x58>/ P* `0 z- `+ U3 e$ S- V5 h
    8384:        e1a06000         mov        r6, r0  P5 P+ }9 A2 h0 B
    8388:        e1a07001         mov        r7, r1: c6 s) p& u8 S# N
    838c:        e1a08002         mov        r8, r2
: w5 S  |$ N" s. C& ?& v1 {* X    8390:        ebffffae         bl        8250 <_init>
4 R! u7 u- \6 Z. e3 B6 M# O    8394:        e59f103c         ldr        r1, [pc, #60]        ; 83d8 <__libc_csu_init+0x5c>0 s# e3 B2 U* [5 d
    8398:        e08fa00a         add        sl, pc, sl, u( Y/ g, f3 e2 S" L& m
    839c:        e08f0001         add        r0, pc, r1- @1 v/ o& F5 ], {% E+ e" x+ b% x
    83a0:        e06a5000         rsb        r5, sl, r02 v# i* g; M( E- e
    83a4:        e1b05145         asrs        r5, r5, #2" d0 ~0 s# O1 t. _% x
    83a8:        08bd85f8         popeq        {r3, r4, r5, r6, r7, r8, sl, pc}
3 ^0 p# {3 r. N$ I/ T    83ac:        e3a04000         mov        r4, #0
* G. X# N0 t& N    83b0:        e79a3104         ldr        r3, [sl, r4, lsl #2]
( v* v9 B7 r; t4 T    83b4:        e1a00006         mov        r0, r6
9 p& X& y# }3 `9 d' N1 }    83b8:        e1a01007         mov        r1, r7  t5 `2 ^% l1 a) x, m+ v- W8 A
    83bc:        e1a02008         mov        r2, r8
) x) t! ~0 V  g" n. i% T2 @7 Y    83c0:        e2844001         add        r4, r4, #1
, e( r/ G$ x( w9 \5 {    83c4:        e12fff33         blx        r3
1 n7 c2 T! ]( ~+ j& T* M    83c8:        e1540005         cmp        r4, r5
: g- `: ?/ j& `    83cc:        3afffff7         bcc        83b0 <__libc_csu_init+0x34>
+ c2 d; E7 d# e    83d0:        e8bd85f8         pop        {r3, r4, r5, r6, r7, r8, sl, pc}% O6 J( T& Y/ U5 p: i
    83d4:        00008054         .word        0x00008054
: ~$ q/ _: w) x8 ^% W! f' ^6 e2 k! p    83d8:        00008054         .word        0x000080540 H/ \! I3 I* b' Z* ~* D
none:& b0 D' P, r" c* W- y3 L, {
Disassembly of section .fini:; m. [8 x+ ~! v; b. n4 F
1 h8 {. f9 P$ d8 [* w
00008474 <_fini>:& E, T* E) n" z& C5 D
    8474:        e92d4010         push        {r4, lr}* D' T; ?' @0 R# r9 [( Q7 W
    8478:        e8bd8010         pop        {r4, pc}: M+ C) K0 m. i. c
arago:
9 U7 m. D, u0 _4 D8 DDisassembly of section .fini:
; ?$ ]) p* U7 J4 Q- M
+ k3 y+ V- H, {2 Q000083e0 <_fini>:
, {2 E# u& w0 u- z1 L$ S' _    83e0:        e92d4008         push        {r3, lr}
, A' Z, e$ V7 f1 B( e5 h    83e4:        e8bd8008         pop        {r3, pc}
" x7 h$ B7 W8 v0 o7 z, }
* c" S4 K( X4 W0 Z: ?5 {4 k5 \, R8 |$ |9 n8 ^5 _

- T8 R( \" O# Y9 Q
回复 支持 反对

使用道具 举报

0

主题

113

帖子

2121

积分

创龙

Rank: 8Rank: 8

积分
2121
6#
发表于 2016-6-21 16:35:00 | 只看该作者
粗看是使用的寄存器有点不同。6 M. y8 }4 m; a, Y# Y) Q
我觉得这个基本程序代码的汇编差异不会有什么结果上的影响。
# ]( N# j6 e/ _关键可能在于对于 TI 本身提供的一些特性,arago 针对其进行优化,这类的影响才会比较大吧。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|嵌入式开发者社区 ( 粤ICP备15055271号

GMT+8, 2025-10-16 11:40 , Processed in 0.043238 second(s), 24 queries .

Powered by Discuz! X3.2

© 2001-2015 Comsenz Inc.

快速回复 返回顶部 返回列表