交叉编译器 疑问 - OMAP-L138 - 嵌入式开发者社区 - 51ele.net
设为首页收藏本站
点击跳转“创龙科技服务通”

嵌入式开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

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

交叉编译器 疑问

[复制链接]

1

主题

3

帖子

1039

积分

金牌会员

Rank: 6Rank: 6

积分
1039
跳转到指定楼层
楼主
发表于 2016-6-4 20:49:35 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
在工具目录下 有两个交叉编译工具
) B' c/ z  @0 J3 zarago-2011.09-armv5te-linux-gnueabi-sdk
/ L3 i) S; y  B5 p7 n8 l. Earm-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu/ l" y9 S: L% z( ^! U4 i4 J
这两个 交叉编译 工具 有什么区别  1 Z& a3 l7 w% C0 a6 T7 E
! M# Y6 ?' r# E1 e" S; F) M

5 u9 M3 K; V6 ]( |  u* f
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖
回复

使用道具 举报

0

主题

113

帖子

2183

积分

创龙

Rank: 8Rank: 8

积分
2183
推荐
发表于 2016-6-8 17:03:19 | 只看该作者
arago 对 TI 的支持应该更好
; ?& f( r( Y0 G$ o3 j4 _/ ?8 _3 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:03
* `& W* V" O$ `) larago 对 TI 的支持应该更好9 `3 V  J7 T0 @* D) @( z) v
http://arago-project.org/wiki/index.php/Main_Page
4 P! r: p" J& h0 [4 d" B
的确 文章里说 支持和更新 都优先支持 arago , 在实际编译出来输出文件 不知道有没有什么 优化。
回复 支持 反对

使用道具 举报

1

主题

3

帖子

1039

积分

金牌会员

Rank: 6Rank: 6

积分
1039
5#
 楼主| 发表于 2016-6-9 23:03:48 | 只看该作者
源码:
" x5 O) D* z7 j7 z' r. i8 J  b  1 #include<stdio.h>                                                           
. ^5 u, I  T; h' l0 ?1 t  2 #include<math.h>
( ?4 t8 X9 H: `/ D$ L: m  3 int main(int argc,char* argv[])
/ B1 a) t0 C& L7 r  4 {
5 _/ b% L% B& v8 z& w! a  a  5     int a,b,c;
) Y7 v1 c2 E' t$ m: B+ v* j+ G  6     c = a * b;# d) _& W$ @% u+ f- M# R
  7     return 0;7 f6 b: b5 o8 q1 }8 i2 e: c/ i
  8 }
' N1 d1 _# |: t" Z3 w) \! o# L% o& W  H+ ]! D& U1 A5 _- E
下面是两个编译器 编译出来的差异  差异好像不是很大  arm汇编不是很熟悉 大家看看
" A4 ^* a% u# M* }1 m1 I* |none:
; q0 H4 q  r# Y" G7 |000082e0 <_init>:( A5 {% H- X1 j4 \, ~- c8 H9 W$ e
    82e0:        e92d4010         push        {r4, lr}
