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

嵌入式开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

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

交叉编译器 疑问

[复制链接]

1

主题

3

帖子

1039

积分

金牌会员

Rank: 6Rank: 6

积分
1039
跳转到指定楼层
楼主
发表于 2016-6-4 20:49:35 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
在工具目录下 有两个交叉编译工具; f1 }+ P, F& ~( `3 P. d/ d
arago-2011.09-armv5te-linux-gnueabi-sdk
" I5 t* h; u: s9 m% Zarm-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu
$ m  u' _6 e- b5 W这两个 交叉编译 工具 有什么区别  
6 ^0 a2 R# _7 z1 \( z, \
8 P+ B: d/ t* ^# f- o
2 T: V. H; C0 W- g/ k* m/ w
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖
回复

使用道具 举报

0

主题

113

帖子

2089

积分

创龙

Rank: 8Rank: 8

积分
2089
推荐
发表于 2016-6-8 17:03:19 | 只看该作者
arago 对 TI 的支持应该更好8 N1 Z! s) [( T5 S" X7 v
http://arago-project.org/wiki/index.php/Main_Page
回复 支持 1 反对 0

使用道具 举报

0

主题

113

帖子

2089

积分

创龙

Rank: 8Rank: 8

积分
2089
6#
发表于 2016-6-21 16:35:00 | 只看该作者
粗看是使用的寄存器有点不同。
0 A; e" Z5 ]+ I# b, V; p& u/ |2 `7 \我觉得这个基本程序代码的汇编差异不会有什么结果上的影响。
7 k7 C* k% Z& h1 ^& @' D0 m关键可能在于对于 TI 本身提供的一些特性,arago 针对其进行优化,这类的影响才会比较大吧。
回复 支持 反对

使用道具 举报

1

主题

3

帖子

1039

积分

金牌会员

Rank: 6Rank: 6

积分
1039
5#
 楼主| 发表于 2016-6-9 23:03:48 | 只看该作者
源码:% P8 H% X' V- a/ j! B+ N
  1 #include<stdio.h>                                                           " i' T, x# B: Q
  2 #include<math.h>/ ]" `: O7 l% h
  3 int main(int argc,char* argv[])( C9 _- z% U9 e- ^4 H
  4 {- h5 w2 e- `- K
  5     int a,b,c;
6 ~3 Q; t% X, e. u: `7 [% f  6     c = a * b;
2 v+ U: B# A7 ^9 _3 I2 C& e4 S  7     return 0;
% [8 S/ z, H$ j  J! M( t8 a  8 }- b8 ]% q5 x3 I6 F

/ `5 N, H! J9 `5 ^" U下面是两个编译器 编译出来的差异  差异好像不是很大  arm汇编不是很熟悉 大家看看
1 D1 f5 [+ W0 e/ i5 E; knone:' Q1 q! q( g$ @, \, q8 ]
000082e0 <_init>:" j( Z: R/ w1 D9 T6 d- ]; H
    82e0:        e92d4010         push        {r4, lr}
  |. G) e2 B0 g+ e: v7 s8 Y. l    82e4:        eb00001c         bl        835c <call_gmon_start>4 u  r# u. f* Q, b' b) ?9 ?
    82e8:        e8bd8010         pop        {r4, pc}
. e4 _. ^/ g  m+ V* n% [, R4 Karago:
1 H1 P4 j0 F( B; \00008250 <_init>:! ?$ ^3 R- K6 u) L1 j* l% H
    8250:        e92d4008         push        {r3, lr}
4 W5 T8 S2 t* J, z/ H; Q    8254:        eb00001d         bl        82d0 <call_gmon_start>) g( m# K7 O+ q$ o$ }+ [
    8258:        e8bd8008         pop        {r3, pc}
% V, R+ s0 j$ ^% u2 a* |% B
( R" e1 G& {- [none:) s6 ~4 Q( e7 {
000082ec <.plt>:% v7 \) N5 n8 ]4 H
    82ec:        e52de004         push        {lr}                ; (str lr, [sp, #-4]!)
* u3 E2 y! S. D( x; v    82f0:        e59fe004         ldr        lr, [pc, #4]        ; 82fc <_init+0x1c>* J$ N0 ]2 y2 B
    82f4:        e08fe00e         add        lr, pc, lr1 g4 {( q( q6 o- R( x$ ?# w* K
    82f8:        e5bef008         ldr        pc, [lr, #8]!
0 o5 m$ ?/ v, ]0 `7 S2 O    82fc:        000082d4         .word        0x000082d4
/ H0 _1 |! P: w9 u+ c: U3 Q    8300:        e28fc600         add        ip, pc, #0        ; 0x0
  `( e" K; j0 h4 x  m2 }& ?    8304:        e28cca08         add        ip, ip, #32768        ; 0x8000
5 u5 m3 ]$ B4 F  F8 u0 _: K    8308:        e5bcf2d4         ldr        pc, [ip, #724]!" S. b1 q/ a( I: Q/ D, v
    830c:        e28fc600         add        ip, pc, #0        ; 0x0* S' e# K& ~  A3 ?, @  j: C3 C: E
    8310:        e28cca08         add        ip, ip, #32768        ; 0x8000
; V0 G8 d3 e# {* {, x3 }    8314:        e5bcf2cc         ldr        pc, [ip, #716]!4 k) q  G& `% F+ H7 ^
    8318:        e28fc600         add        ip, pc, #0        ; 0x0
; m1 m# v% v* R, s) g9 r8 N: t    831c:        e28cca08         add        ip, ip, #32768        ; 0x8000
' k( F) b1 ?8 p4 a    8320:        e5bcf2c4         ldr        pc, [ip, #708]!/ h8 `6 M2 b2 m: p5 e* E$ d9 O
arago:
  Y8 @- ?) ^% L& ]$ v1 e2 R6 O0000825c <.plt>:
. `, y- {  g9 V0 m3 e1 r    825c:        e52de004         push        {lr}                ; (str lr, [sp, #-4]!); j7 N; [; j) H( v( k- {8 I
    8260:        e59fe004         ldr        lr, [pc, #4]        ; 826c <_init+0x1c>' ~2 K: `  W! i/ {& @' G
    8264:        e08fe00e         add        lr, pc, lr# A+ d! \1 W' r* w% h9 L* a1 A4 x- u9 m6 \
    8268:        e5bef008         ldr        pc, [lr, #8]!' D& G& q- x5 n7 p# E, F& z
    826c:        0000827c         .word        0x0000827c
' k! {, J) h1 R    8270:        e28fc600         add        ip, pc, #01 x# r9 B/ R  b& m# c$ x
    8274:        e28cca08         add        ip, ip, #32768        ; 0x8000
( }6 }4 ]0 q6 p6 Q    8278:        e5bcf27c         ldr        pc, [ip, #636]!        ; 0x27c
4 a- M' d5 g- r/ Z8 {3 r' Z6 ]# Y: o    827c:        e28fc600         add        ip, pc, #0: _# S- b4 t; m# `
    8280:        e28cca08         add        ip, ip, #32768        ; 0x8000
" u, Q; M6 O0 L% Z- Y1 D! U    8284:        e5bcf274         ldr        pc, [ip, #628]!        ; 0x274
2 p. ]3 R- R: X; b% z. i5 [    8288:        e28fc600         add        ip, pc, #0
1 e- w% d) J8 J' u3 V# l: Z    828c:        e28cca08         add        ip, ip, #32768        ; 0x8000
; F% \* s# R+ n$ E# ^    8290:        e5bcf26c         ldr        pc, [ip, #620]!        ; 0x26c
1 z4 u# k! z# K9 Xnone:
5 E$ Y' x# ~/ h00008324 <_start>:" `" U- `1 d2 r3 n, n9 u1 s' q' ^
    8324:        e59fc024         ldr        ip, [pc, #36]        ; 8350 <_start+0x2c>. I9 `$ B( V' {2 U# ?% d  {! T4 X7 D
    8328:        e3a0b000         mov        fp, #0        ; 0x0, x  A! M* c( }- V$ z1 j$ {
    832c:        e49d1004         pop        {r1}                ; (ldr r1, [sp], #4)
! Z, o- R" z8 G    8330:        e1a0200d         mov        r2, sp
" m* f" F, J2 C  t4 @: @' H    8334:        e52d2004         push        {r2}                ; (str r2, [sp, #-4]!)$ K% `3 h& n0 S) z+ E
    8338:        e52d0004         push        {r0}                ; (str r0, [sp, #-4]!)* b# h5 m. Y( H# {& v& t9 |; Z% K, f
    833c:        e59f0010         ldr        r0, [pc, #16]        ; 8354 <_start+0x30>
1 {$ K. A) Z2 l' n: |9 T; P- X' U    8340:        e59f3010         ldr        r3, [pc, #16]        ; 8358 <_start+0x34>' j2 K7 L7 r' x: h3 G
    8344:        e52dc004         push        {ip}                ; (str ip, [sp, #-4]!)
7 y5 P" z) h3 ]5 z, x+ |/ ^    8348:        ebffffef         bl        830c <_init+0x2c>
. r) w/ z' H3 Z6 M    834c:        ebffffeb         bl        8300 <_init+0x20>
6 N) u$ Y0 m" @9 t4 A    8350:        00008404         .word        0x00008404
) s2 Y# a  c; }5 k    8354:        000083cc         .word        0x000083cc
6 g: t& l" ]- z    8358:        00008408         .word        0x000084088 H* |# ^& M8 {  e2 J, x' f
arago:5 @# G- P; }& q# n
00008294 <_start>:- T  L2 Y( y$ O! f
    8294:        e3a0b000         mov        fp, #00 G, ?/ J- Q- x% p; _- H6 W
    8298:        e3a0e000         mov        lr, #0
2 f; E4 H! {5 @, y    829c:        e49d1004         pop        {r1}                ; (ldr r1, [sp], #4)# w  i$ e- U% G
    82a0:        e1a0200d         mov        r2, sp. R" \8 i4 u' M! H9 h0 u0 ]
    82a4:        e52d2004         push        {r2}                ; (str r2, [sp, #-4]!)
% G/ M! C) c$ i    82a8:        e52d0004         push        {r0}                ; (str r0, [sp, #-4]!)
, ?* a- U- s3 v, k    82ac:        e59fc010         ldr        ip, [pc, #16]        ; 82c4 <_start+0x30>  i* K+ M4 G2 p% K5 s! k' Z
    82b0:        e52dc004         push        {ip}                ; (str ip, [sp, #-4]!)
( ~! I9 p1 |+ u7 U$ D: b    82b4:        e59f000c         ldr        r0, [pc, #12]        ; 82c8 <_start+0x34>3 u- |7 ^; V- v- l7 D
    82b8:        e59f300c         ldr        r3, [pc, #12]        ; 82cc <_start+0x38>7 U4 h3 M6 G2 z8 [
    82bc:        ebffffee         bl        827c <_init+0x2c>2 K) q( ~& A1 S3 `/ @. w6 L
    82c0:        ebffffea         bl        8270 <_init+0x20>
8 }+ d' V3 h  ?. t2 Z3 N* N/ w$ V    82c4:        000083dc         .word        0x000083dc
4 F, m3 m' ?/ }. q+ H6 [    82c8:        00008344         .word        0x00008344
+ B5 ]& b5 H7 ~1 x    82cc:        0000837c         .word        0x0000837c8 m" x9 s/ h- p( c- ~
none:4 ^$ v3 j9 {( Y
0000835c <call_gmon_start>:
0 I1 ]: |3 a* _3 v' q) N    835c:        e59f3014         ldr        r3, [pc, #20]        ; 8378 <call_gmon_start+0x1c>0 C4 y, Z: H- e0 w' J
    8360:        e59f2014         ldr        r2, [pc, #20]        ; 837c <call_gmon_start+0x20>( u+ W8 l  S7 S/ h, c* j  _; \6 `, x
    8364:        e08f3003         add        r3, pc, r33 V6 A) _- I6 e! V
    8368:        e7931002         ldr        r1, [r3, r2]4 X. o# `. x3 V
    836c:        e3510000         cmp        r1, #0        ; 0x0; o2 M4 Q# ?/ e9 [, {
    8370:        012fff1e         bxeq        lr
: `4 o: h8 E9 I' j1 [( ^% D1 G% N    8374:        eaffffe7         b        8318 <_init+0x38>
! T1 Z, q- E. k( m  c    8378:        00008264         .word        0x00008264
% U, ~. ]1 M# k' [4 r9 |, f. U    837c:        00000018         .word        0x00000018
4 w7 w( D  ~5 Q. o: g9 Earago:  s. c  H' p) F+ s& t0 a7 L6 w2 m# S* ~
000082d0 <call_gmon_start>:
: P. C' u, Z- |4 x3 b& }    82d0:        e59f3014         ldr        r3, [pc, #20]        ; 82ec <call_gmon_start+0x1c>
* Y% j  B; E. |    82d4:        e59f0014         ldr        r0, [pc, #20]        ; 82f0 <call_gmon_start+0x20>
0 W  a+ _) }. {    82d8:        e08f3003         add        r3, pc, r3
; a$ a$ @4 h. R8 b    82dc:        e7932000         ldr        r2, [r3, r0]2 k' o: |6 x' s: h  a
    82e0:        e3520000         cmp        r2, #0  V) _7 a6 t: W3 g; c, D
    82e4:        012fff1e         bxeq        lr
3 O5 ~) s2 z; |% \0 z    82e8:        eaffffe6         b        8288 <_init+0x38>
; v( `8 Y1 L' A$ N- P& M    82ec:        00008208         .word        0x00008208% h' W8 I( [0 W$ E) R; a
    82f0:        00000018         .word        0x00000018. |  V3 v( c# h- t+ m* s
none:
1 e* y, h, H. f+ Z) R& Y* j/ I00008380 <__do_global_dtors_aux>:% G  C# a. Z! E7 c& R
    8380:        e59f2010         ldr        r2, [pc, #16]        ; 8398 <__do_global_dtors_aux+0x18>4 ~7 N) o$ D; P5 G0 E. H# K- c
    8384:        e5d23000         ldrb        r3, [r2]
) k7 z8 ^$ ~" T9 `- z9 a5 p' F/ ^    8388:        e3530000         cmp        r3, #0        ; 0x0
, y0 A, Z1 B9 j, P3 q    838c:        03a03001         moveq        r3, #1        ; 0x1
* S% l9 m  F* {# r$ a    8390:        05c23000         strbeq        r3, [r2]
+ r1 ]8 z# _' S1 A2 }    8394:        e12fff1e         bx        lr. E5 T" [1 i5 }* m
    8398:        000105f4         .word        0x000105f4
8 t$ E9 K0 ^7 ^3 d' I. G6 S3 Tarago:
# K' F; T# k. @2 s% y! a; {. v000082f4 <__do_global_dtors_aux>:
3 p7 B8 N6 L0 r6 E    82f4:        e59f3010         ldr        r3, [pc, #16]        ; 830c <__do_global_dtors_aux+0x18>
( B: C0 e' ?. j8 M    82f8:        e5d32000         ldrb        r2, [r3]* W5 c  q/ V0 A
    82fc:        e3520000         cmp        r2, #0
. U& m+ W" K3 R; o8 m3 _  z    8300:        02822001         addeq        r2, r2, #17 s/ t2 ]  Y3 j2 \4 c
    8304:        05c32000         strbeq        r2, [r3]8 A& v' t" _: I# f' ?
    8308:        e12fff1e         bx        lr$ h0 K3 V/ \7 C/ m  Y
    830c:        0001050c         .word        0x0001050c
# \$ I' _% b; e6 ?& q, P. Q  ]none:6 H) G. l) P( m5 U8 B# k0 l
0000839c <frame_dummy>:( u  b* R9 b4 K3 X
    839c:        e59f0020         ldr        r0, [pc, #32]        ; 83c4 <frame_dummy+0x28>2 g$ L, w, o) v3 [6 ~8 ^
    83a0:        e92d4010         push        {r4, lr}% S- `) S3 q' h. ~3 G% Y
    83a4:        e5903000         ldr        r3, [r0]
3 f) {8 ~. \, ^  K, g, d# N    83a8:        e3530000         cmp        r3, #0        ; 0x0
% N4 O6 l. z, k( A" @    83ac:        08bd8010         popeq        {r4, pc}* G0 o# V, Q1 b9 t" @
    83b0:        e59f3010         ldr        r3, [pc, #16]        ; 83c8 <frame_dummy+0x2c>
, ]6 ]% e  E7 H4 y9 y    83b4:        e3530000         cmp        r3, #0        ; 0x0
' H8 J( ?, V. H1 A; t! u4 ~    83b8:        08bd8010         popeq        {r4, pc}8 Z8 {6 x, _" y  C  J& L! [
    83bc:        e12fff33         blx        r3, n7 M9 b, z' z( @! I
    83c0:        e8bd8010         pop        {r4, pc}3 ^) A+ X. @; p; |
    83c4:        000104dc         .word        0x000104dc& t  Z- W$ ?1 a+ n( B1 {' D
    83c8:        00000000         .word        0x00000000
( ^0 s! m' P1 K/ Varago:
' u$ b3 j5 h- }/ D, L8 x00008310 <frame_dummy>:
$ C/ d4 S% g- t3 S' d% i    8310:        e59f0024         ldr        r0, [pc, #36]        ; 833c <frame_dummy+0x2c>0 z( F* q, o; A
    8314:        e92d4008         push        {r3, lr}
5 w2 L) f# d. z( z5 j0 `; s    8318:        e5903000         ldr        r3, [r0]
: w* V+ I9 t- I6 m    831c:        e3530000         cmp        r3, #0
1 l2 c% P  A3 B, p    8320:        0a000003         beq        8334 <frame_dummy+0x24>
* s! Y& w# N+ I# F- ^& ]) X    8324:        e59f3014         ldr        r3, [pc, #20]        ; 8340 <frame_dummy+0x30>! A, `, x2 m9 }/ ]7 B' K
    8328:        e3530000         cmp        r3, #0
' A# q" ^0 E) k' W0 V    832c:        11a0e00f         movne        lr, pc6 L6 ^! |7 S& L$ B  x3 C* z% z
    8330:        112fff13         bxne        r3+ F# h# n0 C; f2 M% z
    8334:        e8bd4008         pop        {r3, lr}& x7 B& n4 I4 f+ ~& @# G
    8338:        e12fff1e         bx        lr
% e' ~& t9 F- N5 |1 V; H    833c:        000103fc         .word        0x000103fc
  t1 V, j: ?. t5 v, i# j    8340:        00000000         .word        0x000000007 Y. k# j, K7 E3 ~  L) h
none:* |$ k: d' D' m* K
000083cc <main>:
! K  J( E8 {1 A4 H- O    83cc:        e52db004         push        {fp}                ; (str fp, [sp, #-4]!)
' i  \6 g& I/ }! N  x! A( n    83d0:        e28db000         add        fp, sp, #0        ; 0x0
" @1 t* [. O0 J    83d4:        e24dd01c         sub        sp, sp, #28        ; 0x1c
* z9 u: h# M) ~    83d8:        e50b0018         str        r0, [fp, #-24]
5 d* p8 k0 Y8 _1 X0 i, f) `    83dc:        e50b101c         str        r1, [fp, #-28]8 V8 [$ l+ T1 M4 Q' L( b) t% g
    83e0:        e51b2010         ldr        r2, [fp, #-16]& Y. Z9 Y! M$ R* L: j1 \* `* v
    83e4:        e51b300c         ldr        r3, [fp, #-12]! M+ U2 A2 f2 X8 N
    83e8:        e0030392         mul        r3, r2, r3
' ~( ?$ B) w: \! R( d    83ec:        e50b3008         str        r3, [fp, #-8]& W3 i$ S* B; z! f
    83f0:        e3a03000         mov        r3, #0        ; 0x0
% f! Q' A, Q9 {( i9 ~    83f4:        e1a00003         mov        r0, r3
& X0 W1 R8 E! H6 D7 D7 Q: W, F    83f8:        e28bd000         add        sp, fp, #0        ; 0x0
4 E, |- p- m  y# ]) G    83fc:        e8bd0800         pop        {fp}  L9 W% o9 R, s8 ]+ `# t; g# K
    8400:        e12fff1e         bx        lr
! Y6 Z6 E: S1 t8 E, warago:
0 C0 F' X& C; S+ q00008344 <main>:
" }4 Q* r. z# Z    8344:        e52db004         push        {fp}                ; (str fp, [sp, #-4]!)! P  w: f* E& v
    8348:        e28db000         add        fp, sp, #0' i3 v) Y1 W: x2 W- r2 ~
    834c:        e24dd01c         sub        sp, sp, #283 U3 p5 i* B) E3 T' b5 G4 j6 O" U' k
    8350:        e50b0018         str        r0, [fp, #-24]
- i0 w3 n" W7 t; F7 D% ?3 K    8354:        e50b101c         str        r1, [fp, #-28]
7 p8 T( l$ |$ l) {$ m6 `    8358:        e51b3008         ldr        r3, [fp, #-8]0 t9 w& w& ~, B- n, `4 O, o. `
    835c:        e51b200c         ldr        r2, [fp, #-12]2 j& v! m* r( D/ m. F4 g' X5 B
    8360:        e0030392         mul        r3, r2, r3
' y8 Z! m- {* X2 F    8364:        e50b3010         str        r3, [fp, #-16]. r% ?5 h) I& k
    8368:        e3a03000         mov        r3, #07 [  \- l4 m' e( j0 H
    836c:        e1a00003         mov        r0, r3
# a2 Q2 J- n3 L' `3 P    8370:        e28bd000         add        sp, fp, #0( B1 w7 y$ r0 [$ a8 h
    8374:        e8bd0800         pop        {fp}  F( b6 I8 V' e  ^* V
    8378:        e12fff1e         bx        lr" T& d  I4 x$ R/ U9 A
none:4 l- h7 L& a" z" w
00008404 <__libc_csu_fini>:/ g5 n* f% n* O- v+ {
    8404:        e12fff1e         bx        lr! V$ a0 a  o6 V0 [8 i$ N0 A
arago:5 S/ ^6 _/ q: }2 h
000083dc <__libc_csu_fini>:2 R9 v  S. y( [! ^; }8 Q5 H
    83dc:        e12fff1e         bx        lr
$ A2 s& T: x0 q' T+ x5 }3 L: m3 T/ x/ `none:$ i/ A& Z: ?7 J0 o
00008408 <__libc_csu_init>:
6 O% g- J% Z$ C( h8 ~1 D    8408:        e92d47f0         push        {r4, r5, r6, r7, r8, r9, sl, lr}
7 E3 _; m+ ~& L4 R5 Q  Z, I    840c:        e1a08001         mov        r8, r1
9 I  H: u$ K+ ]# L  z    8410:        e1a07002         mov        r7, r2
4 q+ B9 c0 m, ~- m1 J6 D$ C/ u    8414:        e1a0a000         mov        sl, r0% [" ^9 A0 |( t0 Q
    8418:        ebffffb0         bl        82e0 <_init>
6 C" z0 E7 q3 u8 e! x- ~7 s% N    841c:        e59f1044         ldr        r1, [pc, #68]        ; 8468 <__libc_csu_init+0x60>' g- h1 f+ }6 @! @7 w6 a4 f* k# m
    8420:        e59f3044         ldr        r3, [pc, #68]        ; 846c <__libc_csu_init+0x64>3 }' T5 u8 h* |6 |6 W
    8424:        e59f2044         ldr        r2, [pc, #68]        ; 8470 <__libc_csu_init+0x68>
" v) [& I1 i' F$ Y    8428:        e0613003         rsb        r3, r1, r3. q- p$ \- {- ?/ e
    842c:        e08f2002         add        r2, pc, r2, ~8 a: n7 O' I% u: m) M* y
    8430:        e1b05143         asrs        r5, r3, #21 K8 s6 X( z; M5 ^) o
    8434:        e0822001         add        r2, r2, r1
. e" z- Q4 Q9 g! D+ ]/ }8 C    8438:        08bd87f0         popeq        {r4, r5, r6, r7, r8, r9, sl, pc}
& R9 v: v% H/ T9 [) P$ Z    843c:        e1a06002         mov        r6, r2& W( q$ _/ _: D
    8440:        e3a04000         mov        r4, #0        ; 0x0
7 E4 k2 P" B1 S- Y    8444:        e1a0000a         mov        r0, sl
! h9 ^+ [6 Z( t5 I* Q! _+ ?    8448:        e1a01008         mov        r1, r8
% U1 D1 V5 E- x8 @1 {( J! @3 S0 L    844c:        e1a02007         mov        r2, r7- u' P2 B8 @: v$ Y! H  _
    8450:        e1a0e00f         mov        lr, pc
- j, W0 |' i8 T# R" X    8454:        e796f104         ldr        pc, [r6, r4, lsl #2]2 k$ t  Y/ S  A1 V
    8458:        e2844001         add        r4, r4, #1        ; 0x1
% |: B& r  {2 y4 Q7 a) a+ f2 c1 j( i    845c:        e1540005         cmp        r4, r5
' \* M, L3 n5 t' m    8460:        3afffff7         bcc        8444 <__libc_csu_init+0x3c>
- ~/ B: y8 Z* @' Y3 v    8464:        e8bd87f0         pop        {r4, r5, r6, r7, r8, r9, sl, pc}6 I0 g: {0 a6 {! @6 L
    8468:        ffffff04         .word        0xffffff04
, `, j( e8 W: F( a9 ~    846c:        ffffff08         .word        0xffffff08
) c+ q( ^5 W+ V$ f& g7 @/ C    8470:        0000819c         .word        0x0000819c+ M/ l: F9 O4 m
arago:
# F5 x. Q2 [3 n0000837c <__libc_csu_init>:& J+ R( Z+ y! f
    837c:        e92d45f8         push        {r3, r4, r5, r6, r7, r8, sl, lr}" o# w% i6 i1 z( X" c+ |
    8380:        e59fa04c         ldr        sl, [pc, #76]        ; 83d4 <__libc_csu_init+0x58>
6 q5 M9 }: y5 K$ r    8384:        e1a06000         mov        r6, r0& t! ?! ^, d( F2 Z, R
    8388:        e1a07001         mov        r7, r1
# L" r: r. J8 ~( v    838c:        e1a08002         mov        r8, r25 w* k: b$ Y" P  [+ U( e  p8 b  C
    8390:        ebffffae         bl        8250 <_init>
  R: c4 Z7 R1 }% m    8394:        e59f103c         ldr        r1, [pc, #60]        ; 83d8 <__libc_csu_init+0x5c>0 `/ n; {% P0 H& S8 U; \
    8398:        e08fa00a         add        sl, pc, sl
6 O+ _( J, e+ d+ @- B. l) D    839c:        e08f0001         add        r0, pc, r1
( c! d' M1 g- d4 e    83a0:        e06a5000         rsb        r5, sl, r0
% C7 p2 r  j5 i  t; P4 h: C    83a4:        e1b05145         asrs        r5, r5, #2) ^9 E: J& H: B: W
    83a8:        08bd85f8         popeq        {r3, r4, r5, r6, r7, r8, sl, pc}
8 K& d5 l+ J4 V; \; q& V    83ac:        e3a04000         mov        r4, #0
, T! O  d& q2 f+ h/ w$ f% [" Y9 U    83b0:        e79a3104         ldr        r3, [sl, r4, lsl #2]
5 U8 G0 b1 Q2 \7 O8 L$ Y/ v    83b4:        e1a00006         mov        r0, r65 s( Q( Z6 G3 U) E3 e9 V- \* |
    83b8:        e1a01007         mov        r1, r7) |& _/ `( j9 X- `  {8 P  B
    83bc:        e1a02008         mov        r2, r80 M9 u1 U1 \, ~6 E; K' t
    83c0:        e2844001         add        r4, r4, #19 V& o5 B+ N/ f# ?- R* e" F
    83c4:        e12fff33         blx        r3
% R' ?! _9 I& D    83c8:        e1540005         cmp        r4, r5
% I: J, @& [& P' u4 b$ L2 I    83cc:        3afffff7         bcc        83b0 <__libc_csu_init+0x34>
7 v1 m' I: K8 ^1 @3 _2 l    83d0:        e8bd85f8         pop        {r3, r4, r5, r6, r7, r8, sl, pc}
7 ^* d# D/ h$ ]) H7 f    83d4:        00008054         .word        0x00008054
. C: d+ h" \# N/ G    83d8:        00008054         .word        0x00008054" a$ X" C$ k% z) _8 U7 R
none:
- _8 @5 C" O) yDisassembly of section .fini:8 R) I2 q" V7 Q4 f  `$ p8 H% ]

6 v3 L# H: d# K( H$ r00008474 <_fini>:
* T) h! D9 x# b; c    8474:        e92d4010         push        {r4, lr}
1 E1 a# f7 Y& H  R7 G+ @$ d- L    8478:        e8bd8010         pop        {r4, pc}
$ p5 B& `& e+ m7 k9 I8 ^( Harago:: \5 J; Q6 k! }' Z0 D
Disassembly of section .fini:
! q. z% b. l1 X. w  D0 }/ i6 p8 `  R3 u. E, O0 j' \3 a
000083e0 <_fini>:
3 L; G; {+ n( }# Y4 F) c$ a6 D; _) V    83e0:        e92d4008         push        {r3, lr}1 Z8 R  U: I5 j
    83e4:        e8bd8008         pop        {r3, pc}
( N- R. I! `: L. A) J, Z; _+ |& R# I# X$ x

/ \. D; ]' v% A8 u2 m( H* ]1 K; @
+ [; J0 A, g- ~6 `& i/ x
回复 支持 反对

使用道具 举报

1

主题

3

帖子

1039

积分

金牌会员

Rank: 6Rank: 6

积分
1039
地板
 楼主| 发表于 2016-6-8 22:54:03 | 只看该作者
Jackindata 发表于 2016-6-8 17:03
& j. I- S/ P9 G: h7 [arago 对 TI 的支持应该更好
' A% Y/ w. Z6 xhttp://arago-project.org/wiki/index.php/Main_Page
4 p! R: q3 U/ M6 z/ s
的确 文章里说 支持和更新 都优先支持 arago , 在实际编译出来输出文件 不知道有没有什么 优化。
回复 支持 反对

使用道具 举报

0

主题

215

帖子

1246

积分

创龙

Rank: 8Rank: 8

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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-16 18:44 , Processed in 0.044033 second(s), 25 queries .

Powered by Discuz! X3.2

© 2001-2015 Comsenz Inc.

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