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

嵌入式开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 5741|回复: 5

交叉编译器 疑问

[复制链接]

1

主题

3

帖子

1039

积分

金牌会员

Rank: 6Rank: 6

积分
1039
发表于 2016-6-4 20:49:35 | 显示全部楼层 |阅读模式
在工具目录下 有两个交叉编译工具
# c! G8 p! ?4 f; g: Varago-2011.09-armv5te-linux-gnueabi-sdk  W& ^+ `, T* S( I+ L
arm-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu" T8 n9 z, N* Q* e1 O; U
这两个 交叉编译 工具 有什么区别  
+ C" C$ M$ b" L. }8 W
, e$ S$ F1 I( E" V
3 P% i+ x* ~5 }0 P4 }$ _2 D! K- f
回复

使用道具 举报

0

主题

113

帖子

2016

积分

创龙

Rank: 8Rank: 8

积分
2016
发表于 2016-6-8 17:03:19 | 显示全部楼层
arago 对 TI 的支持应该更好
) q+ i7 V$ B/ M2 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:036 q6 d* }; E: s" p( Z' \) y
arago 对 TI 的支持应该更好7 ^: [0 E& G( p2 u  h
http://arago-project.org/wiki/index.php/Main_Page
& T8 J. a/ i' s/ a3 P
的确 文章里说 支持和更新 都优先支持 arago , 在实际编译出来输出文件 不知道有没有什么 优化。
回复 支持 反对

使用道具 举报

1

主题

3

帖子

1039

积分

金牌会员

Rank: 6Rank: 6

积分
1039
 楼主| 发表于 2016-6-9 23:03:48 | 显示全部楼层
源码:
# a+ M! R% V) g% \7 w9 k& _  1 #include<stdio.h>                                                           
  d( c- u4 Z, \4 D2 S  2 #include<math.h>
- w% D! \: z7 @9 o4 R( ?4 ]/ J  3 int main(int argc,char* argv[])) I. E- u' n- l1 H1 H  k) d" |/ u
  4 {
) q1 N8 Y8 A1 w2 N4 F6 h  5     int a,b,c;
* B$ }: A& j! f8 {2 Q1 i  6     c = a * b;
' _" T# _: e- ]: a+ F. r. O) [  7     return 0;
) K  x6 ^$ w$ W* r) Y- M  8 }) C+ T' l( N. x8 x; b) o5 F7 E1 T7 _: n9 h

