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

嵌入式开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

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

交叉编译器 疑问

[复制链接]

1

主题

3

帖子

1039

积分

金牌会员

Rank: 6Rank: 6

积分
1039
跳转到指定楼层
楼主
发表于 2016-6-4 20:49:35 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
在工具目录下 有两个交叉编译工具( \* f% _  }, |
arago-2011.09-armv5te-linux-gnueabi-sdk! V. L/ _3 E; @+ t5 l" @/ ~+ _. q! m
arm-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu* y' W" H% W! ]/ U7 Z
这两个 交叉编译 工具 有什么区别  ; @5 b) N  W" a6 H. ?6 B& {
0 X) ^* [$ ^+ k* N( b; t% z" e

/ b+ }# I- i' b
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖
回复

使用道具 举报

0

主题

113

帖子

2145

积分

创龙

Rank: 8Rank: 8

积分
2145
推荐
发表于 2016-6-8 17:03:19 | 只看该作者
arago 对 TI 的支持应该更好
1 D, M- o" H7 b5 B/ ^4 ]; yhttp://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:03
" c7 Y, I9 X: z4 c0 }7 ^. r3 Rarago 对 TI 的支持应该更好1 c8 L  i. s) P, c
http://arago-project.org/wiki/index.php/Main_Page
# o4 c2 R# p) Z3 f4 F; V
的确 文章里说 支持和更新 都优先支持 arago , 在实际编译出来输出文件 不知道有没有什么 优化。
回复 支持 反对

使用道具 举报

1

主题

3

帖子

1039

积分

金牌会员

Rank: 6Rank: 6

积分
1039
5#
 楼主| 发表于 2016-6-9 23:03:48 | 只看该作者
源码:
) Q/ }' F8 N* B7 w7 G  1 #include<stdio.h>                                                           
0 v7 r5 z! B% T/ _" [  2 #include<math.h>. m6 f+ Z$ c1 @. C1 d3 U
  3 int main(int argc,char* argv[])' f$ o; S  ~) G0 ?( S% E3 \, v
  4 {
) y+ i$ O9 `) E  S4 \& `  5     int a,b,c;; n5 b9 s2 `# x( u6 D# j& t/ ^* u! L8 x
  6     c = a * b;
9 t6 f8 y5 o' Z. i  7     return 0;  ~4 \* x/ C6 N0 r# k% L% _
  8 }
" p- `/ H$ W: ^4 @1 z0 W5 ]& C' h4 f  i
下面是两个编译器 编译出来的差异  差异好像不是很大  arm汇编不是很熟悉 大家看看
, r9 G3 i" G' }. n( L4 {none:
+ q. N+ e+ {- R' P" B7 n000082e0 <_init>:( R  d3 D. m. R+ {$ S
    82e0:        e92d4010         push        {r4, lr}
& u: ]/ R+ `( C. O3 i    82e4:        eb00001c         bl        835c <call_gmon_start>
( Z2 W; i* p' q3 }3 s7 a    82e8:        e8bd8010         pop        {r4, pc}3 g8 c8 U  C/ V' Z7 v; T7 q
arago:6 D0 Y( t& i+ O! U( d
00008250 <_init>:
6 [$ z$ B$ e0 r( `5 R4 J9 M    8250:        e92d4008         push        {r3, lr}4 {( c2 e& [( d) _+ B) [3 n; W: }2 B
    8254:        eb00001d         bl        82d0 <call_gmon_start>
/ a( x2 Z  P4 x2 j    8258:        e8bd8008         pop        {r3, pc}
( e: y5 Q; R" G3 }* F# g% ^+ V
5 o; B' g4 [) Q4 M9 Cnone:$ D- @" n% `+ c- s! T5 l4 g
000082ec <.plt>:4 n& [! E/ P  S7 N( J+ r
    82ec:        e52de004         push        {lr}                ; (str lr, [sp, #-4]!)
9 U0 U' {- }3 g3 J2 U    82f0:        e59fe004         ldr        lr, [pc, #4]        ; 82fc <_init+0x1c>  l. D9 R7 c4 D
    82f4:        e08fe00e         add        lr, pc, lr; c, H8 b9 ~; g
    82f8:        e5bef008         ldr        pc, [lr, #8]!  S! z4 _3 Q* D
    82fc:        000082d4         .word        0x000082d4& k1 Y4 x* n' P
    8300:        e28fc600         add        ip, pc, #0        ; 0x0! p# b0 x+ K9 R* E6 X' P8 ^
    8304:        e28cca08         add        ip, ip, #32768        ; 0x8000
0 z, k& N7 M1 s  B+ J, |; o2 Y    8308:        e5bcf2d4         ldr        pc, [ip, #724]!& a- c. N  Y% e& i7 q+ L
    830c:        e28fc600         add        ip, pc, #0        ; 0x09 g9 Z; b* h. w0 V0 n6 Z
    8310:        e28cca08         add        ip, ip, #32768        ; 0x8000* J" E0 A$ g1 O) m- n2 q  \
    8314:        e5bcf2cc         ldr        pc, [ip, #716]!8 W7 b3 H& T  f
    8318:        e28fc600         add        ip, pc, #0        ; 0x0- M9 }  t4 \; r' |" `. D9 ^
    831c:        e28cca08         add        ip, ip, #32768        ; 0x8000! V* l8 F* r' \0 {' e! h5 O
    8320:        e5bcf2c4         ldr        pc, [ip, #708]!& I! C, o$ {( ]" @. i3 _2 ^
arago:
/ c4 j3 O2 K" S. U' }* p$ M2 |: y0000825c <.plt>:
6 ]7 T  B1 I' p4 }    825c:        e52de004         push        {lr}                ; (str lr, [sp, #-4]!)
9 Q  R: F2 ~. r+ J  }: q    8260:        e59fe004         ldr        lr, [pc, #4]        ; 826c <_init+0x1c>2 h( F* ?4 L9 H5 d$ y
    8264:        e08fe00e         add        lr, pc, lr
$ H0 ?, Y6 W: O* I+ R    8268:        e5bef008         ldr        pc, [lr, #8]!+ P( a0 n/ w0 D6 ^
    826c:        0000827c         .word        0x0000827c; U+ E! h: w# _5 h8 i! p* \
    8270:        e28fc600         add        ip, pc, #03 n% a1 h( H- g9 S8 c1 S) w
    8274:        e28cca08         add        ip, ip, #32768        ; 0x80000 X# ]+ J  y4 U' g3 P' e
    8278:        e5bcf27c         ldr        pc, [ip, #636]!        ; 0x27c! M) C9 D% G6 z/ l/ ^
    827c:        e28fc600         add        ip, pc, #0
3 v$ d1 n9 U* c. Z( \# r% T# k# Q    8280:        e28cca08         add        ip, ip, #32768        ; 0x8000; Y6 p: ?4 r7 W) i/ s2 x. B
    8284:        e5bcf274         ldr        pc, [ip, #628]!        ; 0x274
: R0 V' G$ A5 K3 B! ~$ p8 t9 }    8288:        e28fc600         add        ip, pc, #0
) i4 M( [( ~' T2 o    828c:        e28cca08         add        ip, ip, #32768        ; 0x8000  \& I( m$ Y  x; ^- ?# C
    8290:        e5bcf26c         ldr        pc, [ip, #620]!        ; 0x26c2 y, |& v& p4 |  L3 U" \
none:1 u, O. V" F3 M. d* _+ H; p& g
00008324 <_start>:
. `* ?# Z5 C6 U; S0 g    8324:        e59fc024         ldr        ip, [pc, #36]        ; 8350 <_start+0x2c>
' [( y( X  w7 k8 [" D' M    8328:        e3a0b000         mov        fp, #0        ; 0x0, ?7 @. x2 ?) e( Q7 s
    832c:        e49d1004         pop        {r1}                ; (ldr r1, [sp], #4)
) I* p6 {/ b) L    8330:        e1a0200d         mov        r2, sp
6 x2 [# \6 j& \: p0 t2 Z    8334:        e52d2004         push        {r2}                ; (str r2, [sp, #-4]!)
5 {3 C, w- Z! R, s0 f% G    8338:        e52d0004         push        {r0}                ; (str r0, [sp, #-4]!)7 Y/ ]; c4 S% k+ H
    833c:        e59f0010         ldr        r0, [pc, #16]        ; 8354 <_start+0x30>5 X$ f7 T8 ^, R  X2 q  n) q
    8340:        e59f3010         ldr        r3, [pc, #16]        ; 8358 <_start+0x34>* E9 F/ }, S9 y5 Q: F# s1 t2 U6 m
    8344:        e52dc004         push        {ip}                ; (str ip, [sp, #-4]!)% \; n/ B0 @* I% ^
    8348:        ebffffef         bl        830c <_init+0x2c>6 x! \5 |# [0 Z! ~# J
    834c:        ebffffeb         bl        8300 <_init+0x20>
4 i7 _$ i7 C1 B0 F# k    8350:        00008404         .word        0x00008404
& r3 y+ d" f7 A! k  D. b    8354:        000083cc         .word        0x000083cc" J/ H) A6 c# G2 I) _: q. S: c$ ]
    8358:        00008408         .word        0x00008408  u- W! W. }6 V, m
arago:# L/ p+ J/ I) V. f
00008294 <_start>:! o2 f- M3 x' @4 i
    8294:        e3a0b000         mov        fp, #0( e) C5 _# a# P* D) u) ^' r" m5 M% e$ g. R
    8298:        e3a0e000         mov        lr, #0* A# c1 G$ K, x
    829c:        e49d1004         pop        {r1}                ; (ldr r1, [sp], #4)
: W4 u$ \3 [% W7 k" E, v- p+ g    82a0:        e1a0200d         mov        r2, sp
( |3 m1 u* F/ M; p    82a4:        e52d2004         push        {r2}                ; (str r2, [sp, #-4]!)
% N* m+ W" i: t& D! V% Y1 w    82a8:        e52d0004         push        {r0}                ; (str r0, [sp, #-4]!)
' }) ~( @* G7 D    82ac:        e59fc010         ldr        ip, [pc, #16]        ; 82c4 <_start+0x30>7 S+ c0 h% C4 C5 F
    82b0:        e52dc004         push        {ip}                ; (str ip, [sp, #-4]!)
& S( W# h/ X$ X6 R+ e! w    82b4:        e59f000c         ldr        r0, [pc, #12]        ; 82c8 <_start+0x34>" c5 P% ?2 k1 [. F5 ]
    82b8:        e59f300c         ldr        r3, [pc, #12]        ; 82cc <_start+0x38>
) s0 z3 R3 f! g' {# l+ ?# B    82bc:        ebffffee         bl        827c <_init+0x2c>5 z) K7 @4 M3 t) b9 D; O+ D; I
    82c0:        ebffffea         bl        8270 <_init+0x20>8 h4 S/ Z2 R7 C4 p2 G) R
    82c4:        000083dc         .word        0x000083dc5 j4 L% ~0 E  v7 w3 G
    82c8:        00008344         .word        0x000083447 Q  [2 x4 }6 m4 w  t
    82cc:        0000837c         .word        0x0000837c
+ @2 v) G! L: ynone:
, p1 s2 {& H; n0 ^! j0 v* R+ I5 S9 ~0000835c <call_gmon_start>:
; q# g# s- w7 F5 f6 W/ l  K    835c:        e59f3014         ldr        r3, [pc, #20]        ; 8378 <call_gmon_start+0x1c>$ ~/ n* p, O3 `' n" y( |8 W6 z
    8360:        e59f2014         ldr        r2, [pc, #20]        ; 837c <call_gmon_start+0x20>
' `0 W$ M" h" W9 |, a+ @    8364:        e08f3003         add        r3, pc, r3
; Z- E0 @6 ]/ J3 V3 l* ]7 ]    8368:        e7931002         ldr        r1, [r3, r2]
5 R2 {9 ^6 U  f. |5 z; l# p    836c:        e3510000         cmp        r1, #0        ; 0x0
! @1 u/ k, h  m    8370:        012fff1e         bxeq        lr
8 |' W" x% Z/ F/ B! l    8374:        eaffffe7         b        8318 <_init+0x38>
( [  ]8 r6 \; P( `    8378:        00008264         .word        0x00008264
5 _) z6 ?! f- A% U" C( I3 i' q    837c:        00000018         .word        0x00000018
6 D# s9 _) a; k/ ~: ?3 Z: Earago:& _' f% ?, U; z4 Y
000082d0 <call_gmon_start>:
: i' ^9 q0 r! e: V    82d0:        e59f3014         ldr        r3, [pc, #20]        ; 82ec <call_gmon_start+0x1c>
( V7 Z3 }* ?+ k% t1 i. r( w    82d4:        e59f0014         ldr        r0, [pc, #20]        ; 82f0 <call_gmon_start+0x20>! A* f, t$ l8 N* o; a4 n$ C
    82d8:        e08f3003         add        r3, pc, r3) x7 _7 `3 q  g4 i0 O
    82dc:        e7932000         ldr        r2, [r3, r0]
4 E/ d# V/ N( Z    82e0:        e3520000         cmp        r2, #0; H. S0 H, U. @6 D; D4 D# `
    82e4:        012fff1e         bxeq        lr; w. V. ^8 e$ C% T+ P
    82e8:        eaffffe6         b        8288 <_init+0x38>8 w: v, V: \9 ^! _" ~  z7 {
    82ec:        00008208         .word        0x00008208- b' h  I$ `$ U& s7 i: u* F  N
    82f0:        00000018         .word        0x00000018
5 \1 x+ F- _" m! r' O9 Snone:
) ], g: y9 F  B. F8 X$ J00008380 <__do_global_dtors_aux>:$ f/ Z4 K- w7 u1 Y4 q: n
    8380:        e59f2010         ldr        r2, [pc, #16]        ; 8398 <__do_global_dtors_aux+0x18>
# p* A/ Q1 t) m0 P5 l    8384:        e5d23000         ldrb        r3, [r2]
4 V! @, X5 v6 ?. `; v9 O    8388:        e3530000         cmp        r3, #0        ; 0x0
$ c# }/ j  j: S2 ]- d% h    838c:        03a03001         moveq        r3, #1        ; 0x1( g) _$ a& v+ F  c0 W2 t% c5 Y
    8390:        05c23000         strbeq        r3, [r2]! ?' e/ g1 b/ |6 K, x
    8394:        e12fff1e         bx        lr
# O; l. S# ?$ j' ^    8398:        000105f4         .word        0x000105f4
* y, ]8 q4 f& X- \5 sarago:
  ^" _8 a( w% [000082f4 <__do_global_dtors_aux>:7 e, A  F4 S7 t5 u7 R: |8 b# I* M
    82f4:        e59f3010         ldr        r3, [pc, #16]        ; 830c <__do_global_dtors_aux+0x18>
  ]8 e: Z7 }7 e2 R    82f8:        e5d32000         ldrb        r2, [r3]
8 C, I0 V* t+ e: A    82fc:        e3520000         cmp        r2, #0' m" \. P4 d( E3 l4 y
    8300:        02822001         addeq        r2, r2, #1) u6 ^1 y% t- p3 @& b8 y- y. Y
    8304:        05c32000         strbeq        r2, [r3]
- M8 Z' H/ O, H6 O0 r    8308:        e12fff1e         bx        lr# r4 f( @+ w1 |6 f8 Y2 T. Y
    830c:        0001050c         .word        0x0001050c
# n9 {4 T( i2 cnone:, p7 o% |2 m  R, s  b# m
0000839c <frame_dummy>:
8 t2 L, A6 M+ C* N5 v    839c:        e59f0020         ldr        r0, [pc, #32]        ; 83c4 <frame_dummy+0x28>  D( U, C2 Q* f+ r0 z  B
    83a0:        e92d4010         push        {r4, lr}$ ~4 {; K9 I! R- ~
    83a4:        e5903000         ldr        r3, [r0]
, b2 V  d- t- ?/ t8 T2 h    83a8:        e3530000         cmp        r3, #0        ; 0x0+ C. Z, Y7 f8 m$ m4 R) r
    83ac:        08bd8010         popeq        {r4, pc}$ A# F) n4 Y! K- Q$ k6 m5 Y
    83b0:        e59f3010         ldr        r3, [pc, #16]        ; 83c8 <frame_dummy+0x2c>8 D- x. ]% i9 V
    83b4:        e3530000         cmp        r3, #0        ; 0x01 V0 f# c; P, C4 V9 e7 {9 ^
    83b8:        08bd8010         popeq        {r4, pc}, ^2 ^4 z% T, M
    83bc:        e12fff33         blx        r3
- G" f& j/ ?0 i- j& M+ R9 u/ J    83c0:        e8bd8010         pop        {r4, pc}
, J% p" a" E/ P+ n    83c4:        000104dc         .word        0x000104dc
5 P9 c& ^5 ?1 k* S2 F    83c8:        00000000         .word        0x00000000
$ i5 |5 h  Q: P  Q  t) D& m- F6 f" Sarago:
1 R/ s) Z+ ^: }' l, v3 e3 Y( ?00008310 <frame_dummy>:
" Y: u1 U* F/ e) U    8310:        e59f0024         ldr        r0, [pc, #36]        ; 833c <frame_dummy+0x2c>6 S, q$ Y4 K, A4 S$ Q; S, Z* `9 U5 Y
    8314:        e92d4008         push        {r3, lr}
$ _% T7 c& O; Y9 h5 z    8318:        e5903000         ldr        r3, [r0]( E3 u( [# P  I  W$ G6 g. k$ z( H
    831c:        e3530000         cmp        r3, #00 P2 Z2 J, q7 ^! H' Z2 k9 a% S
    8320:        0a000003         beq        8334 <frame_dummy+0x24>
  L0 X5 p1 M$ s6 L: i7 k    8324:        e59f3014         ldr        r3, [pc, #20]        ; 8340 <frame_dummy+0x30>: k0 K$ ~* f1 B) a" [$ K4 K
    8328:        e3530000         cmp        r3, #00 q' |6 p8 n$ s1 K: N
    832c:        11a0e00f         movne        lr, pc; `5 R# S" C  P) h% P8 {
    8330:        112fff13         bxne        r3
/ {, R2 G. U% b, i( b) m    8334:        e8bd4008         pop        {r3, lr}
1 D2 d2 r4 ^3 y/ T" D    8338:        e12fff1e         bx        lr3 e  W' [( M' n2 {6 T; k
    833c:        000103fc         .word        0x000103fc
- J$ `7 s: R) R6 {* R- Q5 A' h1 T    8340:        00000000         .word        0x00000000  T. x5 k7 j: M  B* X
none:. S& I  ?" f3 x! ]
000083cc <main>:
# F! u  R" H, o, y9 G- ^4 A    83cc:        e52db004         push        {fp}                ; (str fp, [sp, #-4]!)6 z' B- L8 M9 U9 h
    83d0:        e28db000         add        fp, sp, #0        ; 0x0( W# ^8 m" T% V: }8 x
    83d4:        e24dd01c         sub        sp, sp, #28        ; 0x1c! ^6 N5 b3 s5 z  ^( q3 M' J2 x
    83d8:        e50b0018         str        r0, [fp, #-24]- `1 b1 O6 _. l  M$ J
    83dc:        e50b101c         str        r1, [fp, #-28]
  L/ }( r2 K) X3 l; T    83e0:        e51b2010         ldr        r2, [fp, #-16]) {2 N; [  J  x7 H9 F
    83e4:        e51b300c         ldr        r3, [fp, #-12]
6 @3 v8 n0 f/ l+ _  q    83e8:        e0030392         mul        r3, r2, r3; |5 K- h4 g% C/ D- X  ?
    83ec:        e50b3008         str        r3, [fp, #-8]# n9 L( H6 U1 V( B
    83f0:        e3a03000         mov        r3, #0        ; 0x0
5 g& g4 B9 J  C+ }    83f4:        e1a00003         mov        r0, r3. ?7 C6 d) c( P# e( Y
    83f8:        e28bd000         add        sp, fp, #0        ; 0x05 b6 L. T0 Y' O" ~/ e1 C. }
    83fc:        e8bd0800         pop        {fp}: Y* c0 A, D) @4 ]" s! l
    8400:        e12fff1e         bx        lr
1 A, k, V! w6 \8 D% Z: }arago:
5 }3 C- @7 C. u0 A- p7 f5 R" P00008344 <main>:
) D, f$ f" j6 ]3 V    8344:        e52db004         push        {fp}                ; (str fp, [sp, #-4]!)1 I% J' e2 B6 ?) ]1 U! \
    8348:        e28db000         add        fp, sp, #0+ M& c; _: v: s  a
    834c:        e24dd01c         sub        sp, sp, #28
; n, p; M; ?+ [0 ^* F* D    8350:        e50b0018         str        r0, [fp, #-24]
6 g0 c3 {+ W! R3 D2 V$ N0 R    8354:        e50b101c         str        r1, [fp, #-28]( ?0 D2 A- `" x$ G
    8358:        e51b3008         ldr        r3, [fp, #-8]
# n9 E, R6 `) U" r5 R( ~# c( U    835c:        e51b200c         ldr        r2, [fp, #-12]  a5 x; S- ?9 ]$ l; l' |% I
    8360:        e0030392         mul        r3, r2, r3
/ b8 _$ z( o, ^9 v+ Q0 e    8364:        e50b3010         str        r3, [fp, #-16], u8 k( p. l# J
    8368:        e3a03000         mov        r3, #0. F: M: c' J5 g/ O
    836c:        e1a00003         mov        r0, r3
! j  N; i' k" N% C: S( R0 j9 Q    8370:        e28bd000         add        sp, fp, #0
9 F( F7 J0 z4 X! Z$ G5 n3 z# n/ G    8374:        e8bd0800         pop        {fp}
% n3 l6 i) d/ d1 B6 I3 _* f8 K" K    8378:        e12fff1e         bx        lr+ O' C% Z$ O! a
none:
7 U! h) i, z. n4 D# ^% [$ W00008404 <__libc_csu_fini>:
  }: Z  M8 N7 g2 l" ?6 J7 y9 c" ]    8404:        e12fff1e         bx        lr; o6 P* s; D, `2 ?# }# O- t
arago:6 q% w9 f! G; [" H4 O/ L# w
000083dc <__libc_csu_fini>:+ g) p" e: k( r
    83dc:        e12fff1e         bx        lr
0 v0 R' L- U. w) D& z- N: i0 _0 t, \none:
  @; P; _6 ~. f9 z) N% t- T0 C00008408 <__libc_csu_init>:3 ?- G9 q. d" a  R
    8408:        e92d47f0         push        {r4, r5, r6, r7, r8, r9, sl, lr}! l5 ?2 C) w1 D; `0 \! K
    840c:        e1a08001         mov        r8, r1, N$ L" C* m) r2 g& m
    8410:        e1a07002         mov        r7, r2
0 w! K( G  q: F    8414:        e1a0a000         mov        sl, r0
1 e- }' x# E# e5 l- b  C    8418:        ebffffb0         bl        82e0 <_init>
3 g; G. z  \6 h0 J6 |9 X! f, \    841c:        e59f1044         ldr        r1, [pc, #68]        ; 8468 <__libc_csu_init+0x60>
' Y4 \! ?( w; L8 F    8420:        e59f3044         ldr        r3, [pc, #68]        ; 846c <__libc_csu_init+0x64>' s# [' w/ V( O; V, L2 ?: O
    8424:        e59f2044         ldr        r2, [pc, #68]        ; 8470 <__libc_csu_init+0x68>
) P2 D6 ]  c7 j& e* `0 n    8428:        e0613003         rsb        r3, r1, r3
4 Z3 @9 E: ~4 }, s! |- c    842c:        e08f2002         add        r2, pc, r2
# j( n* D' I$ _# u3 o  T2 F7 i* K+ |    8430:        e1b05143         asrs        r5, r3, #2: t& [3 _% j6 l, B
    8434:        e0822001         add        r2, r2, r1. ], e1 O! V0 C# s2 T
    8438:        08bd87f0         popeq        {r4, r5, r6, r7, r8, r9, sl, pc}
! b. c: D% m5 T    843c:        e1a06002         mov        r6, r2
: Z6 P. r: z2 d4 V    8440:        e3a04000         mov        r4, #0        ; 0x0$ i8 I% {1 g+ y' P
    8444:        e1a0000a         mov        r0, sl
5 ]  K  p& k; K+ a; V    8448:        e1a01008         mov        r1, r8- j: i2 ^/ ~; T) O
    844c:        e1a02007         mov        r2, r7; z  @6 \$ D% |: @& F
    8450:        e1a0e00f         mov        lr, pc% X$ c' `# d/ m! B
    8454:        e796f104         ldr        pc, [r6, r4, lsl #2]
3 B1 @  ?' j9 x3 W4 W5 q    8458:        e2844001         add        r4, r4, #1        ; 0x1" f* a' S" H" S1 V' f" \
    845c:        e1540005         cmp        r4, r5
+ V8 r, b' R0 g- z% {+ P2 A% B! e    8460:        3afffff7         bcc        8444 <__libc_csu_init+0x3c>2 d' r. n8 o( y" x
    8464:        e8bd87f0         pop        {r4, r5, r6, r7, r8, r9, sl, pc}
9 W" s3 p. H1 }% s9 S. C% \+ E    8468:        ffffff04         .word        0xffffff04
+ t) a7 e0 X8 i& ~, b) E    846c:        ffffff08         .word        0xffffff083 q+ o" J4 D& y+ C
    8470:        0000819c         .word        0x0000819c6 I6 M' ~" c. U% P4 C% m
arago:8 j2 ?& K7 \" ]0 K
0000837c <__libc_csu_init>:
9 X+ o% h1 B: U7 `6 Q    837c:        e92d45f8         push        {r3, r4, r5, r6, r7, r8, sl, lr}
: l  ~4 l* q/ U# a% O+ @    8380:        e59fa04c         ldr        sl, [pc, #76]        ; 83d4 <__libc_csu_init+0x58>9 J( }  m5 I8 ?% J
    8384:        e1a06000         mov        r6, r0* Q2 u' ]8 t0 ~# q7 _% ]2 e
    8388:        e1a07001         mov        r7, r12 O. s" O( F6 r2 R7 h+ B( F
    838c:        e1a08002         mov        r8, r2
! f: e- N! S' Z) j* v    8390:        ebffffae         bl        8250 <_init>. R4 x# i1 s' W) W% b
    8394:        e59f103c         ldr        r1, [pc, #60]        ; 83d8 <__libc_csu_init+0x5c>* G( u! ^1 U  }. O9 z; C) m
    8398:        e08fa00a         add        sl, pc, sl7 X# o: ~- G+ M5 D
    839c:        e08f0001         add        r0, pc, r1
4 g. `; ]( v) o4 P, e    83a0:        e06a5000         rsb        r5, sl, r0' L$ A6 I6 f3 j3 _
    83a4:        e1b05145         asrs        r5, r5, #2! I  Q- ^, t% U6 A) |' n
    83a8:        08bd85f8         popeq        {r3, r4, r5, r6, r7, r8, sl, pc}
8 O5 B& w  J) K2 b    83ac:        e3a04000         mov        r4, #0/ [  ^0 n4 p& o, c3 n' Q! F0 x
    83b0:        e79a3104         ldr        r3, [sl, r4, lsl #2]
9 k8 K: H0 f9 @- D7 B    83b4:        e1a00006         mov        r0, r6
$ ?0 L! v# U. E) O3 w" s    83b8:        e1a01007         mov        r1, r7
- I, i' N9 v' X) v( `8 m) u, B    83bc:        e1a02008         mov        r2, r8& m* H* s9 {& _/ v6 j9 `$ P1 z
    83c0:        e2844001         add        r4, r4, #1
4 {! q1 ~3 H$ z    83c4:        e12fff33         blx        r3
" t1 S" j  j2 ~; s$ P5 a  d    83c8:        e1540005         cmp        r4, r5
  X' y! `! i6 l' p8 f# H; K    83cc:        3afffff7         bcc        83b0 <__libc_csu_init+0x34>1 I* |# l  v# b* U1 Z$ w5 ^
    83d0:        e8bd85f8         pop        {r3, r4, r5, r6, r7, r8, sl, pc}4 N# O# f- c' I# O
    83d4:        00008054         .word        0x00008054
6 k- B* h" Q6 Q0 f: w  j; a+ v    83d8:        00008054         .word        0x00008054% F3 e1 s, V1 b, ^
none:( K+ J9 c, c8 h+ K$ g. p
Disassembly of section .fini:
" ?5 F' o2 r2 z- `3 ]; k
( q% d( A  w% T9 S4 L00008474 <_fini>:: {9 J4 m3 n' K' b$ a: i0 b: R
    8474:        e92d4010         push        {r4, lr}* H. ^" P+ U( a1 O3 l3 ~& h
    8478:        e8bd8010         pop        {r4, pc}  R% ]8 k7 Y7 r& r/ X, @$ m
arago:' @: s; n9 p- L4 y5 q
Disassembly of section .fini:
8 g) n5 I7 k6 o( h
$ ~6 R( `4 P, G7 w% W2 D000083e0 <_fini>:* u1 D1 y/ b" G% V/ s
    83e0:        e92d4008         push        {r3, lr}. K- A& u! ~- M7 p9 }9 M1 D4 h
    83e4:        e8bd8008         pop        {r3, pc}
$ K, ^% a: Q  \+ `4 }
( h1 s- {. Z3 i  X
/ k' t7 |5 I! Y, r* A$ |5 M
/ c7 Q" J' J* ?- i  y
回复 支持 反对

使用道具 举报

0

主题

113

帖子

2145

积分

创龙

Rank: 8Rank: 8

积分
2145
6#
发表于 2016-6-21 16:35:00 | 只看该作者
粗看是使用的寄存器有点不同。# B# R8 A% X! a' l/ }& q) T
我觉得这个基本程序代码的汇编差异不会有什么结果上的影响。9 n! V  {) }! b! R( }0 ^
关键可能在于对于 TI 本身提供的一些特性,arago 针对其进行优化,这类的影响才会比较大吧。
回复 支持 反对

使用道具 举报

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

本版积分规则


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

GMT+8, 2026-1-12 08:56 , Processed in 0.045472 second(s), 26 queries .

Powered by Discuz! X3.2

© 2001-2015 Comsenz Inc.

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