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

嵌入式开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

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

交叉编译器 疑问

[复制链接]

1

主题

3

帖子

1039

积分

金牌会员

Rank: 6Rank: 6

积分
1039
跳转到指定楼层
楼主
发表于 2016-6-4 20:49:35 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
在工具目录下 有两个交叉编译工具
* ]# d' Z* D; ]9 E: r: i$ @arago-2011.09-armv5te-linux-gnueabi-sdk
% k3 q! B3 v7 u9 M$ g. iarm-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu
5 E! Y! V  O# _; R- ?这两个 交叉编译 工具 有什么区别  
; E5 T8 |9 G  H+ M8 P$ Y; J  @
4 d( M- i6 {5 P6 b  u' {7 M1 W( b& `' Y, ?3 i& b
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖
回复

使用道具 举报

0

主题

113

帖子

2134

积分

创龙

Rank: 8Rank: 8

积分
2134
推荐
发表于 2016-6-8 17:03:19 | 只看该作者
arago 对 TI 的支持应该更好
+ E8 N* G$ K. \$ phttp://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( ^9 ~4 }$ K% D! I6 b. W' _9 G
arago 对 TI 的支持应该更好( ]+ {; S# G3 ]( [8 Z" G; _9 S6 L- a
http://arago-project.org/wiki/index.php/Main_Page
6 f2 |9 C- l5 F9 m; K( {! p- ]# L
的确 文章里说 支持和更新 都优先支持 arago , 在实际编译出来输出文件 不知道有没有什么 优化。
回复 支持 反对

使用道具 举报

1

主题

3

帖子

1039

积分

金牌会员

Rank: 6Rank: 6

积分
1039
5#
 楼主| 发表于 2016-6-9 23:03:48 | 只看该作者
源码:. T& Q3 e0 [* G" K0 x+ p
  1 #include<stdio.h>                                                           
, K! n- T% y5 Z) o+ _3 L( O" |/ m  2 #include<math.h>& C1 q! r" Y+ f3 J. G' Y& v8 G: U. C
  3 int main(int argc,char* argv[])
) \+ T1 a. R6 k5 {. Y% D  4 {
  @; u( g+ L6 w8 F( O7 c/ N# Z  5     int a,b,c;
; ^2 c* [; X' j5 V' `3 u) t/ u  6     c = a * b;
) i2 T  q3 s9 j8 e' K8 L6 T  7     return 0;
4 i- C; o9 P9 x% y8 j  8 }
" w4 a3 H" e0 W$ s/ a
$ g! U" s9 B8 B/ ?' f2 v下面是两个编译器 编译出来的差异  差异好像不是很大  arm汇编不是很熟悉 大家看看
) o, |3 s3 ^# R5 ^( f6 ^none:& |" _+ z& W& S/ |! J( N2 g
000082e0 <_init>:. D. d% A2 y9 Q( L- Z3 K4 a# O) ~
    82e0:        e92d4010         push        {r4, lr}
+ j! H/ v# g0 c1 p$ o: Z/ T3 F    82e4:        eb00001c         bl        835c <call_gmon_start>
0 M$ z, `1 ~2 w/ j    82e8:        e8bd8010         pop        {r4, pc}4 F% f7 `3 T9 P% i- x5 b9 a
arago:* U: M. Q& n8 Z3 j& s7 [" q
00008250 <_init>:
6 |# p9 }: |) p    8250:        e92d4008         push        {r3, lr}
& q# ^4 n9 Y- y    8254:        eb00001d         bl        82d0 <call_gmon_start>" }" a1 l% C! g6 N9 a
    8258:        e8bd8008         pop        {r3, pc}
" L0 ?  t& O" Z9 k4 B2 u0 B- R8 a  T* M5 f2 p
none:; V  I% @% G7 C/ f+ K
000082ec <.plt>:0 n+ Q; h, L/ X
    82ec:        e52de004         push        {lr}                ; (str lr, [sp, #-4]!)+ V8 V4 g. ]  g8 D
    82f0:        e59fe004         ldr        lr, [pc, #4]        ; 82fc <_init+0x1c>
* U3 X  ?5 s" t0 `* n: ?6 b    82f4:        e08fe00e         add        lr, pc, lr4 O, P6 W; q+ F: e5 I2 _3 p" \
    82f8:        e5bef008         ldr        pc, [lr, #8]!( _2 m( [8 n/ w/ ~4 h
    82fc:        000082d4         .word        0x000082d42 J4 q1 e: _" e- t/ d+ @0 h
    8300:        e28fc600         add        ip, pc, #0        ; 0x00 |1 M9 h8 j8 G; F& l5 v) J
    8304:        e28cca08         add        ip, ip, #32768        ; 0x8000
9 K: y  u6 E4 y* Q( ]+ m6 B* c    8308:        e5bcf2d4         ldr        pc, [ip, #724]!; ^2 B+ R: t6 I5 j: q3 P
    830c:        e28fc600         add        ip, pc, #0        ; 0x0
; w7 p. r6 k' r" o1 H# f9 o    8310:        e28cca08         add        ip, ip, #32768        ; 0x80007 u7 a' S% ?7 M0 f3 ?0 [, c4 A9 b+ N
    8314:        e5bcf2cc         ldr        pc, [ip, #716]!
4 a$ W* o2 L' u# S    8318:        e28fc600         add        ip, pc, #0        ; 0x0
# x' Q3 h' B% |# w  C/ V    831c:        e28cca08         add        ip, ip, #32768        ; 0x8000% L# D5 D4 l7 B1 I& O$ i1 K
    8320:        e5bcf2c4         ldr        pc, [ip, #708]!& m6 m& [5 [& j+ k: Q
arago:* P$ x; p6 U1 T8 a
0000825c <.plt>:5 h, l; G% w7 c
    825c:        e52de004         push        {lr}                ; (str lr, [sp, #-4]!)* r5 [  A$ }: p! G7 h
    8260:        e59fe004         ldr        lr, [pc, #4]        ; 826c <_init+0x1c>  S2 `6 O8 p! n9 B
    8264:        e08fe00e         add        lr, pc, lr3 A4 f5 w4 u. r+ t1 `
    8268:        e5bef008         ldr        pc, [lr, #8]!7 O) Q  ]% v: n' ?; \2 C4 ]
    826c:        0000827c         .word        0x0000827c& l8 c. b0 ^6 O" i- A/ n/ K7 L
    8270:        e28fc600         add        ip, pc, #0
) |2 W$ v+ n  I, R8 P' K8 J9 T3 O    8274:        e28cca08         add        ip, ip, #32768        ; 0x8000
& G% [) n. }3 E9 B* K' n5 s3 g    8278:        e5bcf27c         ldr        pc, [ip, #636]!        ; 0x27c. F2 A9 v6 z6 [
    827c:        e28fc600         add        ip, pc, #09 `6 s: ~, e, M# E
    8280:        e28cca08         add        ip, ip, #32768        ; 0x8000
2 l. ~0 f2 {3 [# {    8284:        e5bcf274         ldr        pc, [ip, #628]!        ; 0x274
) t- b+ @/ ?% ^# [1 c    8288:        e28fc600         add        ip, pc, #0$ W0 y) T& a5 R: k- Q9 w
    828c:        e28cca08         add        ip, ip, #32768        ; 0x8000
- a' m5 Y. S5 ?: B    8290:        e5bcf26c         ldr        pc, [ip, #620]!        ; 0x26c
  _* f+ ]: C& S- s5 Jnone:
. {6 x" H, h5 V- r* p00008324 <_start>:
/ K1 X9 D; h" ~+ `- G    8324:        e59fc024         ldr        ip, [pc, #36]        ; 8350 <_start+0x2c>) o7 t, Q6 c& E6 ~% d: b% y
    8328:        e3a0b000         mov        fp, #0        ; 0x0- L0 G, V$ x  E3 ?
    832c:        e49d1004         pop        {r1}                ; (ldr r1, [sp], #4)
) T8 S" g. P( h: g( O+ O! h# h    8330:        e1a0200d         mov        r2, sp6 g( y5 y! ^/ N( d  O
    8334:        e52d2004         push        {r2}                ; (str r2, [sp, #-4]!)# j) L/ r) q; g+ `# C
    8338:        e52d0004         push        {r0}                ; (str r0, [sp, #-4]!)
2 d+ ?, c6 |+ D; F" z    833c:        e59f0010         ldr        r0, [pc, #16]        ; 8354 <_start+0x30>
2 V3 m1 y5 J9 P: ]$ x9 J    8340:        e59f3010         ldr        r3, [pc, #16]        ; 8358 <_start+0x34>
# w; U: ]% `  R8 o    8344:        e52dc004         push        {ip}                ; (str ip, [sp, #-4]!)
* f" B6 T6 V* J$ Z# n. V/ |* j    8348:        ebffffef         bl        830c <_init+0x2c>
1 e: f: F0 N  q1 X( `- Y    834c:        ebffffeb         bl        8300 <_init+0x20>  `  \3 e$ q  N$ d$ J
    8350:        00008404         .word        0x00008404
7 s, K8 ^" B% t/ l; {* i! y    8354:        000083cc         .word        0x000083cc
2 y% N( I+ [4 B% R1 O6 u    8358:        00008408         .word        0x00008408% R$ j4 h. t6 A" R6 S, n
arago:
/ f3 q0 R2 d  T7 A. K- J# h6 \00008294 <_start>:' [& E; A& e2 }) y. j
    8294:        e3a0b000         mov        fp, #06 S" T9 d# V4 v, g
    8298:        e3a0e000         mov        lr, #0
$ A$ M" a- C' e) b) f) h* Y- O    829c:        e49d1004         pop        {r1}                ; (ldr r1, [sp], #4)2 }' K7 Q5 z0 ?( M
    82a0:        e1a0200d         mov        r2, sp
, q" N9 B1 B7 k) r# X" N. h, {    82a4:        e52d2004         push        {r2}                ; (str r2, [sp, #-4]!)' \& o, U$ A& _$ w  d
    82a8:        e52d0004         push        {r0}                ; (str r0, [sp, #-4]!)8 P1 R1 j9 t9 |- b. b% M" W
    82ac:        e59fc010         ldr        ip, [pc, #16]        ; 82c4 <_start+0x30>: B+ C% X# b' h& w0 h
    82b0:        e52dc004         push        {ip}                ; (str ip, [sp, #-4]!)7 v& g3 L- W  ?5 m) l; @. Q0 B
    82b4:        e59f000c         ldr        r0, [pc, #12]        ; 82c8 <_start+0x34>5 f/ H6 T  v5 b
    82b8:        e59f300c         ldr        r3, [pc, #12]        ; 82cc <_start+0x38>
  y$ Q7 O2 }$ I8 |    82bc:        ebffffee         bl        827c <_init+0x2c>8 B+ h7 O: a% Y% G, o
    82c0:        ebffffea         bl        8270 <_init+0x20>3 j. T1 |2 d1 V, ]$ W4 [2 \; n
    82c4:        000083dc         .word        0x000083dc
% g/ E8 G9 N. D2 a    82c8:        00008344         .word        0x00008344
* z( f4 s4 v9 l4 K3 e/ l% {' J    82cc:        0000837c         .word        0x0000837c
- K' F/ d7 Q. b+ m7 G  y. ^none:9 ~- d; b* M* t: D: }4 w: z3 ~2 W
0000835c <call_gmon_start>:: z; b& z$ a* k
    835c:        e59f3014         ldr        r3, [pc, #20]        ; 8378 <call_gmon_start+0x1c>
8 t! N, n+ s8 P7 G    8360:        e59f2014         ldr        r2, [pc, #20]        ; 837c <call_gmon_start+0x20>
+ U' `" m( l8 i0 B* F0 p    8364:        e08f3003         add        r3, pc, r3+ v! N. F5 h, t; R. q
    8368:        e7931002         ldr        r1, [r3, r2]% e! u4 i5 |0 m( k3 W" o
    836c:        e3510000         cmp        r1, #0        ; 0x0
; U  n, U) f' h6 {    8370:        012fff1e         bxeq        lr
2 a3 w& W6 @% W4 g& b    8374:        eaffffe7         b        8318 <_init+0x38>
. W  B# w, w! T! R1 p    8378:        00008264         .word        0x00008264  ]0 d& b8 W1 \4 I1 k2 u* o2 m
    837c:        00000018         .word        0x00000018
: O6 _; U1 }3 ]1 n1 farago:
7 w( f. B0 K% [/ |( r000082d0 <call_gmon_start>:/ U9 o$ ]1 ?/ {. @! H5 D5 a: o
    82d0:        e59f3014         ldr        r3, [pc, #20]        ; 82ec <call_gmon_start+0x1c>
9 o* Y( F( ]7 U    82d4:        e59f0014         ldr        r0, [pc, #20]        ; 82f0 <call_gmon_start+0x20>+ o% U/ h! t4 O9 x- t
    82d8:        e08f3003         add        r3, pc, r3. Z; A" c! q5 ^  {3 Y: @
    82dc:        e7932000         ldr        r2, [r3, r0]
( i& g' Y/ d+ a+ ?% I    82e0:        e3520000         cmp        r2, #0( \/ k$ L& s$ r2 ]7 [5 N; \
    82e4:        012fff1e         bxeq        lr- K! R- b& V6 A+ C& P
    82e8:        eaffffe6         b        8288 <_init+0x38>
3 E# [& G+ e$ z4 A% S    82ec:        00008208         .word        0x00008208
. n3 D/ Q% v7 ]    82f0:        00000018         .word        0x00000018( \/ ^1 H" F9 C' t" W  ~: p5 m5 F
none:
; D% h; u( P8 T1 f00008380 <__do_global_dtors_aux>:
1 o- V# J# Q8 @/ t    8380:        e59f2010         ldr        r2, [pc, #16]        ; 8398 <__do_global_dtors_aux+0x18>* t0 V5 |4 k7 I3 V0 Z9 p  ?
    8384:        e5d23000         ldrb        r3, [r2]: j$ F, T9 _* A: \/ y$ C. j
    8388:        e3530000         cmp        r3, #0        ; 0x0" o" h7 e% l/ u  R& u( i8 M- Z
    838c:        03a03001         moveq        r3, #1        ; 0x14 @4 P2 p' V# s, V+ U% j
    8390:        05c23000         strbeq        r3, [r2]
) T$ [( @( X. p# S! \    8394:        e12fff1e         bx        lr" j2 h6 G. B& n/ S" l
    8398:        000105f4         .word        0x000105f4' }. `6 S0 V, f7 }
arago:
$ N5 Z8 v! o# v) l8 N9 [( A) T000082f4 <__do_global_dtors_aux>:2 Y8 j" i7 f. {1 v8 [# e# g: c
    82f4:        e59f3010         ldr        r3, [pc, #16]        ; 830c <__do_global_dtors_aux+0x18>
8 n' b' ]; D) }" T# a5 U5 u    82f8:        e5d32000         ldrb        r2, [r3]1 l6 r% s# I" V6 X
    82fc:        e3520000         cmp        r2, #0+ C0 M, J3 H2 W2 ?6 r9 b% s) b
    8300:        02822001         addeq        r2, r2, #1' X8 X1 j5 ]; H6 M8 A/ P% m$ G) v
    8304:        05c32000         strbeq        r2, [r3]' \+ C1 _! R7 E9 y: z
    8308:        e12fff1e         bx        lr$ \" }6 s0 _& V9 q7 `! h
    830c:        0001050c         .word        0x0001050c
/ A' w3 Z- i$ M$ y- Gnone:/ d3 _; z( H% Z1 a- G/ D
0000839c <frame_dummy>:$ T( e5 I3 k0 n+ z
    839c:        e59f0020         ldr        r0, [pc, #32]        ; 83c4 <frame_dummy+0x28>( @" R- B" T4 V  c) m; V, K
    83a0:        e92d4010         push        {r4, lr}
$ H* F' x. ~7 r8 q7 n    83a4:        e5903000         ldr        r3, [r0]0 G" F+ ~+ ~0 a# t8 Q
    83a8:        e3530000         cmp        r3, #0        ; 0x0: @: {9 A3 O+ A3 D
    83ac:        08bd8010         popeq        {r4, pc}$ T8 r7 i# {" h9 S" @# Y7 n6 l! T
    83b0:        e59f3010         ldr        r3, [pc, #16]        ; 83c8 <frame_dummy+0x2c>
2 F& \6 D5 f" S' E( R    83b4:        e3530000         cmp        r3, #0        ; 0x0
$ z- I9 G' I9 Q, q! \  y( V    83b8:        08bd8010         popeq        {r4, pc}
2 c- d, T1 r! f% u" [5 Z1 _6 ~    83bc:        e12fff33         blx        r3- _  K  \, c- P1 z( K# ?  b* R; |
    83c0:        e8bd8010         pop        {r4, pc}3 |" \1 I3 P; t* x  \& [
    83c4:        000104dc         .word        0x000104dc5 A& C6 q& n" h  W1 d
    83c8:        00000000         .word        0x000000006 C- O2 }- M8 ?/ C. G
arago:
# H. u4 U0 Z7 v8 P00008310 <frame_dummy>:! L' o8 T2 Q9 Z) Z$ ?; x) C
    8310:        e59f0024         ldr        r0, [pc, #36]        ; 833c <frame_dummy+0x2c>
' o  T/ B5 |: q% M2 W* C    8314:        e92d4008         push        {r3, lr}4 o8 s  A' O3 k+ ^# y- L( g2 U
    8318:        e5903000         ldr        r3, [r0]
7 L2 i) `" M5 n  i% E    831c:        e3530000         cmp        r3, #0% J: T) d8 ?/ V7 N
    8320:        0a000003         beq        8334 <frame_dummy+0x24>* s8 H5 Y* `4 Z6 p
    8324:        e59f3014         ldr        r3, [pc, #20]        ; 8340 <frame_dummy+0x30>0 h* U  ]* |3 x* f
    8328:        e3530000         cmp        r3, #0
7 R3 ]/ p6 G+ k( G; w* h  @    832c:        11a0e00f         movne        lr, pc* h7 O" p- H7 n7 e* U9 [. ]0 Z
    8330:        112fff13         bxne        r3
# {- R& a7 f" i& U/ N! `& j+ U    8334:        e8bd4008         pop        {r3, lr}
8 s4 i# _$ M  i+ o2 u0 M$ _* W    8338:        e12fff1e         bx        lr
+ r! }/ L6 \% ?* l    833c:        000103fc         .word        0x000103fc
( }* K. W  [! N& i: e. b+ i    8340:        00000000         .word        0x00000000
9 L( ?2 c! U; a# n' tnone:
* I8 q0 F; E( f" S000083cc <main>:( Z2 S0 T4 Z. L& u9 s, T: O
    83cc:        e52db004         push        {fp}                ; (str fp, [sp, #-4]!)
1 w) W/ I) v* m# T    83d0:        e28db000         add        fp, sp, #0        ; 0x0
) C& \2 F% u- J, ]    83d4:        e24dd01c         sub        sp, sp, #28        ; 0x1c+ T( X  W/ i) d6 l8 v# @
    83d8:        e50b0018         str        r0, [fp, #-24]9 q, k  ~% I2 V" W
    83dc:        e50b101c         str        r1, [fp, #-28]8 }4 z7 Y( k" A# p
    83e0:        e51b2010         ldr        r2, [fp, #-16]) {7 I( {) d* Q1 V/ _" C: |% R
    83e4:        e51b300c         ldr        r3, [fp, #-12]  o1 A2 ~9 Q( B
    83e8:        e0030392         mul        r3, r2, r3& z. F/ `6 p9 q9 a8 x0 h
    83ec:        e50b3008         str        r3, [fp, #-8]
" U, d7 ]" x- x7 @8 N    83f0:        e3a03000         mov        r3, #0        ; 0x0: b$ K$ z9 w* k! n
    83f4:        e1a00003         mov        r0, r3& e7 y3 e- o5 ~4 G+ S7 d7 S
    83f8:        e28bd000         add        sp, fp, #0        ; 0x0
1 ~& K/ Y. v  ?: U+ l- ~! Z    83fc:        e8bd0800         pop        {fp}7 |) b* |5 r5 _
    8400:        e12fff1e         bx        lr
$ {0 H8 R% g% D( Garago:
. Q, N" k* E% g! {) A* }00008344 <main>:
- ]) L4 H9 ?. W1 i    8344:        e52db004         push        {fp}                ; (str fp, [sp, #-4]!)
$ x( l8 j3 K8 Y) ^- G* r  k    8348:        e28db000         add        fp, sp, #03 P! J" Q* d& \. l) n- d
    834c:        e24dd01c         sub        sp, sp, #28& t/ l# @8 z5 J
    8350:        e50b0018         str        r0, [fp, #-24]
& T' D" s$ \" e, C- u9 A. x! X0 F    8354:        e50b101c         str        r1, [fp, #-28]
' j3 j( |' l& \8 x/ @    8358:        e51b3008         ldr        r3, [fp, #-8]+ N. \/ m( m# m, J
    835c:        e51b200c         ldr        r2, [fp, #-12]9 r3 }8 A0 b$ o6 T7 d+ [! ]
    8360:        e0030392         mul        r3, r2, r3
) g9 M" y: U- p! s; P7 A5 [    8364:        e50b3010         str        r3, [fp, #-16]: t2 D0 ?6 {  U6 |2 j
    8368:        e3a03000         mov        r3, #0
$ b) @7 i6 o8 _7 x    836c:        e1a00003         mov        r0, r3
0 F  Y2 u& V$ _+ P2 `. ^    8370:        e28bd000         add        sp, fp, #0
7 U# ]( ?1 ~* m7 ^$ S9 N    8374:        e8bd0800         pop        {fp}$ R4 o0 t7 X2 K! k
    8378:        e12fff1e         bx        lr# t: N8 e2 b9 {
none:8 q5 U) F) r9 ]/ g
00008404 <__libc_csu_fini>:  W, @0 d5 m2 x  G
    8404:        e12fff1e         bx        lr/ b6 e4 Y* c. w
arago:9 H6 D; {0 R3 u8 z/ q- V& F* A
000083dc <__libc_csu_fini>:, ~( X1 k( W! q( ]1 e' p6 s; K
    83dc:        e12fff1e         bx        lr; T! r4 j0 X) j/ C
none:
% V9 d3 m7 H0 w! X+ N1 V. Y7 E" T00008408 <__libc_csu_init>:
4 G( h1 l# C3 q3 K6 o- u. n1 k+ V    8408:        e92d47f0         push        {r4, r5, r6, r7, r8, r9, sl, lr}+ `( m7 C4 |2 E; X2 h
    840c:        e1a08001         mov        r8, r1/ V! H! H4 h  r
    8410:        e1a07002         mov        r7, r2
& I4 T, |! r. \. o0 V    8414:        e1a0a000         mov        sl, r0# _, ?/ U6 s- V/ X- V
    8418:        ebffffb0         bl        82e0 <_init>
0 |$ x) k- J- Y8 D: p    841c:        e59f1044         ldr        r1, [pc, #68]        ; 8468 <__libc_csu_init+0x60>
! {* i2 S5 u* E: b; E    8420:        e59f3044         ldr        r3, [pc, #68]        ; 846c <__libc_csu_init+0x64>2 {$ F7 H- s1 o3 h( N: v
    8424:        e59f2044         ldr        r2, [pc, #68]        ; 8470 <__libc_csu_init+0x68>) b2 b9 R5 N" Y# J2 h: u
    8428:        e0613003         rsb        r3, r1, r3
7 C7 ?: e: X6 G    842c:        e08f2002         add        r2, pc, r2: I% b5 B0 v9 s+ T, O
    8430:        e1b05143         asrs        r5, r3, #26 C+ I( L. I" F/ v7 _' e
    8434:        e0822001         add        r2, r2, r1
1 V  s' v4 _: X5 y( c( P  F    8438:        08bd87f0         popeq        {r4, r5, r6, r7, r8, r9, sl, pc}
8 r/ N1 P2 G: Y5 Q  p7 u  o    843c:        e1a06002         mov        r6, r26 V  O7 N% d) p  X
    8440:        e3a04000         mov        r4, #0        ; 0x0
1 U' H$ P+ N6 p! `1 Q7 t    8444:        e1a0000a         mov        r0, sl; i2 z7 D) B( U6 G; [
    8448:        e1a01008         mov        r1, r8
% L& x. j. Y4 T, R    844c:        e1a02007         mov        r2, r79 l" k3 b' l: {' J9 o
    8450:        e1a0e00f         mov        lr, pc% |1 D! j& c$ g( P
    8454:        e796f104         ldr        pc, [r6, r4, lsl #2]
1 Q7 s" a; d1 C* Z! k    8458:        e2844001         add        r4, r4, #1        ; 0x10 A# z2 c+ L" D3 z/ n+ m- f, |
    845c:        e1540005         cmp        r4, r5
+ X* h/ J+ F% Q3 R- T; z    8460:        3afffff7         bcc        8444 <__libc_csu_init+0x3c>
$ `3 [1 O( K- u  ], }# s: B$ k    8464:        e8bd87f0         pop        {r4, r5, r6, r7, r8, r9, sl, pc}
8 M2 o& D9 q& D, E: S0 c    8468:        ffffff04         .word        0xffffff04
; }8 Y! N/ M; q0 G+ v& [    846c:        ffffff08         .word        0xffffff08
5 f* _5 W/ r9 o1 |    8470:        0000819c         .word        0x0000819c- U$ E; J3 m3 O+ _* n
arago:
. A. e1 i; H% m$ i7 m0000837c <__libc_csu_init>:
( f* O1 c# K, s    837c:        e92d45f8         push        {r3, r4, r5, r6, r7, r8, sl, lr}
4 _. ^4 d# P) I0 F    8380:        e59fa04c         ldr        sl, [pc, #76]        ; 83d4 <__libc_csu_init+0x58>
$ P9 G! I3 L1 r4 Y9 V& I: E    8384:        e1a06000         mov        r6, r0; E6 `) q! W( L: o2 {& A% T" J4 v2 |
    8388:        e1a07001         mov        r7, r1& ~+ t) m  N6 \
    838c:        e1a08002         mov        r8, r2  V6 Y- b8 q' s; c2 ]
    8390:        ebffffae         bl        8250 <_init>& G5 {6 X  f. r2 w  F; H" s
    8394:        e59f103c         ldr        r1, [pc, #60]        ; 83d8 <__libc_csu_init+0x5c>
' Z( W/ W$ n# C, z    8398:        e08fa00a         add        sl, pc, sl/ \5 e+ L! N0 K/ R9 Z! g4 J4 t
    839c:        e08f0001         add        r0, pc, r1. M9 K  X' h# \: l, ~  r- I( I
    83a0:        e06a5000         rsb        r5, sl, r0
- w4 P) ]" A; r5 V( {, Z    83a4:        e1b05145         asrs        r5, r5, #2- }% A- F7 \& w3 b9 t+ h
    83a8:        08bd85f8         popeq        {r3, r4, r5, r6, r7, r8, sl, pc}+ T; t$ R0 a! T1 U4 I4 @% l
    83ac:        e3a04000         mov        r4, #08 j* T  f  |1 m5 T' V, z9 {
    83b0:        e79a3104         ldr        r3, [sl, r4, lsl #2]4 e* {+ B4 B" P* _
    83b4:        e1a00006         mov        r0, r6
1 {" ^9 `6 Q. T# B/ p/ E  A    83b8:        e1a01007         mov        r1, r7
/ I/ C! y& F. }" L- X8 _2 m    83bc:        e1a02008         mov        r2, r8# w& E, W, D9 W1 Y0 |8 ]" q  y5 l! c
    83c0:        e2844001         add        r4, r4, #1
, R7 S) `6 R) W# k8 n% {7 _    83c4:        e12fff33         blx        r3
3 V+ A5 R, F4 H( }8 f# g    83c8:        e1540005         cmp        r4, r59 c* O6 I0 ?4 @, O. g0 E; R
    83cc:        3afffff7         bcc        83b0 <__libc_csu_init+0x34>, l, a' F5 B. T
    83d0:        e8bd85f8         pop        {r3, r4, r5, r6, r7, r8, sl, pc}
+ y8 B& Q! C- K- R' Y; q    83d4:        00008054         .word        0x000080541 \! X* Z$ T3 D  @7 ^- n
    83d8:        00008054         .word        0x00008054
0 j" f) [; K( I0 N" U- o* ]none:
$ b  c' p' y- iDisassembly of section .fini:+ G8 w6 A# Q- C) d
# U3 [! b3 v! R& [
00008474 <_fini>:
* u' s- t% S/ a0 e' x    8474:        e92d4010         push        {r4, lr}
8 h3 O1 F" \$ y    8478:        e8bd8010         pop        {r4, pc}$ k# o8 T; D/ `' ~  ^# u! W  H, b
arago:  t! S" Y4 B+ I9 G& s% ?
Disassembly of section .fini:4 Q3 N  q. d; d( ?" n3 H6 z
3 q/ Y7 B# E  d$ I/ G
000083e0 <_fini>:$ ]' `' {% z  f* ^
    83e0:        e92d4008         push        {r3, lr}
% t0 ?' q5 t) B1 P0 J. k4 }% U% N    83e4:        e8bd8008         pop        {r3, pc}
0 L1 ~6 D* j+ y3 i6 ^0 o  ^! I) k* I1 ]9 I! U
* `) Y, [4 o, T9 e
, p% N5 @0 _$ y. C; j
回复 支持 反对

使用道具 举报

0

主题

113

帖子

2134

积分

创龙

Rank: 8Rank: 8

积分
2134
6#
发表于 2016-6-21 16:35:00 | 只看该作者
粗看是使用的寄存器有点不同。) C' s  F& ?; q3 A
我觉得这个基本程序代码的汇编差异不会有什么结果上的影响。
6 S! c) c  F; D关键可能在于对于 TI 本身提供的一些特性,arago 针对其进行优化,这类的影响才会比较大吧。
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-11-27 09:02 , Processed in 0.053019 second(s), 25 queries .

Powered by Discuz! X3.2

© 2001-2015 Comsenz Inc.

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