* o) s$ W( m0 [, g% F  H+ f下面是两个编译器 编译出来的差异  差异好像不是很大  arm汇编不是很熟悉 大家看看+ I- x0 j: y# H0 }# }2 \! \
none:
) @; E2 A3 w1 f1 x' g000082e0 <_init>:
+ c6 c# r  _# G$ r) z6 N    82e0:        e92d4010         push        {r4, lr}
# {6 n1 G$ [5 R& a+ V& P: ^& v7 ~    82e4:        eb00001c         bl        835c <call_gmon_start>; R- j1 Q- \$ d4 Q  Z+ p
    82e8:        e8bd8010         pop        {r4, pc}) g7 e+ J& C; r+ E( F
arago:1 R9 Y# H$ L1 M
00008250 <_init>:- ^- {% G* m. x1 I7 ^
    8250:        e92d4008         push        {r3, lr}# A! I: Y( v% k, X8 y, K! e4 P
    8254:        eb00001d         bl        82d0 <call_gmon_start>  R& M" C. S) c+ \# z, T% r8 }
    8258:        e8bd8008         pop        {r3, pc}3 g7 w  ~7 H4 W2 n; i/ d

0 j+ \' |- n, g; q- v. Mnone:! I- L6 s5 D+ s! K4 C' @
000082ec <.plt>:
* Y% e5 V' G$ f2 ~% K    82ec:        e52de004         push        {lr}                ; (str lr, [sp, #-4]!)
1 U, P- l6 x# l; D    82f0:        e59fe004         ldr        lr, [pc, #4]        ; 82fc <_init+0x1c>
3 R, G0 q* M( c8 _) f. c  o; I    82f4:        e08fe00e         add        lr, pc, lr8 N2 w- Y/ ^; t. a$ |
    82f8:        e5bef008         ldr        pc, [lr, #8]!  W" U0 {6 U$ j% `- S
    82fc:        000082d4         .word        0x000082d4; X1 R$ z; G  w
    8300:        e28fc600         add        ip, pc, #0        ; 0x0: j$ K9 p$ N/ {- X% A5 h8 J0 f5 y
    8304:        e28cca08         add        ip, ip, #32768        ; 0x80009 l' {& \( {0 |7 j' \/ }. v
    8308:        e5bcf2d4         ldr        pc, [ip, #724]!1 f$ B9 T1 B1 |, V$ o- Y( N. U9 K
    830c:        e28fc600         add        ip, pc, #0        ; 0x0
+ x+ K. W, @* h% X    8310:        e28cca08         add        ip, ip, #32768        ; 0x80003 B0 Y7 V; K1 v& B6 U$ C
    8314:        e5bcf2cc         ldr        pc, [ip, #716]!
7 t; B3 U, |  V$ y- C, P    8318:        e28fc600         add        ip, pc, #0        ; 0x05 C8 P$ K3 w7 C" G
    831c:        e28cca08         add        ip, ip, #32768        ; 0x80001 X5 C" R# d0 t+ R
    8320:        e5bcf2c4         ldr        pc, [ip, #708]!1 e$ e- w- ^& N& X
arago:7 w3 x  G- e( G
0000825c <.plt>:9 ?" P- z/ U& f$ r
    825c:        e52de004         push        {lr}                ; (str lr, [sp, #-4]!)+ ?# o+ l4 X# r
    8260:        e59fe004         ldr        lr, [pc, #4]        ; 826c <_init+0x1c>
+ u2 X' [, S! o6 ~; }( V; M. v, }    8264:        e08fe00e         add        lr, pc, lr& K: a, t! ?1 A; f4 z5 q+ M
    8268:        e5bef008         ldr        pc, [lr, #8]!
! c% D, y% o( y, m    826c:        0000827c         .word        0x0000827c9 b- b. W' d, \- [! b/ M( P
    8270:        e28fc600         add        ip, pc, #0( G* q6 e- r+ e* @9 ~; _$ n
    8274:        e28cca08         add        ip, ip, #32768        ; 0x8000' z) `1 N) `7 g5 M1 b7 Y  g5 E4 a
    8278:        e5bcf27c         ldr        pc, [ip, #636]!        ; 0x27c
# J$ a2 T3 a1 C7 j8 L    827c:        e28fc600         add        ip, pc, #0
3 ^2 o% l# f, G/ m, K    8280:        e28cca08         add        ip, ip, #32768        ; 0x8000
9 ]. |1 @( d. j) v8 v9 E& Z    8284:        e5bcf274         ldr        pc, [ip, #628]!        ; 0x274
3 l, C2 }1 ]1 q( S! [, \- m    8288:        e28fc600         add        ip, pc, #0" n  T- P8 t0 {% X) s# s
    828c:        e28cca08         add        ip, ip, #32768        ; 0x8000
' ]1 M! b( _0 F. z" ?8 p  _    8290:        e5bcf26c         ldr        pc, [ip, #620]!        ; 0x26c
, q6 D4 \. L4 M4 Lnone:# Q0 J/ y3 e. C2 n4 G* y' ]1 T
00008324 <_start>:
  G2 q  _6 @' `" ?    8324:        e59fc024         ldr        ip, [pc, #36]        ; 8350 <_start+0x2c>8 y* m# a" O9 ]8 U
    8328:        e3a0b000         mov        fp, #0        ; 0x0
/ m' }: h7 L; a6 r7 N    832c:        e49d1004         pop        {r1}                ; (ldr r1, [sp], #4)
& s7 X6 K- b" l9 m. m    8330:        e1a0200d         mov        r2, sp
5 g0 U3 [% i+ w! U" Z* a2 C    8334:        e52d2004         push        {r2}                ; (str r2, [sp, #-4]!)
& z% W% Q% W# _4 t    8338:        e52d0004         push        {r0}                ; (str r0, [sp, #-4]!)1 g8 }) ~- k1 \0 a" K9 x5 n
    833c:        e59f0010         ldr        r0, [pc, #16]        ; 8354 <_start+0x30>4 H; Q4 P' J9 v$ F
    8340:        e59f3010         ldr        r3, [pc, #16]        ; 8358 <_start+0x34>( n& s9 M+ C% T
    8344:        e52dc004         push        {ip}                ; (str ip, [sp, #-4]!)) C4 Y3 H$ T! ?1 h: B; D/ m
    8348:        ebffffef         bl        830c <_init+0x2c>
* \$ r  @% {9 q    834c:        ebffffeb         bl        8300 <_init+0x20>
8 y: N) l/ x* b9 f    8350:        00008404         .word        0x00008404, u# I/ n; l6 m4 q. |3 I0 l7 x
    8354:        000083cc         .word        0x000083cc
9 D9 h- l9 A5 e# _  F    8358:        00008408         .word        0x000084089 I& e# |( j! m+ j( A4 ^0 P9 i* G! P% n
arago:
6 ]! Y( K" K6 ?" P  d00008294 <_start>:: c8 R8 ]/ R' Y0 b
    8294:        e3a0b000         mov        fp, #0
# u1 a7 g3 [" x& Q9 @7 s0 k+ g  q    8298:        e3a0e000         mov        lr, #02 y* K! x: D; g- X: e8 ~
    829c:        e49d1004         pop        {r1}                ; (ldr r1, [sp], #4)" ^5 q2 Q5 U3 m* q: F  ]2 g
    82a0:        e1a0200d         mov        r2, sp7 ^# f7 s5 J7 ~9 I, L. b
    82a4:        e52d2004         push        {r2}                ; (str r2, [sp, #-4]!)
7 z! m) ]' `6 m4 F/ ?    82a8:        e52d0004         push        {r0}                ; (str r0, [sp, #-4]!)
) y  h) ~8 |) H2 `3 N    82ac:        e59fc010         ldr        ip, [pc, #16]        ; 82c4 <_start+0x30>9 c4 Z( i9 m. q
    82b0:        e52dc004         push        {ip}                ; (str ip, [sp, #-4]!)* a+ H) |, Y. v" D2 y7 P* [
    82b4:        e59f000c         ldr        r0, [pc, #12]        ; 82c8 <_start+0x34>
6 [4 T( @& F2 p' y# @3 L, \. A    82b8:        e59f300c         ldr        r3, [pc, #12]        ; 82cc <_start+0x38>% A! }6 z# k) W- o- P: U4 F6 B
    82bc:        ebffffee         bl        827c <_init+0x2c>3 Z/ j& e# J' j  e0 P
    82c0:        ebffffea         bl        8270 <_init+0x20>) i& g7 d: f9 }% F
    82c4:        000083dc         .word        0x000083dc/ V  e  d3 @) O/ W5 k$ E
    82c8:        00008344         .word        0x00008344
+ O3 B+ x) B) o    82cc:        0000837c         .word        0x0000837c3 |& M) x$ z! s8 O& X) ~
none:$ v7 C: s. `. ^: n5 f7 M, Y3 r% g
0000835c <call_gmon_start>:( y1 L; S9 b1 b; F. z4 k4 n; \" V8 r  k+ `
    835c:        e59f3014         ldr        r3, [pc, #20]        ; 8378 <call_gmon_start+0x1c>" e" V% |, q. E: g
    8360:        e59f2014         ldr        r2, [pc, #20]        ; 837c <call_gmon_start+0x20>
+ o  e% q8 ~" [1 C    8364:        e08f3003         add        r3, pc, r3
% q  e( [2 ?! J    8368:        e7931002         ldr        r1, [r3, r2]
7 z7 o, P6 L0 ?* x: ?    836c:        e3510000         cmp        r1, #0        ; 0x02 G( Y2 T( L" M) I. f  {
    8370:        012fff1e         bxeq        lr
& n- l$ z& x! j# F, P$ W    8374:        eaffffe7         b        8318 <_init+0x38>4 a( \: v' l) X& m
    8378:        00008264         .word        0x00008264
( J' t- R0 n- g) z  f8 v    837c:        00000018         .word        0x00000018
! P0 H: }6 J' d5 Uarago:3 f! e& H+ K3 \- F: C- G
000082d0 <call_gmon_start>:
# s; h1 X3 a6 D9 d0 m; c3 y    82d0:        e59f3014         ldr        r3, [pc, #20]        ; 82ec <call_gmon_start+0x1c>
  L0 X$ A" t; N& t# I6 a    82d4:        e59f0014         ldr        r0, [pc, #20]        ; 82f0 <call_gmon_start+0x20>
5 L9 q- W4 `2 O! a' E+ K  l1 ?    82d8:        e08f3003         add        r3, pc, r3# \+ P" a/ ?" V( J/ p2 m0 J
    82dc:        e7932000         ldr        r2, [r3, r0]
+ ]' m; h' F' X& ]# |    82e0:        e3520000         cmp        r2, #04 }2 b% I& a! N
    82e4:        012fff1e         bxeq        lr
+ ^" S+ O3 ]8 H5 o5 m7 D    82e8:        eaffffe6         b        8288 <_init+0x38>
" s; t. u; [2 C- W; t    82ec:        00008208         .word        0x00008208
8 C3 {( c5 P: ]: S% v    82f0:        00000018         .word        0x00000018# e( \6 N, q" A
none:, I1 T, S/ `! `4 M; \5 Z
00008380 <__do_global_dtors_aux>:; D, ]2 }4 y, D
    8380:        e59f2010         ldr        r2, [pc, #16]        ; 8398 <__do_global_dtors_aux+0x18>  b, H3 \+ V. O
    8384:        e5d23000         ldrb        r3, [r2]
0 H5 M5 {) g+ u4 f, T" A" s& r    8388:        e3530000         cmp        r3, #0        ; 0x06 ]5 t& l4 O3 ~+ k8 z# f8 r9 A
    838c:        03a03001         moveq        r3, #1        ; 0x1
' H, F' j& A: i; V! y% M3 ]    8390:        05c23000         strbeq        r3, [r2]
: J# q: m3 ~% N' V' N    8394:        e12fff1e         bx        lr
5 Y1 H5 @  ?: e( c  n7 u1 `/ `    8398:        000105f4         .word        0x000105f4
4 s0 E0 \, {% karago:1 m  H: L3 B! {5 ?* b$ ~$ p
000082f4 <__do_global_dtors_aux>:
" `" |" t: J+ m1 r6 ]1 l. l    82f4:        e59f3010         ldr        r3, [pc, #16]        ; 830c <__do_global_dtors_aux+0x18>
2 B0 z1 ]9 V* W# d6 @- `) v% g    82f8:        e5d32000         ldrb        r2, [r3]
$ F) j+ l: u: t2 a3 q4 i3 y    82fc:        e3520000         cmp        r2, #01 T% c: r( t& A/ ?5 ~
    8300:        02822001         addeq        r2, r2, #19 Y, }) Y4 f* Z  U8 t# F2 A& l7 y
    8304:        05c32000         strbeq        r2, [r3]
! O# o0 `1 w) m& z6 ?    8308:        e12fff1e         bx        lr, q8 p. O# b. Z$ k- l
    830c:        0001050c         .word        0x0001050c
: M1 b' C: c- j# D! {( ynone:* T  o1 `( B0 |4 k
0000839c <frame_dummy>:
2 F: O  O- ~8 G+ w8 |3 y    839c:        e59f0020         ldr        r0, [pc, #32]        ; 83c4 <frame_dummy+0x28>* n2 l/ O# o! K% K$ ^2 J2 t
    83a0:        e92d4010         push        {r4, lr}
! a+ z! b- @0 c    83a4:        e5903000         ldr        r3, [r0]
8 b, ?, w, X/ A" f$ q& W% |    83a8:        e3530000         cmp        r3, #0        ; 0x0
, z4 k; X& Z8 n: |( q* V; [+ ~    83ac:        08bd8010         popeq        {r4, pc}$ }3 f3 x* V1 x: \+ O" |
    83b0:        e59f3010         ldr        r3, [pc, #16]        ; 83c8 <frame_dummy+0x2c>9 d7 w2 B+ X0 t1 n0 D5 g. e
    83b4:        e3530000         cmp        r3, #0        ; 0x04 X2 y) V! u5 r8 y+ N
    83b8:        08bd8010         popeq        {r4, pc}
" H+ A& @$ p6 [. t+ v    83bc:        e12fff33         blx        r3
# ^, n" I2 ^8 ~% C) V/ T2 g- p    83c0:        e8bd8010         pop        {r4, pc}$ R0 ]6 [/ u2 `" |7 g! v
    83c4:        000104dc         .word        0x000104dc( X; u% M, @+ V/ V
    83c8:        00000000         .word        0x00000000
. ^) I0 o$ d/ A4 C' y6 T. Farago:9 Y4 v/ w1 u  R" J3 b
00008310 <frame_dummy>:
* X  ~1 S' [% Y% D4 S) Y' ]    8310:        e59f0024         ldr        r0, [pc, #36]        ; 833c <frame_dummy+0x2c>
  T9 `; I1 J8 X1 Z: ^    8314:        e92d4008         push        {r3, lr}$ f2 s6 I3 M; |( T) a+ F
    8318:        e5903000         ldr        r3, [r0]" m% e+ \: {% ?( W; e( M; q
    831c:        e3530000         cmp        r3, #0
% q/ \% Y+ n4 n* \( s    8320:        0a000003         beq        8334 <frame_dummy+0x24>2 f$ D% t1 C. i. Q3 q# K) N5 K$ M
    8324:        e59f3014         ldr        r3, [pc, #20]        ; 8340 <frame_dummy+0x30>
' A3 e6 e. x$ {6 {$ o! U4 d    8328:        e3530000         cmp        r3, #0
( G) t3 Z' ]0 {( J$ `: }/ L% {    832c:        11a0e00f         movne        lr, pc, T" j9 Q; t. Y$ q' U+ F0 a6 L
    8330:        112fff13         bxne        r39 Z' X6 K0 \! D6 g2 {$ i* U# y
    8334:        e8bd4008         pop        {r3, lr}& t2 t; a( d6 q+ i* B7 ^9 {0 g# Z
    8338:        e12fff1e         bx        lr
# r1 \& U5 A* P% e3 s9 l    833c:        000103fc         .word        0x000103fc8 t# O) {  U$ J/ n
    8340:        00000000         .word        0x00000000% e; V* `& N3 G( u& f0 z
none:7 ~6 g+ F8 D9 x
000083cc <main>:
4 K2 z3 V0 _3 ]& l$ v    83cc:        e52db004         push        {fp}                ; (str fp, [sp, #-4]!)
: S! }  ]% f* K+ {3 ?    83d0:        e28db000         add        fp, sp, #0        ; 0x0  g9 d! [9 }7 c! n6 S" G
    83d4:        e24dd01c         sub        sp, sp, #28        ; 0x1c
9 J% H9 y) M. E2 n    83d8:        e50b0018         str        r0, [fp, #-24]- M' g% r& l; f) R
    83dc:        e50b101c         str        r1, [fp, #-28]
, }# e; @" Q6 ~. `    83e0:        e51b2010         ldr        r2, [fp, #-16]
7 Z( v3 @/ F: i4 r4 f2 y; n    83e4:        e51b300c         ldr        r3, [fp, #-12]9 v5 q- S" f0 C8 W4 B3 E, g# X/ @
    83e8:        e0030392         mul        r3, r2, r3
2 d1 a) L/ E' P    83ec:        e50b3008         str        r3, [fp, #-8]  t8 r3 X2 D$ k  {- T% E
    83f0:        e3a03000         mov        r3, #0        ; 0x0
2 {% ^# ?3 h) R! v6 y3 p9 s. G    83f4:        e1a00003         mov        r0, r38 r2 j0 Y: L6 v. c2 k3 Q
    83f8:        e28bd000         add        sp, fp, #0        ; 0x0# U. ~) R9 D: x
    83fc:        e8bd0800         pop        {fp}2 c/ K% m+ F0 v3 n9 R6 ?8 n
    8400:        e12fff1e         bx        lr
+ R! V9 L+ \( p1 _# I+ p. garago:" L# T8 w. M) @8 \! X
00008344 <main>:' U/ w, X; u0 e
    8344:        e52db004         push        {fp}                ; (str fp, [sp, #-4]!)9 e, y/ H# G* \0 P+ v
    8348:        e28db000         add        fp, sp, #0
  U( K* h: V/ G/ k    834c:        e24dd01c         sub        sp, sp, #280 h8 H* J; Q3 F0 v/ w8 p. j- ^5 }. w
    8350:        e50b0018         str        r0, [fp, #-24]
( n" g: P9 L: p( X5 Y! {    8354:        e50b101c         str        r1, [fp, #-28]# j8 }5 c" j+ f" j! k
    8358:        e51b3008         ldr        r3, [fp, #-8]5 t8 L7 v/ h8 t! A
    835c:        e51b200c         ldr        r2, [fp, #-12]
. ]4 [/ O8 B# z4 h/ r    8360:        e0030392         mul        r3, r2, r3
. w5 d2 ~; b  {: J# M- |- I    8364:        e50b3010         str        r3, [fp, #-16]
& c0 k) x0 L; a1 q5 ]* O1 N    8368:        e3a03000         mov        r3, #0
, m2 {7 h' p& A5 y2 W6 I" q! R    836c:        e1a00003         mov        r0, r3; Z3 `9 r2 \/ b$ }! U3 Z
    8370:        e28bd000         add        sp, fp, #0
8 d0 F6 v  J) K7 s# `: Z    8374:        e8bd0800         pop        {fp}
; a# v& z* J1 I- x  a" \    8378:        e12fff1e         bx        lr
4 ?2 b* k" Q! P: E7 o9 Pnone:- i( r0 D4 h; w# O: \  o" D
00008404 <__libc_csu_fini>:
7 F6 t) A# n# s* X    8404:        e12fff1e         bx        lr4 R7 Z9 t* K5 j! y, Q! w
arago:% \6 n: W# a- t  X
000083dc <__libc_csu_fini>:
# B9 u# m1 X/ g% G1 \! Y    83dc:        e12fff1e         bx        lr
# N2 S& H& u3 i4 Y- Lnone:
% Q) G& M! r2 g) D$ Q" R/ [- P00008408 <__libc_csu_init>:
8 \" X/ V/ b( j+ S    8408:        e92d47f0         push        {r4, r5, r6, r7, r8, r9, sl, lr}& i+ A5 D4 q9 ?7 k  p- F
    840c:        e1a08001         mov        r8, r1
3 S2 `5 C% b* p: l4 _    8410:        e1a07002         mov        r7, r2
8 B6 C3 V* E3 j2 ~    8414:        e1a0a000         mov        sl, r0
! m2 J1 R- Q  c8 P, O, a    8418:        ebffffb0         bl        82e0 <_init>
  |( O, v% v  l, @4 c' C) @3 r4 a    841c:        e59f1044         ldr        r1, [pc, #68]        ; 8468 <__libc_csu_init+0x60>
3 Y  d4 j) O5 ?& D7 I7 y    8420:        e59f3044         ldr        r3, [pc, #68]        ; 846c <__libc_csu_init+0x64>
6 g4 d( d! t) Z$ ^    8424:        e59f2044         ldr        r2, [pc, #68]        ; 8470 <__libc_csu_init+0x68>
# A/ y6 k6 E' U; y) q2 p, z! N& v( C! Y    8428:        e0613003         rsb        r3, r1, r3
9 l& ^" Q: U" l8 `    842c:        e08f2002         add        r2, pc, r2/ c+ H' \6 P+ `, \
    8430:        e1b05143         asrs        r5, r3, #2" q% ^) P1 r: d5 Z# i  i8 Y
    8434:        e0822001         add        r2, r2, r1
/ z+ I8 x. ^, V) s& k+ ^* k    8438:        08bd87f0         popeq        {r4, r5, r6, r7, r8, r9, sl, pc}& q7 h( O  l3 X/ E
    843c:        e1a06002         mov        r6, r2
8 L4 a1 w3 g9 z) F* L2 B) ]    8440:        e3a04000         mov        r4, #0        ; 0x0
2 f: w4 c" W/ y2 O1 g6 A/ t/ G1 i0 ?    8444:        e1a0000a         mov        r0, sl
- }  z9 f( M$ Q/ G' ]% C    8448:        e1a01008         mov        r1, r8  P6 P- J; ?9 Q1 x; x! j
    844c:        e1a02007         mov        r2, r7
7 k0 N9 {7 Q: ]  l    8450:        e1a0e00f         mov        lr, pc
% [9 R8 ]) U6 t/ d    8454:        e796f104         ldr        pc, [r6, r4, lsl #2]2 ?& R- p3 j4 o( O" c' ~: `; `
    8458:        e2844001         add        r4, r4, #1        ; 0x1/ [. N7 M2 @( T% s( x- K2 a) w& F
    845c:        e1540005         cmp        r4, r5
3 j/ ^, Y* @6 c% q! H    8460:        3afffff7         bcc        8444 <__libc_csu_init+0x3c>
2 j0 ~  X8 Z" C( t# j# L    8464:        e8bd87f0         pop        {r4, r5, r6, r7, r8, r9, sl, pc}
0 K9 G/ l7 k- D: r    8468:        ffffff04         .word        0xffffff046 D3 O; R) G3 K, p& W3 o9 p
    846c:        ffffff08         .word        0xffffff08
  f( _, u5 [' |6 C& M    8470:        0000819c         .word        0x0000819c' y# B6 w/ B' _
arago:
; p/ g1 u3 z" c" V& c8 b0000837c <__libc_csu_init>:
; ]6 N7 t5 z5 J2 S    837c:        e92d45f8         push        {r3, r4, r5, r6, r7, r8, sl, lr}7 i) {1 g8 x9 e+ d
    8380:        e59fa04c         ldr        sl, [pc, #76]        ; 83d4 <__libc_csu_init+0x58>7 o/ i3 A2 f: |' Z  j
    8384:        e1a06000         mov        r6, r0
* Z$ X5 C' f* U; O" D    8388:        e1a07001         mov        r7, r1
9 I6 q$ T$ Y# `    838c:        e1a08002         mov        r8, r2- t/ w; g/ u0 L5 B4 D
    8390:        ebffffae         bl        8250 <_init>  p1 b( T6 s' {" ]8 G
    8394:        e59f103c         ldr        r1, [pc, #60]        ; 83d8 <__libc_csu_init+0x5c>& L9 u+ s& m; o( |+ z7 F' E
    8398:        e08fa00a         add        sl, pc, sl
& p% @  _; V6 v, Z; }: w    839c:        e08f0001         add        r0, pc, r1* g$ R; B  b1 W" M+ {
    83a0:        e06a5000         rsb        r5, sl, r03 \1 J# M. b4 O( s
    83a4:        e1b05145         asrs        r5, r5, #2% `9 C5 ^; ~7 X. J( E: G
    83a8:        08bd85f8         popeq        {r3, r4, r5, r6, r7, r8, sl, pc}
) k% L* u+ O% f" y5 l    83ac:        e3a04000         mov        r4, #0) Z* A6 q" `7 |! E' Y+ g
    83b0:        e79a3104         ldr        r3, [sl, r4, lsl #2]) X6 s( Z1 b1 I. d" m7 `
    83b4:        e1a00006         mov        r0, r6
5 O, {7 n5 w7 S  E    83b8:        e1a01007         mov        r1, r7
/ F$ X+ r& g# K    83bc:        e1a02008         mov        r2, r8
/ P& z2 o; ^8 r4 g6 [/ {    83c0:        e2844001         add        r4, r4, #1
! K, E& i- T' {$ {( r  ?' @    83c4:        e12fff33         blx        r39 O5 q7 [, b' o. f# m9 D2 u
    83c8:        e1540005         cmp        r4, r5! Z' J5 a1 R" A4 V6 |9 v! [
    83cc:        3afffff7         bcc        83b0 <__libc_csu_init+0x34>
/ h: M$ p# e! A8 Y1 }# j    83d0:        e8bd85f8         pop        {r3, r4, r5, r6, r7, r8, sl, pc}
# n" M% f2 t' y) w    83d4:        00008054         .word        0x00008054
3 ~- ]# |/ E, ~4 N, t    83d8:        00008054         .word        0x000080541 ?; c1 }! v5 W& b6 N% C
none:! V, U8 b8 N; m/ M# C
Disassembly of section .fini:
$ h3 t3 Q; I% s2 [7 ?# }1 e) z+ p, x" ]5 f
00008474 <_fini>:
( ^8 X& l  A( e8 L- ?! C/ h    8474:        e92d4010         push        {r4, lr}: s  ?8 l1 C8 |% p8 A6 R
    8478:        e8bd8010         pop        {r4, pc}7 r1 S9 p( Y' q- X: W
arago:, h  w1 m" }5 `( @" {% a
Disassembly of section .fini:
9 f, s+ h; g% @! [! ]% y- _
7 R! d3 i% K8 e000083e0 <_fini>:
- l( i8 @1 p3 W: h. ^) ?2 M    83e0:        e92d4008         push        {r3, lr}
3 ?+ W* u6 ^8 b' u3 A' c5 Q; W    83e4:        e8bd8008         pop        {r3, pc}' h+ V! l7 a/ W, w/ q$ N. f
/ q/ q! M5 B5 |# x5 I6 W7 v: @: l2 l

& t& A6 K; @3 k! |8 W2 u( u* U; |. }( r
回复 支持 反对

使用道具 举报

0

主题

113

帖子

2016

积分

创龙

Rank: 8Rank: 8

积分
2016
发表于 2016-6-21 16:35:00 | 显示全部楼层
粗看是使用的寄存器有点不同。
. c6 T' l7 `" C' U5 i我觉得这个基本程序代码的汇编差异不会有什么结果上的影响。
/ J+ S. d/ d! y1 _2 D! f关键可能在于对于 TI 本身提供的一些特性,arago 针对其进行优化,这类的影响才会比较大吧。
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-3-29 13:33 , Processed in 0.046929 second(s), 25 queries .

Powered by Discuz! X3.2

© 2001-2015 Comsenz Inc.

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