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

嵌入式开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

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

交叉编译器 疑问

[复制链接]

1

主题

3

帖子

1039

积分

金牌会员

Rank: 6Rank: 6

积分
1039
跳转到指定楼层
楼主
发表于 2016-6-4 20:49:35 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
在工具目录下 有两个交叉编译工具2 J4 g( ]& [& n% U
arago-2011.09-armv5te-linux-gnueabi-sdk7 @& D- v% X4 O+ }' B2 _
arm-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu
7 k2 q9 ~- J5 d3 a% p这两个 交叉编译 工具 有什么区别  , E& P; Q! {  H' o* l, Q

# e% Q: Q# g* f1 v; e# a% W+ X! q7 Q$ n
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖
回复

使用道具 举报

0

主题

113

帖子

2145

积分

创龙

Rank: 8Rank: 8

积分
2145
推荐
发表于 2016-6-8 17:03:19 | 只看该作者
arago 对 TI 的支持应该更好
; X. W) C' u. N( B( q* D% l" Lhttp://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+ N/ v6 A% e$ C6 o# h* n8 n
arago 对 TI 的支持应该更好  w0 A: _3 j" s: x. `
http://arago-project.org/wiki/index.php/Main_Page

4 G' z& F$ a. f; c, g" _的确 文章里说 支持和更新 都优先支持 arago , 在实际编译出来输出文件 不知道有没有什么 优化。
回复 支持 反对

使用道具 举报

1

主题

3

帖子

1039

积分

金牌会员

Rank: 6Rank: 6

积分
1039
5#
 楼主| 发表于 2016-6-9 23:03:48 | 只看该作者
源码:) w2 A9 f& [4 h) s
  1 #include<stdio.h>                                                           
/ c# r$ T' T4 @* P0 P1 h  2 #include<math.h>; Y! B$ P- Y% A) s4 ]& m7 h  y% F
  3 int main(int argc,char* argv[])$ I  ?) y0 M# l- ?$ M' g+ \
  4 {3 a1 N# ]2 t) O
  5     int a,b,c;
2 k7 q# h6 ~$ q1 E/ A  6     c = a * b;
+ ^2 s' D) p6 k9 q  7     return 0;
8 G/ W% n3 R* z: [  8 }
' Y& V( k( l! S' Y  a. u
9 K) z$ E6 m* `1 `$ c下面是两个编译器 编译出来的差异  差异好像不是很大  arm汇编不是很熟悉 大家看看; s# z  ]0 V) J9 h+ I& o$ [
none:9 i$ ~$ y  ~. g; n+ `+ g
000082e0 <_init>:: }  Y' _( f( ^. G
    82e0:        e92d4010         push        {r4, lr}9 u0 ]$ Z" c) l! D& a2 q6 k  @& z
    82e4:        eb00001c         bl        835c <call_gmon_start>
% J' ]$ W% P+ t, J. C! [    82e8:        e8bd8010         pop        {r4, pc}' O+ H4 Q4 d7 F3 F
arago:/ o) J# H$ M0 g3 n( E* M
00008250 <_init>:$ v+ k; t: O- T; ]: ~+ a; C% i
    8250:        e92d4008         push        {r3, lr}: T$ h, L/ t, F2 d8 s
    8254:        eb00001d         bl        82d0 <call_gmon_start>
3 P( S1 e: V' G) W& |    8258:        e8bd8008         pop        {r3, pc}5 q9 Z$ G; w9 e' T9 A4 i4 s

4 M) U! y+ Q# |; Y( Cnone:
" a4 u3 l# i5 d0 I000082ec <.plt>:
; d: Y6 u( R  n( p    82ec:        e52de004         push        {lr}                ; (str lr, [sp, #-4]!)1 G; I. m* q, T2 M5 ?
    82f0:        e59fe004         ldr        lr, [pc, #4]        ; 82fc <_init+0x1c>1 ]: p$ W; R" G  ?
    82f4:        e08fe00e         add        lr, pc, lr
. R  J& J* ~. Q8 g0 _    82f8:        e5bef008         ldr        pc, [lr, #8]!3 d* P' y5 k, y
    82fc:        000082d4         .word        0x000082d4
4 f/ \7 {* k" t9 t- k/ Z" E    8300:        e28fc600         add        ip, pc, #0        ; 0x0+ `; X9 p' A7 V" ]5 v  x3 [4 A
    8304:        e28cca08         add        ip, ip, #32768        ; 0x8000