% S, [( D8 Y; M( e; u    82e4:        eb00001c         bl        835c <call_gmon_start>$ R  J9 A9 [# c1 }  b5 J7 v
    82e8:        e8bd8010         pop        {r4, pc}
' {& ?2 f8 `. M+ P; f, Q  Carago:
- p& J; A+ G2 I0 F* g00008250 <_init>:# r- `) k  n# E7 A* o) q
    8250:        e92d4008         push        {r3, lr}
6 ?  x1 c$ |2 H1 p    8254:        eb00001d         bl        82d0 <call_gmon_start>- C: |) G4 c1 h
    8258:        e8bd8008         pop        {r3, pc}8 n# W3 h8 Y) w  @# @2 z8 M" W
* z/ c  F) K; D1 R3 E
none:
7 {, K' B- _; I5 ]) R& V000082ec <.plt>:
* ^$ Y) _+ ]5 ?    82ec:        e52de004         push        {lr}                ; (str lr, [sp, #-4]!)
. F" a- l% k/ o; L1 Y    82f0:        e59fe004         ldr        lr, [pc, #4]        ; 82fc <_init+0x1c>+ F- F; x# x; g; O  p
    82f4:        e08fe00e         add        lr, pc, lr
0 p& H" e- u/ Y3 m- Q/ R" P    82f8:        e5bef008         ldr        pc, [lr, #8]!
4 g+ T! C* q3 `    82fc:        000082d4         .word        0x000082d4
& o- B2 H; C. M' P6 M    8300:        e28fc600         add        ip, pc, #0        ; 0x00 V7 A' m- E% t0 ?2 d( q; p
    8304:        e28cca08         add        ip, ip, #32768        ; 0x8000
; P/ g6 p3 w% G* N  A    8308:        e5bcf2d4         ldr        pc, [ip, #724]!1 T9 `/ _. I6 u
    830c:        e28fc600         add        ip, pc, #0        ; 0x02 e0 d& o; Y% M0 ?. q' A" J
    8310:        e28cca08         add        ip, ip, #32768        ; 0x8000
5 Y0 w8 V2 w- S8 j6 ?    8314:        e5bcf2cc         ldr        pc, [ip, #716]!1 n- o8 J  U' q: q3 {3 t5 w/ ]8 {
    8318:        e28fc600         add        ip, pc, #0        ; 0x0- C) N; r& B6 M! @9 j5 k
    831c:        e28cca08         add        ip, ip, #32768        ; 0x8000
3 g  Q6 x7 p8 u) R    8320:        e5bcf2c4         ldr        pc, [ip, #708]!
) l. ]- a- A, B2 ], x- d5 k5 Parago:- A8 d( \" T6 ^' q+ k
0000825c <.plt>:
; v! H8 D) _! _& C    825c:        e52de004         push        {lr}                ; (str lr, [sp, #-4]!)
! o1 j2 C+ ?$ `    8260:        e59fe004         ldr        lr, [pc, #4]        ; 826c <_init+0x1c>* m, a, ]4 U+ B4 B
    8264:        e08fe00e         add        lr, pc, lr
" i" ?' P" B9 B! m' {9 g    8268:        e5bef008         ldr        pc, [lr, #8]!# P$ c' K$ K9 P* k! G1 s, N" I6 ~
    826c:        0000827c         .word        0x0000827c
' K" n# j  {6 v4 u0 C; _& b+ }    8270:        e28fc600         add        ip, pc, #0. }" T- y, Q  [9 \6 B
    8274:        e28cca08         add        ip, ip, #32768        ; 0x8000
& C+ f) T& X& j$ D' t8 v# t6 \    8278:        e5bcf27c         ldr        pc, [ip, #636]!        ; 0x27c
8 x# w  B3 ]% ]. S  X& Q4 g9 q, F    827c:        e28fc600         add        ip, pc, #02 t# K6 \3 d# X1 D7 p/ f; M
    8280:        e28cca08         add        ip, ip, #32768        ; 0x80008 [' t# Q( G+ \
    8284:        e5bcf274         ldr        pc, [ip, #628]!        ; 0x274
, {2 a5 y- b: o& M+ i3 O    8288:        e28fc600         add        ip, pc, #0/ F7 H% [7 F9 }) G
    828c:        e28cca08         add        ip, ip, #32768        ; 0x8000+ P2 C, `* ~; e1 @, c; ?
    8290:        e5bcf26c         ldr        pc, [ip, #620]!        ; 0x26c
# G' s% j5 Z& c" ?/ W5 L- Tnone:0 i# ^) q, [6 n7 p
00008324 <_start>:; H& ?# }/ ~' L. S7 P: d
    8324:        e59fc024         ldr        ip, [pc, #36]        ; 8350 <_start+0x2c>
+ \: K8 l  P  W# X! `: J# B    8328:        e3a0b000         mov        fp, #0        ; 0x0! Q0 |' c: ]" t$ \) @7 z( Q. A( R" r
    832c:        e49d1004         pop        {r1}                ; (ldr r1, [sp], #4)2 A' l: v# o1 W9 \5 \# S7 G" {8 r3 N; u
    8330:        e1a0200d         mov        r2, sp" L3 ]) `7 O6 m& w9 i2 W' I( }& f
    8334:        e52d2004         push        {r2}                ; (str r2, [sp, #-4]!)
2 w/ s) P, p+ ?& M    8338:        e52d0004         push        {r0}                ; (str r0, [sp, #-4]!)
6 ~4 O. j4 m- C' C- U/ [    833c:        e59f0010         ldr        r0, [pc, #16]        ; 8354 <_start+0x30>( V6 r' G: D' g
    8340:        e59f3010         ldr        r3, [pc, #16]        ; 8358 <_start+0x34>
; G( e0 x, q/ U8 B( G5 t1 V/ c5 E, Y    8344:        e52dc004         push        {ip}                ; (str ip, [sp, #-4]!)4 H" x% j/ H1 a
    8348:        ebffffef         bl        830c <_init+0x2c>
1 @& B9 R+ }1 K2 `    834c:        ebffffeb         bl        8300 <_init+0x20>
* r7 l- q8 c+ Y* Q5 D    8350:        00008404         .word        0x00008404
, a8 H& `" n2 Z" `    8354:        000083cc         .word        0x000083cc+ j- H1 u; y+ U- u+ `
    8358:        00008408         .word        0x00008408
7 V8 U% ?# s6 m% Larago:7 r9 Z: K1 r; U# G% e: Y* r
00008294 <_start>:$ K) U9 z7 P1 ?# v1 s$ I+ ^/ F
    8294:        e3a0b000         mov        fp, #0
% t% D( W! g, \; X4 a    8298:        e3a0e000         mov        lr, #0
+ Z8 Z% J) @4 d" s( |* R5 F    829c:        e49d1004         pop        {r1}                ; (ldr r1, [sp], #4)9 Y' w1 B! X8 y: t9 x" u3 J
    82a0:        e1a0200d         mov        r2, sp: v) g6 _: v+ |  K& S
    82a4:        e52d2004         push        {r2}                ; (str r2, [sp, #-4]!)( U+ P. C3 V" Z# c$ z" h4 P
    82a8:        e52d0004         push        {r0}                ; (str r0, [sp, #-4]!)0 S5 s' Y* {$ X: e
    82ac:        e59fc010         ldr        ip, [pc, #16]        ; 82c4 <_start+0x30>! c1 U; y7 g0 i( y
    82b0:        e52dc004         push        {ip}                ; (str ip, [sp, #-4]!)
; E: P; @: D: D+ D6 Q6 ^' c    82b4:        e59f000c         ldr        r0, [pc, #12]        ; 82c8 <_start+0x34># X; ?" Q' s) F. f8 C8 ^
    82b8:        e59f300c         ldr        r3, [pc, #12]        ; 82cc <_start+0x38>
' F) C9 y1 i! a$ y# {$ f    82bc:        ebffffee         bl        827c <_init+0x2c>* W$ F, T  b( M1 a, |
    82c0:        ebffffea         bl        8270 <_init+0x20>
0 G; I9 c3 L4 M1 Q  o4 p3 P% t8 g    82c4:        000083dc         .word        0x000083dc
' ]( D4 N, @+ |7 ]4 Z    82c8:        00008344         .word        0x00008344
: t9 D, c; u+ }' g- K    82cc:        0000837c         .word        0x0000837c
# K1 {. j1 |- D  c$ m' gnone:1 @6 @" Q6 D% V
0000835c <call_gmon_start>:2 G! v7 ~, S1 y
    835c:        e59f3014         ldr        r3, [pc, #20]        ; 8378 <call_gmon_start+0x1c>+ m' I4 O3 d* p' w4 ]
    8360:        e59f2014         ldr        r2, [pc, #20]        ; 837c <call_gmon_start+0x20>
" P4 T$ }8 {9 U    8364:        e08f3003         add        r3, pc, r3
! K: |& W- p' D- h; a# ^    8368:        e7931002         ldr        r1, [r3, r2]
5 h: n0 E- m' }3 \    836c:        e3510000         cmp        r1, #0        ; 0x00 m& G) m; y) C
    8370:        012fff1e         bxeq        lr
  C' J- O$ r% E- a- ?    8374:        eaffffe7         b        8318 <_init+0x38>
2 X- u: J; _0 O) l5 k    8378:        00008264         .word        0x00008264
! e3 R" j2 a, Z7 {7 A5 |    837c:        00000018         .word        0x00000018
  `0 Q+ Z2 v& E7 a/ `9 Xarago:
' ]9 u, I6 I0 Y8 {000082d0 <call_gmon_start>:
' B0 W) `, i$ `6 E/ W. X    82d0:        e59f3014         ldr        r3, [pc, #20]        ; 82ec <call_gmon_start+0x1c>  ?( N% k$ D/ F! Y: F4 {
    82d4:        e59f0014         ldr        r0, [pc, #20]        ; 82f0 <call_gmon_start+0x20>, ^6 w6 B/ ]" B! f8 f5 g
    82d8:        e08f3003         add        r3, pc, r3
$ j$ J: G, A0 w0 X* U+ t    82dc:        e7932000         ldr        r2, [r3, r0]$ r+ [5 {% W8 Z: |: ^
    82e0:        e3520000         cmp        r2, #0( ~8 ]* ?5 Z  ~6 F+ F/ x3 T0 F- u
    82e4:        012fff1e         bxeq        lr+ |# h  g2 \7 E4 u0 a; T2 `
    82e8:        eaffffe6         b        8288 <_init+0x38>
8 d/ K" w  S5 {2 e    82ec:        00008208         .word        0x00008208
3 N1 a" }2 w+ @9 U$ _' T# A    82f0:        00000018         .word        0x00000018
$ L. ?- k; }) [. v$ T5 ]: Znone:. I' M4 W0 F6 r  n
00008380 <__do_global_dtors_aux>:
$ J; H7 a/ a% p) X- Y    8380:        e59f2010         ldr        r2, [pc, #16]        ; 8398 <__do_global_dtors_aux+0x18>( u% T8 o% d: Q5 C. a3 i
    8384:        e5d23000         ldrb        r3, [r2]$ O1 _$ a0 t" O
    8388:        e3530000         cmp        r3, #0        ; 0x0
8 M1 A9 q9 f/ r' ]8 [    838c:        03a03001         moveq        r3, #1        ; 0x1) S/ ?3 a( h& a+ u4 O
    8390:        05c23000         strbeq        r3, [r2]
) P$ W# V' ?7 X    8394:        e12fff1e         bx        lr" R' f: M6 j& d  k
    8398:        000105f4         .word        0x000105f4
9 x2 p6 m/ c. i) Z5 K; a" varago:
4 s* F# Z4 V* ?3 m- L" r000082f4 <__do_global_dtors_aux>:" \3 ]3 g2 ?" Z  y
    82f4:        e59f3010         ldr        r3, [pc, #16]        ; 830c <__do_global_dtors_aux+0x18>
; c1 c& N& k' W& e    82f8:        e5d32000         ldrb        r2, [r3]
1 z, P& |- o5 i7 d: ?4 l) p    82fc:        e3520000         cmp        r2, #00 X# N( R% }" U
    8300:        02822001         addeq        r2, r2, #1% Y) E7 P, A% B* C7 l
    8304:        05c32000         strbeq        r2, [r3]
! J) h9 T9 p' f    8308:        e12fff1e         bx        lr. Z  a8 I! b8 \1 r8 L; @. c2 J/ g6 |
    830c:        0001050c         .word        0x0001050c
4 B  A' M8 ]. t- {/ v5 i: I) v4 F- jnone:) O3 }- z/ }, u; j. o1 o1 ^
0000839c <frame_dummy>:, s  k( v$ Q) @# f! @. j
    839c:        e59f0020         ldr        r0, [pc, #32]        ; 83c4 <frame_dummy+0x28>; v. z0 L' Z* W) x( `
    83a0:        e92d4010         push        {r4, lr}
1 c) F6 _+ e4 A7 B4 o. t, ^    83a4:        e5903000         ldr        r3, [r0]' d* f0 \& x6 C9 t! i0 Y
    83a8:        e3530000         cmp        r3, #0        ; 0x0& b; C5 N' j- N
    83ac:        08bd8010         popeq        {r4, pc}" M/ E) W. F; D
    83b0:        e59f3010         ldr        r3, [pc, #16]        ; 83c8 <frame_dummy+0x2c>6 ~5 E# {4 J( g( U
    83b4:        e3530000         cmp        r3, #0        ; 0x0
- G. \" |; C$ `- S1 @    83b8:        08bd8010         popeq        {r4, pc}( b- ~1 G7 e: S* a5 F
    83bc:        e12fff33         blx        r37 R: e' j8 M  g/ [0 H5 T
    83c0:        e8bd8010         pop        {r4, pc}+ j7 B1 }7 i- u- N4 H
    83c4:        000104dc         .word        0x000104dc
; D* {- Y1 c* D5 c; e; z+ v, x+ ~    83c8:        00000000         .word        0x00000000( I' o9 A# W. d5 X( M& o  k
arago:
3 v/ t3 M  B; O/ {00008310 <frame_dummy>:! ~4 W. |; t& V  W  Q7 d$ [5 A. v
    8310:        e59f0024         ldr        r0, [pc, #36]        ; 833c <frame_dummy+0x2c>4 S# b2 @0 _1 S: p/ ]+ M
    8314:        e92d4008         push        {r3, lr}9 t( b- ~# p1 h' Z- ]8 t7 |8 Q8 ~( O5 C
    8318:        e5903000         ldr        r3, [r0]: l) f+ ]4 F0 }8 X; c
    831c:        e3530000         cmp        r3, #06 _: s( D) U" A( Y4 }8 I
    8320:        0a000003         beq        8334 <frame_dummy+0x24>
7 }  l& A6 O: m% B    8324:        e59f3014         ldr        r3, [pc, #20]        ; 8340 <frame_dummy+0x30>
- W4 }0 r7 ]7 K  l0 X6 y    8328:        e3530000         cmp        r3, #0
& ?6 ?; m! M3 e. {9 G9 E4 _$ |    832c:        11a0e00f         movne        lr, pc
4 c' O& L. g& G    8330:        112fff13         bxne        r35 P6 ^( p0 f% l( b0 P9 U5 }
    8334:        e8bd4008         pop        {r3, lr}
6 n0 u. j# D# n+ n, |3 T    8338:        e12fff1e         bx        lr& d4 q. g1 `" E& n' O0 X! Z' G2 C* `
    833c:        000103fc         .word        0x000103fc$ I' q# z4 b& M& ~4 b
    8340:        00000000         .word        0x00000000
4 `& H1 g2 O3 `6 s) \8 n3 znone:6 i1 q+ q$ O5 h& |
000083cc <main>:
) F( n' h2 q5 K1 U* N9 B    83cc:        e52db004         push        {fp}                ; (str fp, [sp, #-4]!)
# u4 y) x% l! O8 J4 U8 F    83d0:        e28db000         add        fp, sp, #0        ; 0x0# }& `' b2 ]- r% K5 j  R5 J
    83d4:        e24dd01c         sub        sp, sp, #28        ; 0x1c
2 @* `; C' O7 g% {# w    83d8:        e50b0018         str        r0, [fp, #-24]0 y2 ?2 `. I- h( Q8 X
    83dc:        e50b101c         str        r1, [fp, #-28]# P# ^4 ?5 F- Z& q6 _  r! R* j
    83e0:        e51b2010         ldr        r2, [fp, #-16]
) c' r5 w! ^4 Y5 v# X. O& ~    83e4:        e51b300c         ldr        r3, [fp, #-12]. @, s5 d( |# M; `) D4 u9 r
    83e8:        e0030392         mul        r3, r2, r3+ ?+ H  Y" N8 Q& H: y
    83ec:        e50b3008         str        r3, [fp, #-8]. k( I+ Q8 N( L- o
    83f0:        e3a03000         mov        r3, #0        ; 0x07 d9 M- Q6 t. I, [8 P
    83f4:        e1a00003         mov        r0, r3
# k4 Z$ L8 S$ _0 Y; {    83f8:        e28bd000         add        sp, fp, #0        ; 0x0! r2 X: g* r- d6 j
    83fc:        e8bd0800         pop        {fp}' ~7 }/ a2 w. C4 g
    8400:        e12fff1e         bx        lr
& a$ K' @! }% b$ oarago:
) F' m8 O# Y* F) x00008344 <main>:
& J% v5 S. V* W    8344:        e52db004         push        {fp}                ; (str fp, [sp, #-4]!)
  `, I( P* c& n; m( C- \    8348:        e28db000         add        fp, sp, #08 n: F/ b5 T: [8 l
    834c:        e24dd01c         sub        sp, sp, #28, t, _  F8 t+ p! X1 M9 n* Y
    8350:        e50b0018         str        r0, [fp, #-24]
5 j1 C* k2 V* D# U7 i( r    8354:        e50b101c         str        r1, [fp, #-28]
4 ^1 s6 u" h2 L2 d$ ^& Z; @, ?! }    8358:        e51b3008         ldr        r3, [fp, #-8]
9 \' C- L( q! P7 o    835c:        e51b200c         ldr        r2, [fp, #-12]
( j& |% J  f$ O4 j- X' B6 [5 r    8360:        e0030392         mul        r3, r2, r3
" C6 _/ i7 h( M5 r' b0 Y. C+ {    8364:        e50b3010         str        r3, [fp, #-16]
9 U6 W6 _  Q0 V' L    8368:        e3a03000         mov        r3, #0# {. F2 u; W! r( v. Y" A+ {
    836c:        e1a00003         mov        r0, r3
9 i- S  H* m3 L$ S" R6 q7 x. R$ `0 H    8370:        e28bd000         add        sp, fp, #0- Z, l+ J% I* w/ j8 \( \
    8374:        e8bd0800         pop        {fp}& _' _3 R" S0 O" R
    8378:        e12fff1e         bx        lr' U' K- w2 V5 p8 s" G: \' Z
none:
* m8 b" }3 y2 N7 K# @) T00008404 <__libc_csu_fini>:% D4 F1 T! \; o8 m) W
    8404:        e12fff1e         bx        lr/ \0 [/ c& ^  C0 O- C! v& v
arago:% V- C( ?: T! ^% W, A5 i
000083dc <__libc_csu_fini>:3 R. `$ j, k6 g: V( G) G
    83dc:        e12fff1e         bx        lr; c1 g3 `7 a. n  e$ \+ S% y. Y
none:# W* q, D/ R+ v# A
00008408 <__libc_csu_init>:
8 V/ B) l& e* x    8408:        e92d47f0         push        {r4, r5, r6, r7, r8, r9, sl, lr}
8 S3 G7 y5 |) I3 _    840c:        e1a08001         mov        r8, r1
! P' O7 m- y$ E$ ~' H    8410:        e1a07002         mov        r7, r2
' u# V7 x9 U2 [. n: F, ^1 W# ?    8414:        e1a0a000         mov        sl, r0/ u% z9 E% F, @9 V# A
    8418:        ebffffb0         bl        82e0 <_init>( d' U/ }5 v7 b
    841c:        e59f1044         ldr        r1, [pc, #68]        ; 8468 <__libc_csu_init+0x60>3 S% o+ K5 r& L& o! G! h6 _
    8420:        e59f3044         ldr        r3, [pc, #68]        ; 846c <__libc_csu_init+0x64>) K9 {5 `' C4 b1 i( ^# g7 y( ~6 H
    8424:        e59f2044         ldr        r2, [pc, #68]        ; 8470 <__libc_csu_init+0x68>1 R+ _- K5 m& ~$ b% B0 m
    8428:        e0613003         rsb        r3, r1, r3
( D( q3 s: s8 t. E4 P    842c:        e08f2002         add        r2, pc, r23 @! u+ q5 U9 Z( G" s: {. ^' N. j4 T
    8430:        e1b05143         asrs        r5, r3, #2
0 m8 P* |3 V. T    8434:        e0822001         add        r2, r2, r12 Y9 b) G5 ?5 r7 O9 a. y: y# u
    8438:        08bd87f0         popeq        {r4, r5, r6, r7, r8, r9, sl, pc}; j- C  B& e; X3 P9 B
    843c:        e1a06002         mov        r6, r2
& W4 `7 @1 j! `% W- e; g9 Z3 R9 L    8440:        e3a04000         mov        r4, #0        ; 0x06 R+ {5 u! Y8 I% r8 G; _0 G3 D
    8444:        e1a0000a         mov        r0, sl
! b! a" o: o: R" D3 r7 o% |( z9 P    8448:        e1a01008         mov        r1, r8
( v$ H& |" `6 |/ P! ^) A3 r. q2 ]    844c:        e1a02007         mov        r2, r7* V; f5 H1 B4 F* d
    8450:        e1a0e00f         mov        lr, pc
! k/ s$ Z6 u2 h* @. `$ p2 P# o  Y    8454:        e796f104         ldr        pc, [r6, r4, lsl #2]
1 w6 w6 A' z+ P% w4 {    8458:        e2844001         add        r4, r4, #1        ; 0x1
5 W* z4 `! [. A+ x4 Q: O5 F    845c:        e1540005         cmp        r4, r5$ P# B9 [4 s( {& j, N0 x
    8460:        3afffff7         bcc        8444 <__libc_csu_init+0x3c>& b8 S& g0 F: @4 b
    8464:        e8bd87f0         pop        {r4, r5, r6, r7, r8, r9, sl, pc}) X: I+ o; e' L+ G- o: U
    8468:        ffffff04         .word        0xffffff04
2 }1 T2 k+ u2 X- d$ ^# c+ r& y9 \    846c:        ffffff08         .word        0xffffff08. T! ~6 E8 [1 S, X$ ~# }0 [6 O" |
    8470:        0000819c         .word        0x0000819c
3 j' ?- ]# N! I% G9 z: W- n* }arago:% S9 U, s$ x3 L( a! c
0000837c <__libc_csu_init>:* H* \* y# A! A9 Q, B$ R. C
    837c:        e92d45f8         push        {r3, r4, r5, r6, r7, r8, sl, lr}
5 U, s6 `' A. U' S& c    8380:        e59fa04c         ldr        sl, [pc, #76]        ; 83d4 <__libc_csu_init+0x58>& O& s( j0 @: @) u
    8384:        e1a06000         mov        r6, r0. J# e1 x6 a' ^$ C* Q, c
    8388:        e1a07001         mov        r7, r14 z1 u) \- P( Z; k# e- G/ q
    838c:        e1a08002         mov        r8, r2
  l$ G5 q; W. M( Z3 I! X# a    8390:        ebffffae         bl        8250 <_init>
6 Z, m; i  l6 B, c    8394:        e59f103c         ldr        r1, [pc, #60]        ; 83d8 <__libc_csu_init+0x5c>
2 h/ o5 N8 N- v! y    8398:        e08fa00a         add        sl, pc, sl9 A% V* A( P% I% @; k
    839c:        e08f0001         add        r0, pc, r1
2 E( i  W8 v0 i7 Z6 l5 `9 e    83a0:        e06a5000         rsb        r5, sl, r0& v7 T8 i; b- o3 n, ]$ G; y7 ?
    83a4:        e1b05145         asrs        r5, r5, #2/ y2 a8 P+ \3 {) H  k5 A$ A
    83a8:        08bd85f8         popeq        {r3, r4, r5, r6, r7, r8, sl, pc}" p6 Q1 \0 Y! _; k2 J
    83ac:        e3a04000         mov        r4, #0  ]6 O% X6 n; \( ^/ X% `
    83b0:        e79a3104         ldr        r3, [sl, r4, lsl #2]+ C+ `. K3 ^% y9 L! o
    83b4:        e1a00006         mov        r0, r6
, J& {5 N' Y; A; x# B    83b8:        e1a01007         mov        r1, r7
& y" |) n) x* v    83bc:        e1a02008         mov        r2, r8
3 L1 h8 Y- U! s- i* S    83c0:        e2844001         add        r4, r4, #1
$ ?4 l6 y' m5 A5 f    83c4:        e12fff33         blx        r3* f/ I+ ]% y1 @) z
    83c8:        e1540005         cmp        r4, r5; o+ ^# @) {- g7 d- `
    83cc:        3afffff7         bcc        83b0 <__libc_csu_init+0x34>
) [$ i0 S3 I7 P1 e# v    83d0:        e8bd85f8         pop        {r3, r4, r5, r6, r7, r8, sl, pc}
" |  q) X% B, Q2 ~' O. A* o9 Y' g    83d4:        00008054         .word        0x00008054. P, r' B9 H4 k# D$ c* W) w
    83d8:        00008054         .word        0x000080544 ]! I" V4 \5 d8 Q# s, u& V
none:; u! T) j( L0 g2 B" \
Disassembly of section .fini:! t, X0 Z' l% `3 i3 _

. C- r. n# d+ J, l00008474 <_fini>:
3 R& d9 \) j* h, P9 W0 \    8474:        e92d4010         push        {r4, lr}
8 V0 V  i8 D% K    8478:        e8bd8010         pop        {r4, pc}+ p$ ?5 s0 }6 L# t
arago:6 Q% H: g9 K! I
Disassembly of section .fini:
7 @4 z0 O3 G- W. \( }5 h1 x# K, l2 g' b4 d
000083e0 <_fini>:
* ^6 S) G  A7 Q/ F    83e0:        e92d4008         push        {r3, lr}" b* N- K4 }( s- x3 \
    83e4:        e8bd8008         pop        {r3, pc}6 B% u( G! f( |+ s# _) D3 M; x, E
+ D3 W* [  [, |% O0 K

' Y, D: d; b* d. h+ o) D& C! B1 x
, ]* ]6 w, Y. h/ D2 K
回复 支持 反对

使用道具 举报

0

主题

113

帖子

2183

积分

创龙

Rank: 8Rank: 8

积分
2183
6#
发表于 2016-6-21 16:35:00 | 只看该作者
粗看是使用的寄存器有点不同。. v4 d9 J% {9 ~8 Q6 u' W
我觉得这个基本程序代码的汇编差异不会有什么结果上的影响。% D+ r, i# k# k3 G; @
关键可能在于对于 TI 本身提供的一些特性,arago 针对其进行优化,这类的影响才会比较大吧。
回复 支持 反对

使用道具 举报

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

本版积分规则

点击跳转“创龙科技服务通”

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

GMT+8, 2026-3-9 13:40 , Processed in 0.047340 second(s), 26 queries .

Powered by Discuz! X3.2

© 2001-2015 Comsenz Inc.

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