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

嵌入式开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

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

交叉编译器 疑问

[复制链接]

1

主题

3

帖子

1039

积分

金牌会员

Rank: 6Rank: 6

积分
1039
跳转到指定楼层
楼主
发表于 2016-6-4 20:49:35 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
在工具目录下 有两个交叉编译工具( k: a( C2 f5 v0 N
arago-2011.09-armv5te-linux-gnueabi-sdk% W% Q) z9 I; b# x& B5 m* `- m
arm-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu
& t- S" l8 C# L3 h( q1 m( ?这两个 交叉编译 工具 有什么区别  * m( W4 Z; K/ V' _
9 D4 w' X- G+ \4 ~- M2 y6 `

+ F7 M3 \( P, B
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖
回复

使用道具 举报

0

主题

113

帖子

2138

积分

创龙

Rank: 8Rank: 8

积分
2138
推荐
发表于 2016-6-8 17:03:19 | 只看该作者
arago 对 TI 的支持应该更好: z  T- X+ S" t( v$ m* m
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:039 c9 s$ f- u* L- b  W* Y% {1 a
arago 对 TI 的支持应该更好
7 C1 s# a) _1 b9 V3 [* s8 M7 I7 t, Ihttp://arago-project.org/wiki/index.php/Main_Page
) u! I: o: `9 }( k
的确 文章里说 支持和更新 都优先支持 arago , 在实际编译出来输出文件 不知道有没有什么 优化。
回复 支持 反对

使用道具 举报

1

主题

3

帖子

1039

积分

金牌会员

Rank: 6Rank: 6

积分
1039
5#
 楼主| 发表于 2016-6-9 23:03:48 | 只看该作者
源码:  @0 ]; l- n% M+ q
  1 #include<stdio.h>                                                           
: E+ a: z; P6 B: |. N- B  2 #include<math.h>
$ `+ Z2 l+ a9 b  3 int main(int argc,char* argv[])
: Z- n$ ^4 @) t: z- J  4 {
( @7 G. `- [% }' j% D9 C0 U6 L% l  5     int a,b,c;& L* J; G* g; ?4 @
  6     c = a * b;  v' `8 F$ s, o  [* e* r' L5 e( E
  7     return 0;2 _+ W( l7 h% H# _" n3 @! M( @# w5 D
  8 }
* K; n/ C, J7 |+ e) I/ l- v: P4 P5 B6 u' X9 F
下面是两个编译器 编译出来的差异  差异好像不是很大  arm汇编不是很熟悉 大家看看
8 ?3 ?8 v. Z; P( |- Qnone:/ Z2 z1 a) j! m$ ^1 B
000082e0 <_init>:
6 M9 k' b% Q9 f" K  a* @) Z0 r    82e0:        e92d4010         push        {r4, lr}
- L' C) y4 X' w" o    82e4:        eb00001c         bl        835c <call_gmon_start>+ l% X3 M6 j+ D4 S) D8 w1 N4 M3 w3 V
    82e8:        e8bd8010         pop        {r4, pc}9 C+ i) b' t0 v4 T* p$ ?
arago:
5 w7 ?5 x3 V7 W5 X0 x00008250 <_init>:
) t2 L0 l( s3 k1 d8 f8 V    8250:        e92d4008         push        {r3, lr}
7 }6 w+ a) d7 U1 y  h4 u6 P+ \    8254:        eb00001d         bl        82d0 <call_gmon_start>
! B( r- T" F. u( F    8258:        e8bd8008         pop        {r3, pc}
; n! @+ k; S2 F; a6 M
, y: r5 O; X* l2 v+ k5 s. w* `$ v* [none:
2 K9 o/ x: Y0 f8 }( q000082ec <.plt>:4 T; \( F, R2 @. ]1 @
    82ec:        e52de004         push        {lr}                ; (str lr, [sp, #-4]!)! S9 v/ O3 s* }) _* W# r
    82f0:        e59fe004         ldr        lr, [pc, #4]        ; 82fc <_init+0x1c>
7 K4 K  {) A! e! _    82f4:        e08fe00e         add        lr, pc, lr
" ~$ E7 j  p, |, F7 s    82f8:        e5bef008         ldr        pc, [lr, #8]!: J0 k# N% w% Y; p( |
    82fc:        000082d4         .word        0x000082d4# h6 x, C. s$ H2 ^
    8300:        e28fc600         add        ip, pc, #0        ; 0x0
' m4 a' L& b+ h# i" e    8304:        e28cca08         add        ip, ip, #32768        ; 0x8000% W5 _  K8 u: c  }2 M1 q% @
    8308:        e5bcf2d4         ldr        pc, [ip, #724]!( q. j% N) K$ P- c
    830c:        e28fc600         add        ip, pc, #0        ; 0x0* F  z4 d5 `8 I" T1 f1 K' D
    8310:        e28cca08         add        ip, ip, #32768        ; 0x8000% u9 `  {) r4 q6 r+ S; X
    8314:        e5bcf2cc         ldr        pc, [ip, #716]!! A3 @( C$ p. d# H4 a/ g% E2 _
    8318:        e28fc600         add        ip, pc, #0        ; 0x0) o9 ]5 }3 h8 q! `
    831c:        e28cca08         add        ip, ip, #32768        ; 0x8000
  b* j8 }3 @0 `+ f2 U    8320:        e5bcf2c4         ldr        pc, [ip, #708]!- ^; |) q9 x- A' ~* w
arago:
* X+ t, m5 P% ?& p0000825c <.plt>:
, ?6 @2 i' s. g    825c:        e52de004         push        {lr}                ; (str lr, [sp, #-4]!)
# e* C- X& H2 ^" q3 R    8260:        e59fe004         ldr        lr, [pc, #4]        ; 826c <_init+0x1c>% i' ~3 F: A& U+ K! P6 X: H2 o1 ?
    8264:        e08fe00e         add        lr, pc, lr
, g6 ^3 ]# `; n( J4 G+ C- h    8268:        e5bef008         ldr        pc, [lr, #8]!
9 n; n& @/ ?1 U    826c:        0000827c         .word        0x0000827c
, Y0 T! T& p& N, \" ^; X: t    8270:        e28fc600         add        ip, pc, #0
) V' N. k% C& @" h8 m4 L8 Q/ @3 h    8274:        e28cca08         add        ip, ip, #32768        ; 0x8000; m: s& s7 C1 Z1 _
    8278:        e5bcf27c         ldr        pc, [ip, #636]!        ; 0x27c) ?2 }5 I1 N, U$ \
    827c:        e28fc600         add        ip, pc, #09 _; M% Z9 f1 ?- Z4 M
    8280:        e28cca08         add        ip, ip, #32768        ; 0x8000' |* A( [5 b( z" d, s; z: ?) c# S
    8284:        e5bcf274         ldr        pc, [ip, #628]!        ; 0x2743 I; Q& k$ A4 m. P  `' O! y  A1 X
    8288:        e28fc600         add        ip, pc, #0: _- `$ R% V. r0 A
    828c:        e28cca08         add        ip, ip, #32768        ; 0x8000
5 F& Z' h) S$ _( }3 _    8290:        e5bcf26c         ldr        pc, [ip, #620]!        ; 0x26c# D1 r- Y$ W( r$ M3 L
none:. X: @5 Y( r0 T: k6 v" Y, q, }* p
00008324 <_start>:
: h7 Y7 P5 ~* q    8324:        e59fc024         ldr        ip, [pc, #36]        ; 8350 <_start+0x2c>
" b% J- B3 [( F# O" U& V+ Z) }    8328:        e3a0b000         mov        fp, #0        ; 0x0
7 \1 v' j, Z+ I7 o8 T7 Z    832c:        e49d1004         pop        {r1}                ; (ldr r1, [sp], #4), o7 b4 s+ ]6 S  J( ]
    8330:        e1a0200d         mov        r2, sp; ?7 J0 o# i* l, U) ?- V* u
    8334:        e52d2004         push        {r2}                ; (str r2, [sp, #-4]!)
3 u" L" D, u& t3 d" T2 A( |    8338:        e52d0004         push        {r0}                ; (str r0, [sp, #-4]!)* S7 c; D, @, L# \4 n
    833c:        e59f0010         ldr        r0, [pc, #16]        ; 8354 <_start+0x30>( S4 a0 i' g: ?
    8340:        e59f3010         ldr        r3, [pc, #16]        ; 8358 <_start+0x34># B$ ]2 w7 r) f. k" ~  Y
    8344:        e52dc004         push        {ip}                ; (str ip, [sp, #-4]!)' `+ w( v7 \, I
    8348:        ebffffef         bl        830c <_init+0x2c># l/ M; i; p" j
    834c:        ebffffeb         bl        8300 <_init+0x20>7 }9 K3 f$ b7 T0 E2 x0 I4 e* K- T# w6 H
    8350:        00008404         .word        0x000084042 v# ~5 z+ r" F6 s7 d
    8354:        000083cc         .word        0x000083cc
3 ?9 J( s; D. x" Z" _    8358:        00008408         .word        0x00008408( l& ?7 t+ B; B1 |+ e
arago:
' Q- Y5 O3 H$ y) p8 W0 i00008294 <_start>:
: P' L' _# e- H; U) ?& K0 ]2 [    8294:        e3a0b000         mov        fp, #06 j* ?6 ~1 n8 u4 W- j1 u
    8298:        e3a0e000         mov        lr, #0
' }' }! [7 B# w* e! J4 _9 f    829c:        e49d1004         pop        {r1}                ; (ldr r1, [sp], #4)
- c3 h. U' M6 x2 S    82a0:        e1a0200d         mov        r2, sp8 @; C1 X; T0 U  m/ k! r- I
    82a4:        e52d2004         push        {r2}                ; (str r2, [sp, #-4]!)- H% r, R$ b' S! e
    82a8:        e52d0004         push        {r0}                ; (str r0, [sp, #-4]!)1 ]) S6 |* o' i
    82ac:        e59fc010         ldr        ip, [pc, #16]        ; 82c4 <_start+0x30>
: [+ ^0 F1 E1 f7 [0 H' b: ?    82b0:        e52dc004         push        {ip}                ; (str ip, [sp, #-4]!)
5 M' ^+ L4 x" \+ a! k* }& z1 p    82b4:        e59f000c         ldr        r0, [pc, #12]        ; 82c8 <_start+0x34>
" r) ^! b! _" V; q3 N! Q% Y    82b8:        e59f300c         ldr        r3, [pc, #12]        ; 82cc <_start+0x38>
1 E, d7 k$ I0 e9 N    82bc:        ebffffee         bl        827c <_init+0x2c>  f! Q4 _4 V' \1 m. [5 u
    82c0:        ebffffea         bl        8270 <_init+0x20>
3 ~8 G& F7 ?! R9 r) S    82c4:        000083dc         .word        0x000083dc, @1 P! s0 y  `5 |# @& Y
    82c8:        00008344         .word        0x00008344. E3 {# l- V0 `2 ?/ ]' L$ f* T4 o
    82cc:        0000837c         .word        0x0000837c
) X# Y/ z# `1 \& y. fnone:0 N& X6 }2 A' }9 j' M& x
0000835c <call_gmon_start>:
) y% E2 J+ m+ E! c    835c:        e59f3014         ldr        r3, [pc, #20]        ; 8378 <call_gmon_start+0x1c>
! v! h& y# u, o    8360:        e59f2014         ldr        r2, [pc, #20]        ; 837c <call_gmon_start+0x20>1 n2 c. b9 F1 k8 J
    8364:        e08f3003         add        r3, pc, r3
) S6 l& ^! V! {+ H+ w    8368:        e7931002         ldr        r1, [r3, r2]
0 X3 {" q5 U8 y; b6 I) H, n! T# B    836c:        e3510000         cmp        r1, #0        ; 0x0
+ Q$ N: h: l% k9 M+ }    8370:        012fff1e         bxeq        lr
' R$ V8 W+ d  k. r    8374:        eaffffe7         b        8318 <_init+0x38>7 H# }  @8 g+ f6 h% C2 j/ [
    8378:        00008264         .word        0x00008264
$ X3 n5 D1 E2 q& A0 @    837c:        00000018         .word        0x00000018
% u9 X& a0 ?9 s0 o5 ?" R3 Yarago:
  K& L3 l6 k, _7 |000082d0 <call_gmon_start>:4 G! N0 c% N/ ]
    82d0:        e59f3014         ldr        r3, [pc, #20]        ; 82ec <call_gmon_start+0x1c>
4 |1 Z1 v* ^$ F+ T. v- P    82d4:        e59f0014         ldr        r0, [pc, #20]        ; 82f0 <call_gmon_start+0x20>4 a; \' f, M% ~7 J) Y
    82d8:        e08f3003         add        r3, pc, r31 u+ p1 L. n6 T7 k- p
    82dc:        e7932000         ldr        r2, [r3, r0]
6 n4 R/ C% I% K  G    82e0:        e3520000         cmp        r2, #0
) q; j8 L0 v$ y% s* e    82e4:        012fff1e         bxeq        lr
. u9 S% A- m/ W+ ^0 m2 b    82e8:        eaffffe6         b        8288 <_init+0x38>
: X( [% A8 h4 f& K/ f- s    82ec:        00008208         .word        0x000082085 M1 i& V$ C6 v# Y& w
    82f0:        00000018         .word        0x000000187 Q$ e6 q( r5 C# E" M5 G9 Y
none:( L9 m  S1 ]8 Y& d8 Q6 Z
00008380 <__do_global_dtors_aux>:% ?  t2 n# A  v5 q& a. q
    8380:        e59f2010         ldr        r2, [pc, #16]        ; 8398 <__do_global_dtors_aux+0x18>4 {( o( V, K) p$ _! f1 ~  g
    8384:        e5d23000         ldrb        r3, [r2]
) [! P- d9 N0 E    8388:        e3530000         cmp        r3, #0        ; 0x0
6 e! v+ b; v  g4 z# C# S' a4 R8 H3 X    838c:        03a03001         moveq        r3, #1        ; 0x1
2 R4 A+ p3 H! H1 w3 W, x    8390:        05c23000         strbeq        r3, [r2]& m" `/ o5 |) W- B& r0 }! V
    8394:        e12fff1e         bx        lr
7 o- o/ [  @# S4 E- D7 `    8398:        000105f4         .word        0x000105f4
7 y; j. p( c% a0 j2 F; {2 ^7 warago:
' m' m: {! f* h+ X5 x% {000082f4 <__do_global_dtors_aux>:8 o, |7 i% K. s8 }/ P8 q4 c
    82f4:        e59f3010         ldr        r3, [pc, #16]        ; 830c <__do_global_dtors_aux+0x18>% n: j! j7 j& l- J
    82f8:        e5d32000         ldrb        r2, [r3]
# c9 r0 K) ~! W" g$ Z5 G8 B" X$ E    82fc:        e3520000         cmp        r2, #0+ `! j& b0 i* |* K& M' L2 Q3 m( X$ L
    8300:        02822001         addeq        r2, r2, #1  @, F# O% b5 t* b* h, r
    8304:        05c32000         strbeq        r2, [r3]! ~$ t3 t/ }  F, j0 k
    8308:        e12fff1e         bx        lr5 X# H* w- y: X
    830c:        0001050c         .word        0x0001050c
, b' |! I- @, G, Q4 \! K- z. ~none:( |- b* {) C8 S8 f
0000839c <frame_dummy>:8 J  l8 \& T: Q5 T
    839c:        e59f0020         ldr        r0, [pc, #32]        ; 83c4 <frame_dummy+0x28>2 H( N1 h3 N. r& ]8 n4 L
    83a0:        e92d4010         push        {r4, lr}
# ~# N3 X0 O1 d1 Y0 |7 n4 C' }" Y& g    83a4:        e5903000         ldr        r3, [r0]
+ m7 T% U( b# A" z    83a8:        e3530000         cmp        r3, #0        ; 0x0) e# r6 {6 h. |- ?
    83ac:        08bd8010         popeq        {r4, pc}
% c. g+ f/ a/ F* ^    83b0:        e59f3010         ldr        r3, [pc, #16]        ; 83c8 <frame_dummy+0x2c>
/ s$ Q4 c" g; x# f- J- j+ x1 i    83b4:        e3530000         cmp        r3, #0        ; 0x0# u$ J8 a6 h8 s* `! E2 ]% h, e" @
    83b8:        08bd8010         popeq        {r4, pc}
% s9 ^" z0 y6 |1 [* |8 g    83bc:        e12fff33         blx        r3
. d3 R" ?% q1 [    83c0:        e8bd8010         pop        {r4, pc}
! i; t8 ^1 b( |! o  r5 e+ s    83c4:        000104dc         .word        0x000104dc
' R+ E; G" @$ J' P* G: a0 t8 Y5 V    83c8:        00000000         .word        0x00000000. r7 g" `: ]0 X6 z
arago:% U4 B) b% n9 D& b, m$ Q0 U; c
00008310 <frame_dummy>:3 b$ n+ ^% q, F$ V
    8310:        e59f0024         ldr        r0, [pc, #36]        ; 833c <frame_dummy+0x2c>7 A( w3 Z% G* x) U5 B
    8314:        e92d4008         push        {r3, lr}) @) j7 J* D# a2 k0 w
    8318:        e5903000         ldr        r3, [r0]$ l2 w! J; }$ ~# r" ~6 O/ K
    831c:        e3530000         cmp        r3, #0+ E/ Y3 c: @( ?  w5 i: {
    8320:        0a000003         beq        8334 <frame_dummy+0x24>* G% b  g0 ^" a/ T/ ^
    8324:        e59f3014         ldr        r3, [pc, #20]        ; 8340 <frame_dummy+0x30>
' E7 {* t4 I5 \; i" A1 o    8328:        e3530000         cmp        r3, #0/ x9 E% g; ]; I8 v% ]
    832c:        11a0e00f         movne        lr, pc
* U9 v; V5 C6 b3 k6 w    8330:        112fff13         bxne        r3
4 w1 D' A. p9 m1 a    8334:        e8bd4008         pop        {r3, lr}
4 t' ~% e. J# h! Z0 v    8338:        e12fff1e         bx        lr, t9 Q7 E2 H7 }
    833c:        000103fc         .word        0x000103fc* b2 }0 J( g* U7 v
    8340:        00000000         .word        0x00000000
7 e- i1 \) {$ \none:
) C- D9 d- D/ x! |! J& I0 {# v6 B000083cc <main>:- L& ^5 [% Q6 {- j$ c7 p
    83cc:        e52db004         push        {fp}                ; (str fp, [sp, #-4]!)
- O1 D7 C, }2 j5 P9 y8 M    83d0:        e28db000         add        fp, sp, #0        ; 0x0
6 V* C7 K, h  b% B1 v% h/ [0 F    83d4:        e24dd01c         sub        sp, sp, #28        ; 0x1c; R4 {0 E, ^+ F0 f4 `; K; G1 c5 u
    83d8:        e50b0018         str        r0, [fp, #-24]
7 y$ _9 b) _+ Z# G    83dc:        e50b101c         str        r1, [fp, #-28]% s5 P$ R. ^  Y2 f5 Z
    83e0:        e51b2010         ldr        r2, [fp, #-16]' y( b! S) j% `+ W) _) m" y; {0 S
    83e4:        e51b300c         ldr        r3, [fp, #-12]
- G2 U5 q" c& e2 L    83e8:        e0030392         mul        r3, r2, r31 f9 v: W+ v3 h4 b- h8 Q# I
    83ec:        e50b3008         str        r3, [fp, #-8]
  o! U- k) b8 i( u9 \/ R    83f0:        e3a03000         mov        r3, #0        ; 0x0% z, G3 z- ^9 a" f
    83f4:        e1a00003         mov        r0, r3, q+ u7 `8 d6 m. G
    83f8:        e28bd000         add        sp, fp, #0        ; 0x0
+ p) L' t" X* j: H% b    83fc:        e8bd0800         pop        {fp}, X7 ]1 E9 L7 u) X, @( k
    8400:        e12fff1e         bx        lr
, m" w* j0 p7 s# x/ y' F4 v4 l3 yarago:: l/ a, \; f  E" U
00008344 <main>:
; A2 D  L3 t$ R1 t    8344:        e52db004         push        {fp}                ; (str fp, [sp, #-4]!)
1 g# @$ a4 i$ O# |" e4 k. D0 J    8348:        e28db000         add        fp, sp, #0
/ I! u% J/ s$ a1 T" p    834c:        e24dd01c         sub        sp, sp, #28
5 j5 X$ k5 p7 d1 V! o9 G! f* d5 h    8350:        e50b0018         str        r0, [fp, #-24]* f& j5 L# Z- ^, Y. f7 I
    8354:        e50b101c         str        r1, [fp, #-28]* j! n- Z. u+ ^$ H2 J$ P: y
    8358:        e51b3008         ldr        r3, [fp, #-8]
$ {3 Y7 X+ D+ O; O+ L    835c:        e51b200c         ldr        r2, [fp, #-12]8 s: K7 Z8 Z6 m8 j9 E
    8360:        e0030392         mul        r3, r2, r3
0 v- r9 B  f/ a    8364:        e50b3010         str        r3, [fp, #-16]/ }4 w' h  W4 |  ]
    8368:        e3a03000         mov        r3, #0( E& `! r) y- j4 V+ T( p& t
    836c:        e1a00003         mov        r0, r3
; I" H" u; ^" e    8370:        e28bd000         add        sp, fp, #0
$ h# R/ y+ y4 D$ }: A4 Q9 z4 A4 G8 p    8374:        e8bd0800         pop        {fp}
' M/ n- C; E1 R    8378:        e12fff1e         bx        lr
2 i" K% F% T" C0 Bnone:: A" v7 J- e7 l! m, \
00008404 <__libc_csu_fini>:* y# Z/ q7 g7 ^8 }
    8404:        e12fff1e         bx        lr
: ~8 p) Y" E+ t/ ~3 Yarago:% R) J5 Y' E+ T
000083dc <__libc_csu_fini>:
9 h2 }6 t/ Z( W' ]. o# `5 S/ j    83dc:        e12fff1e         bx        lr
+ z: e5 `- Y$ l; z& m7 N4 Q* T: Vnone:
$ ~' l0 D6 V' C. `+ z( Z; h00008408 <__libc_csu_init>:7 @$ G! C* [+ `% M! p$ q
    8408:        e92d47f0         push        {r4, r5, r6, r7, r8, r9, sl, lr}
% b4 q5 J5 W9 l' Q. b+ N    840c:        e1a08001         mov        r8, r16 M# c# n" c! _8 P# O) k! l# m& [
    8410:        e1a07002         mov        r7, r27 E8 f' O. L+ W
    8414:        e1a0a000         mov        sl, r0) O# ?! E# l' [/ H7 L3 _) |: j
    8418:        ebffffb0         bl        82e0 <_init>
' A& e/ c  t. o5 K" p    841c:        e59f1044         ldr        r1, [pc, #68]        ; 8468 <__libc_csu_init+0x60>9 j; m( f4 [' h0 e) w$ y
    8420:        e59f3044         ldr        r3, [pc, #68]        ; 846c <__libc_csu_init+0x64>4 V2 A; m! X$ B) X! S& f' F
    8424:        e59f2044         ldr        r2, [pc, #68]        ; 8470 <__libc_csu_init+0x68>9 ?" U7 b, \% x  ]% i/ \/ q; L% Z5 ^
    8428:        e0613003         rsb        r3, r1, r38 [1 L$ u. w8 J2 R: J+ _% q4 V
    842c:        e08f2002         add        r2, pc, r2; ?; I" z& e! M* g  f
    8430:        e1b05143         asrs        r5, r3, #2
, d0 L& x# Q$ v7 a+ P% u) E! N    8434:        e0822001         add        r2, r2, r13 O* |+ _6 z8 _
    8438:        08bd87f0         popeq        {r4, r5, r6, r7, r8, r9, sl, pc}3 K$ ], ]+ c# g( z
    843c:        e1a06002         mov        r6, r2
$ d/ [% _- ^; y1 g3 u    8440:        e3a04000         mov        r4, #0        ; 0x0
# x- a9 H9 p! p9 Q/ t+ }    8444:        e1a0000a         mov        r0, sl9 C% }3 G* m5 K; h) _: G
    8448:        e1a01008         mov        r1, r8  |# D- n+ c/ G" k) k0 [. m; f
    844c:        e1a02007         mov        r2, r7
3 c+ v, t6 V, I3 v    8450:        e1a0e00f         mov        lr, pc
9 O- T# p2 b6 f4 @+ C& x( c    8454:        e796f104         ldr        pc, [r6, r4, lsl #2]" A- h$ N/ ^9 F4 d
    8458:        e2844001         add        r4, r4, #1        ; 0x11 b: _/ g* s7 y, \/ `
    845c:        e1540005         cmp        r4, r5, y- W4 S4 H$ G. n- R5 M$ r
    8460:        3afffff7         bcc        8444 <__libc_csu_init+0x3c>* H$ ^: x$ t& R1 M9 N! C0 f; K4 U+ ~
    8464:        e8bd87f0         pop        {r4, r5, r6, r7, r8, r9, sl, pc}+ X3 R% m* Y$ S: N; w
    8468:        ffffff04         .word        0xffffff04
# _1 |5 v- U( |1 y5 B8 K" F$ y+ A  s    846c:        ffffff08         .word        0xffffff086 @1 J) B% I  T, u" r% z# E2 \( o
    8470:        0000819c         .word        0x0000819c* k1 X0 b8 a/ b. n  O5 n
arago:( |8 l/ |2 \! {; `+ }
0000837c <__libc_csu_init>:
2 c# f4 J! [9 q7 K5 F$ q8 J8 }$ o; ?    837c:        e92d45f8         push        {r3, r4, r5, r6, r7, r8, sl, lr}) r; U& G* v8 Z$ |+ X. r! _6 }3 B
    8380:        e59fa04c         ldr        sl, [pc, #76]        ; 83d4 <__libc_csu_init+0x58>( V8 O2 k3 i3 y' W- H
    8384:        e1a06000         mov        r6, r0! F$ J2 r5 b, K1 y2 M
    8388:        e1a07001         mov        r7, r1
; |( w9 S9 @& h" m# T( B+ {    838c:        e1a08002         mov        r8, r2
7 m' h9 w* e! Y    8390:        ebffffae         bl        8250 <_init>
$ E* ^8 V, f( \* Z- g0 H    8394:        e59f103c         ldr        r1, [pc, #60]        ; 83d8 <__libc_csu_init+0x5c>
- G6 R  r6 F5 o    8398:        e08fa00a         add        sl, pc, sl
5 o+ V( E" l8 W/ x. J    839c:        e08f0001         add        r0, pc, r1- _3 u% s* b" Y/ d: ^* i
    83a0:        e06a5000         rsb        r5, sl, r0
7 }! x% ?+ n% p9 V: L' o' t    83a4:        e1b05145         asrs        r5, r5, #2
6 X8 ~* o& p+ B6 E" v$ E$ R5 U1 n7 e    83a8:        08bd85f8         popeq        {r3, r4, r5, r6, r7, r8, sl, pc}& d0 G3 d9 b; ~. N) W8 a
    83ac:        e3a04000         mov        r4, #0" `* y. E; \0 ]! ?, y/ c- r  u
    83b0:        e79a3104         ldr        r3, [sl, r4, lsl #2]
) \3 m9 I) X. N: T  [  W' i    83b4:        e1a00006         mov        r0, r6
# J2 B  ^# Y& w' c" n    83b8:        e1a01007         mov        r1, r7, C$ C8 D0 Q2 j: V5 n3 o* k
    83bc:        e1a02008         mov        r2, r8
8 \- b4 \5 Z8 O0 r    83c0:        e2844001         add        r4, r4, #1
/ r  e/ \6 p' o9 q8 j    83c4:        e12fff33         blx        r3
- S" B( R  h: e) r    83c8:        e1540005         cmp        r4, r5' q+ w1 F% K; b8 d
    83cc:        3afffff7         bcc        83b0 <__libc_csu_init+0x34>
9 o7 P6 P" s/ U6 H    83d0:        e8bd85f8         pop        {r3, r4, r5, r6, r7, r8, sl, pc}# H* }% j, `# H1 o- l* T5 k5 [* }
    83d4:        00008054         .word        0x00008054
/ B7 o) q3 I; i+ T4 E    83d8:        00008054         .word        0x00008054
1 q! s: I- b- H9 W& Cnone:( o: R. ?; o. y7 `* w9 V
Disassembly of section .fini:
* N5 D: r) B  C$ o2 i9 h3 @% q  W0 f  M% \+ U2 g# P* R. G( [
00008474 <_fini>:& W0 `+ Q+ ~! `. n7 G
    8474:        e92d4010         push        {r4, lr}  b7 z* F+ e) v9 y0 [. Y# m6 {' \
    8478:        e8bd8010         pop        {r4, pc}) T. d8 b4 r  s9 n
arago:# M) ^# l; p9 [' c& B4 W! Z7 c
Disassembly of section .fini:
- `6 n& H6 O" X+ h% J2 \8 h8 x/ C+ D6 l  X: ^
000083e0 <_fini>:
* C% }: e* K7 _0 B/ v1 h" S0 A- l/ ^    83e0:        e92d4008         push        {r3, lr}1 d9 A/ u4 y$ E' ^( d( S
    83e4:        e8bd8008         pop        {r3, pc}8 w: e, H6 v' W' X! Q
7 t; a6 X+ B( n" Q! l: E7 k

0 I  S& [9 K4 }( ]/ _- i& N/ U* A- V- i- x8 }+ R
回复 支持 反对

使用道具 举报

0

主题

113

帖子

2138

积分

创龙

Rank: 8Rank: 8

积分
2138
6#
发表于 2016-6-21 16:35:00 | 只看该作者
粗看是使用的寄存器有点不同。- P6 V. h, L& h/ C( R7 `
我觉得这个基本程序代码的汇编差异不会有什么结果上的影响。
: N$ t0 R' k9 A7 L9 \# ^关键可能在于对于 TI 本身提供的一些特性,arago 针对其进行优化,这类的影响才会比较大吧。
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-12-17 11:03 , Processed in 0.050671 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2015 Comsenz Inc.

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