& M. F  Q, l; R: o' L+ d3 S$ R    8308:        e5bcf2d4         ldr        pc, [ip, #724]!1 V/ `% ~2 a/ h3 ?" R
    830c:        e28fc600         add        ip, pc, #0        ; 0x0- d& ^0 f! x6 m( ~
    8310:        e28cca08         add        ip, ip, #32768        ; 0x8000
' Z/ a) m+ L) _7 P2 r& ~+ G    8314:        e5bcf2cc         ldr        pc, [ip, #716]!& A2 |3 \- S  t1 \
    8318:        e28fc600         add        ip, pc, #0        ; 0x04 }0 E  }8 Y+ `
    831c:        e28cca08         add        ip, ip, #32768        ; 0x8000
; ~* N/ S/ g: p3 t, K    8320:        e5bcf2c4         ldr        pc, [ip, #708]!
, L: n* W. N1 j# h* j4 L' Aarago:( D' s) j4 Y; n, N# q* X
0000825c <.plt>:4 G$ {$ F4 @" |( ]" V2 U' L
    825c:        e52de004         push        {lr}                ; (str lr, [sp, #-4]!), i3 M0 X, k3 K7 g- d! P8 u
    8260:        e59fe004         ldr        lr, [pc, #4]        ; 826c <_init+0x1c>* D1 ?0 U8 n4 R" U$ ]
    8264:        e08fe00e         add        lr, pc, lr/ Y% `- L3 }: v
    8268:        e5bef008         ldr        pc, [lr, #8]!0 D# J- p/ K/ d% u- B
    826c:        0000827c         .word        0x0000827c5 ]9 i! ]' Q5 o6 x
    8270:        e28fc600         add        ip, pc, #0" q" X+ K% E! {2 Y
    8274:        e28cca08         add        ip, ip, #32768        ; 0x8000
. A) R5 h5 N; i7 k    8278:        e5bcf27c         ldr        pc, [ip, #636]!        ; 0x27c
# u3 D; s- }/ w& b) m" V    827c:        e28fc600         add        ip, pc, #0
/ G2 q! H) G+ H5 X* _  G% u    8280:        e28cca08         add        ip, ip, #32768        ; 0x8000
8 D. Z, `, [; ]  ^  l5 ]$ m7 J    8284:        e5bcf274         ldr        pc, [ip, #628]!        ; 0x2742 \* Q& |) P1 F9 [. I
    8288:        e28fc600         add        ip, pc, #03 z" s8 t6 T6 ~) A3 \/ i4 _/ s: f
    828c:        e28cca08         add        ip, ip, #32768        ; 0x8000+ ^3 U" C; R6 r' B; |' A3 I
    8290:        e5bcf26c         ldr        pc, [ip, #620]!        ; 0x26c' S! B! x0 X6 [6 K$ u
none:
4 y! Q( p. Z5 o0 J00008324 <_start>:7 ]8 K- }) x3 M% ?
    8324:        e59fc024         ldr        ip, [pc, #36]        ; 8350 <_start+0x2c>. n( H) z9 s; b! i3 x1 U2 \0 h
    8328:        e3a0b000         mov        fp, #0        ; 0x0
7 x+ k4 i6 @- n# P0 k8 W1 B    832c:        e49d1004         pop        {r1}                ; (ldr r1, [sp], #4). s6 k. z! l7 g/ L: ^
    8330:        e1a0200d         mov        r2, sp
- f% W, b% I3 L9 N    8334:        e52d2004         push        {r2}                ; (str r2, [sp, #-4]!)
8 W% b" t. Y  r2 ?8 R3 X; l4 t/ l' ?+ o    8338:        e52d0004         push        {r0}                ; (str r0, [sp, #-4]!)
. B; M* W, C4 t, h    833c:        e59f0010         ldr        r0, [pc, #16]        ; 8354 <_start+0x30>
0 l7 s! n7 Y  M    8340:        e59f3010         ldr        r3, [pc, #16]        ; 8358 <_start+0x34>9 `" w0 o8 |' V% a1 l
    8344:        e52dc004         push        {ip}                ; (str ip, [sp, #-4]!)
: J5 B) ^9 o& n3 T    8348:        ebffffef         bl        830c <_init+0x2c>
0 Y0 D  U2 d* n. w, Z7 m  @    834c:        ebffffeb         bl        8300 <_init+0x20>9 Y7 v& f. K7 j+ y& ]: }
    8350:        00008404         .word        0x00008404
& q! }& X5 r0 \4 }# O0 U6 J  w    8354:        000083cc         .word        0x000083cc& L9 x: }! f2 ?9 ~3 t. o
    8358:        00008408         .word        0x000084085 U7 H9 V3 w0 Q
arago:. ?% p; l% e" x: G7 V
00008294 <_start>:
2 ?3 D2 l$ E  ^! q$ f    8294:        e3a0b000         mov        fp, #08 p2 d( q  \/ h  k& W- f
    8298:        e3a0e000         mov        lr, #00 v5 R" V  V+ ~1 W
    829c:        e49d1004         pop        {r1}                ; (ldr r1, [sp], #4)- h( d4 {7 Q; ^
    82a0:        e1a0200d         mov        r2, sp
2 f9 H. ~! w7 F    82a4:        e52d2004         push        {r2}                ; (str r2, [sp, #-4]!). |* e2 h4 V5 Z( g/ l3 [
    82a8:        e52d0004         push        {r0}                ; (str r0, [sp, #-4]!)
8 l  P: l2 I& Z! H    82ac:        e59fc010         ldr        ip, [pc, #16]        ; 82c4 <_start+0x30>0 l+ G. o  q9 p1 D9 t7 ~" l& k
    82b0:        e52dc004         push        {ip}                ; (str ip, [sp, #-4]!)0 b. `# I, Z! {1 s, U
    82b4:        e59f000c         ldr        r0, [pc, #12]        ; 82c8 <_start+0x34>4 D( d8 q6 N: _- M
    82b8:        e59f300c         ldr        r3, [pc, #12]        ; 82cc <_start+0x38>- D. D  c) \9 ^) S( U/ |
    82bc:        ebffffee         bl        827c <_init+0x2c>
3 d0 k/ W+ v" W3 H' P! f6 T7 O1 D    82c0:        ebffffea         bl        8270 <_init+0x20>
6 E# t6 F& O4 q2 z# {. J! q& Z    82c4:        000083dc         .word        0x000083dc
. I. R# R% {6 \0 {0 n    82c8:        00008344         .word        0x00008344+ m3 W% B, w" c
    82cc:        0000837c         .word        0x0000837c
/ x' s8 [5 r$ q1 t' snone:
# O4 ]$ p% j- M6 j% ^5 G0 s: s  \, C0000835c <call_gmon_start>:
/ t( O6 p0 O# H    835c:        e59f3014         ldr        r3, [pc, #20]        ; 8378 <call_gmon_start+0x1c>
& q) I" H% a. r    8360:        e59f2014         ldr        r2, [pc, #20]        ; 837c <call_gmon_start+0x20>
& U+ u- R+ E- B* o1 {    8364:        e08f3003         add        r3, pc, r3
  ]; y& H2 J1 a3 I    8368:        e7931002         ldr        r1, [r3, r2]
3 a7 k% ?# |" a% v! n7 H& {) [  ^( x    836c:        e3510000         cmp        r1, #0        ; 0x0, C- }5 w' d! m6 y- l
    8370:        012fff1e         bxeq        lr
* k0 I7 p* J* c" o7 j" V; K    8374:        eaffffe7         b        8318 <_init+0x38>
2 K; h" m' i/ W    8378:        00008264         .word        0x00008264+ `6 K" }) z% y# C- [" ~/ g
    837c:        00000018         .word        0x00000018
$ H8 u7 w3 x& Z9 f6 Larago:0 L' f/ K: ?$ l# }
000082d0 <call_gmon_start>:9 q; h8 l; J! C
    82d0:        e59f3014         ldr        r3, [pc, #20]        ; 82ec <call_gmon_start+0x1c>
) o" }! L. B' W" f0 U5 {5 @- h    82d4:        e59f0014         ldr        r0, [pc, #20]        ; 82f0 <call_gmon_start+0x20>
6 k/ Z! L7 Y( w' f" }    82d8:        e08f3003         add        r3, pc, r3
% g& f( Q( i! Y+ R    82dc:        e7932000         ldr        r2, [r3, r0]
3 m! F2 `* }! Q' f    82e0:        e3520000         cmp        r2, #0
0 T4 r8 I2 d+ t% B5 T    82e4:        012fff1e         bxeq        lr( B) V: z' h  `
    82e8:        eaffffe6         b        8288 <_init+0x38>
1 [, U+ n: z, Q! u    82ec:        00008208         .word        0x00008208
( v  \4 R) A+ K6 _) I, i8 D4 A' W    82f0:        00000018         .word        0x000000186 e  m. `- E# W; ]5 p
none:
! I+ u2 p) y3 m& P; a1 {* w8 U/ ]00008380 <__do_global_dtors_aux>:
+ q5 [$ g4 O$ E    8380:        e59f2010         ldr        r2, [pc, #16]        ; 8398 <__do_global_dtors_aux+0x18>; p7 T% P: d: U7 L1 G0 Q% |6 T1 U: o, O
    8384:        e5d23000         ldrb        r3, [r2]
( C. @1 i4 i% a# r    8388:        e3530000         cmp        r3, #0        ; 0x0
/ r3 l) `# E# Q+ X( t' G8 k" U! T    838c:        03a03001         moveq        r3, #1        ; 0x1
7 U7 t& x( S- K: c% p: L! O- y' B    8390:        05c23000         strbeq        r3, [r2]$ j7 ~0 t4 I! F4 P3 `
    8394:        e12fff1e         bx        lr2 e1 j, N, I( z% m* G
    8398:        000105f4         .word        0x000105f4
- ]9 b4 `, }% e; A2 F' N. V5 Oarago:
3 p, w& r+ ?1 s3 @- V) ?000082f4 <__do_global_dtors_aux>:9 u1 \2 J9 G4 A2 F9 O
    82f4:        e59f3010         ldr        r3, [pc, #16]        ; 830c <__do_global_dtors_aux+0x18>
8 }) o. Z' a: \% r$ M! U    82f8:        e5d32000         ldrb        r2, [r3]4 K% M8 e" z$ y* m& N
    82fc:        e3520000         cmp        r2, #00 C5 p! l( y% T, R
    8300:        02822001         addeq        r2, r2, #18 b5 C' m2 z7 @" {* D9 g
    8304:        05c32000         strbeq        r2, [r3]. K1 _# \4 h' L6 C) f
    8308:        e12fff1e         bx        lr
- L( g9 T8 x/ F    830c:        0001050c         .word        0x0001050c
- g8 ], V! g  j3 cnone:# G" y" Y9 i) ^) N" @% T
0000839c <frame_dummy>:
$ ^6 U5 \% U9 I- T    839c:        e59f0020         ldr        r0, [pc, #32]        ; 83c4 <frame_dummy+0x28>& G+ I6 \4 k* P) s; ]% r1 _
    83a0:        e92d4010         push        {r4, lr}
5 X: ?5 O1 y/ n* x- B- D    83a4:        e5903000         ldr        r3, [r0]
8 G: B0 e! L% G8 _  c7 {) P  s    83a8:        e3530000         cmp        r3, #0        ; 0x0( ^. R/ F& K9 P" t5 D* S: {6 @
    83ac:        08bd8010         popeq        {r4, pc}; n  O  _1 C& A% E+ U& x
    83b0:        e59f3010         ldr        r3, [pc, #16]        ; 83c8 <frame_dummy+0x2c>2 d( U$ m% p( x- D7 g- S2 `
    83b4:        e3530000         cmp        r3, #0        ; 0x04 V% M8 ^% n- m
    83b8:        08bd8010         popeq        {r4, pc}
+ j1 g' n+ O: a. z" M$ B' E6 ?    83bc:        e12fff33         blx        r3+ G' J" W1 F: ~
    83c0:        e8bd8010         pop        {r4, pc}# P: v- y% i( h% F6 S& E
    83c4:        000104dc         .word        0x000104dc& [, G" ~0 |" G" U1 L+ ]8 B9 M# ]' S; z
    83c8:        00000000         .word        0x00000000- V4 w$ p9 i, |/ w" V3 Y
arago:
$ o5 R7 w( Z% q* g4 c# I9 Z00008310 <frame_dummy>:  t+ o) z- V6 u8 K' ~+ V' S  o
    8310:        e59f0024         ldr        r0, [pc, #36]        ; 833c <frame_dummy+0x2c>6 @( o% M! N, ?8 Q; \' a1 C6 R
    8314:        e92d4008         push        {r3, lr}) v5 q1 B( [) Y% ?& e
    8318:        e5903000         ldr        r3, [r0]
# Y3 C5 I. S% b# q5 i/ n    831c:        e3530000         cmp        r3, #0' {& O7 W2 e- ?4 W% c8 h
    8320:        0a000003         beq        8334 <frame_dummy+0x24>
  M: b. G$ g# A) [    8324:        e59f3014         ldr        r3, [pc, #20]        ; 8340 <frame_dummy+0x30>
/ m1 c. g1 |  i+ n* M" N: s    8328:        e3530000         cmp        r3, #0- h' P$ A7 H! i8 z
    832c:        11a0e00f         movne        lr, pc! i6 j) K4 b- Q/ u7 m( ^" @
    8330:        112fff13         bxne        r3
% Y$ f/ ]  @/ L% j2 M* t9 \    8334:        e8bd4008         pop        {r3, lr}
+ |! O4 ^3 I: F6 `    8338:        e12fff1e         bx        lr- i( V0 Q- A- d
    833c:        000103fc         .word        0x000103fc2 ~9 j% b1 \! j# b
    8340:        00000000         .word        0x00000000
2 M  C  B+ A2 v* Vnone:6 k  B+ s  e: q* j$ x7 D4 T
000083cc <main>:( _0 S: x2 k0 h) l+ x. E! D
    83cc:        e52db004         push        {fp}                ; (str fp, [sp, #-4]!)
  t" V3 ?( w) q) H    83d0:        e28db000         add        fp, sp, #0        ; 0x01 Z* _: q& `' Y% X
    83d4:        e24dd01c         sub        sp, sp, #28        ; 0x1c
3 I7 |1 u1 z. s! V5 o1 i7 |) H    83d8:        e50b0018         str        r0, [fp, #-24]+ O6 ~/ `/ m$ n* n) ?  j. X( B
    83dc:        e50b101c         str        r1, [fp, #-28]
# e1 V* _( q3 L# @    83e0:        e51b2010         ldr        r2, [fp, #-16]% i8 f6 f- ~# {+ n- N3 O
    83e4:        e51b300c         ldr        r3, [fp, #-12]
0 R4 Z" R; u3 s7 K5 t" U    83e8:        e0030392         mul        r3, r2, r3
; N; v9 B9 G! p/ b; M4 J    83ec:        e50b3008         str        r3, [fp, #-8]
( |! c$ M1 F) L3 B" l- z    83f0:        e3a03000         mov        r3, #0        ; 0x0
- f# p8 h3 Q) ~! j) _7 d    83f4:        e1a00003         mov        r0, r3! n4 r# D7 z4 r: i& c: I
    83f8:        e28bd000         add        sp, fp, #0        ; 0x0
/ F' F7 Y. v' ?5 c6 r4 K% f1 l* U    83fc:        e8bd0800         pop        {fp}7 X  j/ ]* X' j8 l0 _
    8400:        e12fff1e         bx        lr
! z% o5 P1 b2 `% rarago:5 j, w3 a' U! S5 a. @
00008344 <main>:
9 q" v/ a0 p& ?! D    8344:        e52db004         push        {fp}                ; (str fp, [sp, #-4]!)
  q7 W( C2 E. h    8348:        e28db000         add        fp, sp, #0. d+ S1 L1 k, {8 P* f5 T
    834c:        e24dd01c         sub        sp, sp, #28" O0 [; O  v7 {8 H5 N
    8350:        e50b0018         str        r0, [fp, #-24]0 J0 c' c. G5 s- }, p) T
    8354:        e50b101c         str        r1, [fp, #-28]
/ W9 B" D2 M" ~$ F    8358:        e51b3008         ldr        r3, [fp, #-8]
. n. q2 o' g, |7 F" S* P& z! U    835c:        e51b200c         ldr        r2, [fp, #-12]
4 T& F6 v# J0 b+ \    8360:        e0030392         mul        r3, r2, r3
7 i# r! N" O! @) {; I    8364:        e50b3010         str        r3, [fp, #-16]
. I+ H( ]4 J7 @2 N' v5 \! a- ?    8368:        e3a03000         mov        r3, #0
. M( q+ ^1 P3 w& q% e" T, N    836c:        e1a00003         mov        r0, r3
! k% p7 o. Z- j, {: S4 T    8370:        e28bd000         add        sp, fp, #0' y8 W6 B/ J* x8 l# g
    8374:        e8bd0800         pop        {fp}& O2 F9 J+ e4 R* e
    8378:        e12fff1e         bx        lr9 A) I1 v0 b0 n2 j, r
none:- V% ?- C3 t2 ~# S1 o
00008404 <__libc_csu_fini>:
/ ]. N6 G! {6 E! `  s    8404:        e12fff1e         bx        lr9 s7 L) e! d) v* n6 I9 [
arago:
0 t2 T( M! V1 j& x$ |2 F& r$ ^* k000083dc <__libc_csu_fini>:
* P# T' b3 ~0 b, g    83dc:        e12fff1e         bx        lr6 b( M& V' k& v8 T4 }( k
none:5 n9 N" S; n3 D0 ]
00008408 <__libc_csu_init>:
" |! V! a3 W0 o& W7 n9 c    8408:        e92d47f0         push        {r4, r5, r6, r7, r8, r9, sl, lr}! x# s+ O: \; ]6 |
    840c:        e1a08001         mov        r8, r1
' R8 {8 ^  ?+ ~" O3 \    8410:        e1a07002         mov        r7, r26 d) s( h* i/ u$ \* U$ {% _; }
    8414:        e1a0a000         mov        sl, r0( b! }# Q1 ~& |( ~7 N8 C* ?
    8418:        ebffffb0         bl        82e0 <_init>- C' b/ x: D+ ^9 G$ Y( }2 o* P4 E
    841c:        e59f1044         ldr        r1, [pc, #68]        ; 8468 <__libc_csu_init+0x60>- |& i* `  i' g4 a
    8420:        e59f3044         ldr        r3, [pc, #68]        ; 846c <__libc_csu_init+0x64>4 Q- ], T6 u# G# {3 _
    8424:        e59f2044         ldr        r2, [pc, #68]        ; 8470 <__libc_csu_init+0x68>
8 K  |" K* v$ g4 Q1 Q/ A    8428:        e0613003         rsb        r3, r1, r38 q  k; O; F( L; d$ r
    842c:        e08f2002         add        r2, pc, r2
5 e& h- q+ P, x# i5 ~1 z    8430:        e1b05143         asrs        r5, r3, #2# v0 x7 W5 }! I* v7 x
    8434:        e0822001         add        r2, r2, r14 n, |. I$ ^; P5 y4 ~" b
    8438:        08bd87f0         popeq        {r4, r5, r6, r7, r8, r9, sl, pc}% `: T. a' x# a( B/ t' H: K2 q
    843c:        e1a06002         mov        r6, r2* _; X% u7 S0 L* f6 ?' g
    8440:        e3a04000         mov        r4, #0        ; 0x0: O8 p9 n. u4 ~+ c
    8444:        e1a0000a         mov        r0, sl, j; T( A  D5 y
    8448:        e1a01008         mov        r1, r8* r6 e. w. I  B% m3 m/ O: a2 O
    844c:        e1a02007         mov        r2, r7: ]) G9 D) j/ j: H5 |
    8450:        e1a0e00f         mov        lr, pc
$ \; @6 J* J+ W3 ~2 O+ r4 a" t( H7 q    8454:        e796f104         ldr        pc, [r6, r4, lsl #2]4 v* T0 p6 M. S! h- C; W; g1 M% k, v
    8458:        e2844001         add        r4, r4, #1        ; 0x1( A/ Z7 ?4 g' Z9 b
    845c:        e1540005         cmp        r4, r5* j1 U+ Q8 |  ]. j1 d: p5 i1 G
    8460:        3afffff7         bcc        8444 <__libc_csu_init+0x3c>
) g) F& J' U& c0 l. E* q    8464:        e8bd87f0         pop        {r4, r5, r6, r7, r8, r9, sl, pc}
9 C1 x9 `/ z) L7 D    8468:        ffffff04         .word        0xffffff04
3 D  g( Z& u* t    846c:        ffffff08         .word        0xffffff08
: q% c$ {, _1 A, N" C. O, Z    8470:        0000819c         .word        0x0000819c: u2 _+ R+ Q; Q7 n9 K
arago:
! T4 M7 }- U- }( M( a6 e0000837c <__libc_csu_init>:
* c0 h9 o2 v% t3 c( |    837c:        e92d45f8         push        {r3, r4, r5, r6, r7, r8, sl, lr}; s/ g) F3 \3 W7 p3 P2 p8 j3 X
    8380:        e59fa04c         ldr        sl, [pc, #76]        ; 83d4 <__libc_csu_init+0x58>
7 W/ R" ~: |- c' C- d& g    8384:        e1a06000         mov        r6, r0
4 g: K/ q0 }% B9 o5 x6 L; M    8388:        e1a07001         mov        r7, r1
4 w  O- N5 b/ G( L: f1 b7 j    838c:        e1a08002         mov        r8, r2
' A9 w2 a8 ~* s) [    8390:        ebffffae         bl        8250 <_init>
" H" O* m$ w  k; y- W: ?7 U    8394:        e59f103c         ldr        r1, [pc, #60]        ; 83d8 <__libc_csu_init+0x5c>( t2 k4 ^, H3 B1 _  b; z- F6 u
    8398:        e08fa00a         add        sl, pc, sl! j- r9 u. }( A5 H7 S- I. j7 A* H
    839c:        e08f0001         add        r0, pc, r1
! c4 }% D" q; n5 d/ B# n2 Y1 R    83a0:        e06a5000         rsb        r5, sl, r0
0 g1 U: ^3 ~5 h# t, s9 j( I    83a4:        e1b05145         asrs        r5, r5, #2; \6 l0 i6 J0 X( q$ g2 o
    83a8:        08bd85f8         popeq        {r3, r4, r5, r6, r7, r8, sl, pc}
# b4 W2 Z# Q* n% y4 T) b    83ac:        e3a04000         mov        r4, #0
1 s2 j' J+ |( ^& w' {    83b0:        e79a3104         ldr        r3, [sl, r4, lsl #2]
; C" q! a5 g+ V0 R0 _: z4 K    83b4:        e1a00006         mov        r0, r6
7 B! Q" D- n. A) A( B5 O& r    83b8:        e1a01007         mov        r1, r72 J  T# |% `+ o& ^& h: ^8 B
    83bc:        e1a02008         mov        r2, r8
2 \) [3 Y. s; t; w* @6 X, c- E8 `    83c0:        e2844001         add        r4, r4, #1. y  a/ b5 }! M2 B% ]* v5 @, H
    83c4:        e12fff33         blx        r3
6 O4 X0 t* t( H    83c8:        e1540005         cmp        r4, r54 l. C9 P6 ]" ^7 X
    83cc:        3afffff7         bcc        83b0 <__libc_csu_init+0x34>/ m6 b) N# g- l$ M5 }, K
    83d0:        e8bd85f8         pop        {r3, r4, r5, r6, r7, r8, sl, pc}
7 g6 N' a: W$ z7 t: [6 q3 `3 \- b    83d4:        00008054         .word        0x00008054. p+ |( d+ \7 h: S
    83d8:        00008054         .word        0x00008054& L0 p% N! X: ~; O9 _' u( J% b. Y
none:
. F3 e6 [  Z8 Z" t# U' `9 vDisassembly of section .fini:. `& f1 P; o1 _1 y, U& v6 P& e

6 I; j* |  n0 C$ i5 k1 x1 c00008474 <_fini>:
4 I5 \) [9 Y  g1 g. [4 ^    8474:        e92d4010         push        {r4, lr}4 E9 f; z% f) u; e; k
    8478:        e8bd8010         pop        {r4, pc}
- V3 g! e! f6 `* uarago:6 @* t2 O2 {0 W' B% s
Disassembly of section .fini:
: ], q* b) x' n3 }* T  T
! a2 R' f1 [  G, w# ?8 J000083e0 <_fini>:1 y2 O1 O, o3 G+ B& I8 K, {- U& u: m
    83e0:        e92d4008         push        {r3, lr}
3 F2 }6 a# m* V/ _    83e4:        e8bd8008         pop        {r3, pc}+ K, o. ?% c" i6 g% y
) T$ b/ x9 n% b9 A( C& v6 W0 A: q

, ]( P: f6 [; \! R( c! W2 ~2 a  ^
" S; D9 D4 X/ V6 t+ L
回复 支持 反对

使用道具 举报

0

主题

113

帖子

2145

积分

创龙

Rank: 8Rank: 8

积分
2145
6#
发表于 2016-6-21 16:35:00 | 只看该作者
粗看是使用的寄存器有点不同。
, i, W$ d& }% ^1 V; k- K; U我觉得这个基本程序代码的汇编差异不会有什么结果上的影响。/ Y4 ?8 Z- \( J
关键可能在于对于 TI 本身提供的一些特性,arago 针对其进行优化,这类的影响才会比较大吧。
回复 支持 反对

使用道具 举报

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

本版积分规则


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

GMT+8, 2026-1-12 02:09 , Processed in 0.049989 second(s), 26 queries .

Powered by Discuz! X3.2

© 2001-2015 Comsenz Inc.

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