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

嵌入式开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

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

交叉编译器 疑问

[复制链接]

1

主题

3

帖子

1039

积分

金牌会员

Rank: 6Rank: 6

积分
1039
跳转到指定楼层
楼主
发表于 2016-6-4 20:49:35 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
在工具目录下 有两个交叉编译工具
5 a0 _( e( X( @7 F5 iarago-2011.09-armv5te-linux-gnueabi-sdk
* ?- n( f, A- ~1 W- }  rarm-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu
. d* _# m! l# H这两个 交叉编译 工具 有什么区别  
" l0 {; U$ x6 u: K5 y* v" z/ R* D8 [' Q1 W2 N
7 r! I4 b# p; {( H  P
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖
回复

使用道具 举报

0

主题

113

帖子

2145

积分

创龙

Rank: 8Rank: 8

积分
2145
推荐
发表于 2016-6-8 17:03:19 | 只看该作者
arago 对 TI 的支持应该更好
$ l, q# K1 m, f  A% fhttp://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# _8 h: V" m/ E) Z3 Y3 Y
arago 对 TI 的支持应该更好. o+ u% V7 s/ n$ H) R
http://arago-project.org/wiki/index.php/Main_Page

  P5 v7 t, c0 k" m9 M: C* c( f6 y的确 文章里说 支持和更新 都优先支持 arago , 在实际编译出来输出文件 不知道有没有什么 优化。
回复 支持 反对

使用道具 举报

1

主题

3

帖子

1039

积分

金牌会员

Rank: 6Rank: 6

积分
1039
5#
 楼主| 发表于 2016-6-9 23:03:48 | 只看该作者
源码:$ E, H9 o2 F0 ?7 d: c! d
  1 #include<stdio.h>                                                           
" r; `1 j) l: p' _  2 #include<math.h>1 X+ j' Z! x$ ?; P. C
  3 int main(int argc,char* argv[])
% A$ d6 c4 U- f) q, m  4 {
% h" ]# D; K: s! ^6 S2 ^0 p  5     int a,b,c;0 h& o* l. U8 o# s' Q- v1 o
  6     c = a * b;
! _) i: e( Z8 A+ s0 a. Z  E  7     return 0;  n, g) ^# p$ \0 A# c
  8 }
: p2 A7 o1 X9 h. K& F# z# n- `3 E, P6 A* ~) ~# o3 C
下面是两个编译器 编译出来的差异  差异好像不是很大  arm汇编不是很熟悉 大家看看9 }% o4 ]' u: p( C  [* r
none:, G; F' Y# N3 S9 C& f
000082e0 <_init>:# r' Y% n: P3 @! f" Z8 e8 |2 _9 B
    82e0:        e92d4010         push        {r4, lr}. c: B3 E/ R, r7 F8 p
    82e4:        eb00001c         bl        835c <call_gmon_start>
! i1 V/ q- z% Y! X    82e8:        e8bd8010         pop        {r4, pc}0 i: Y  {# A; \- \
arago:
* O$ s+ \+ ^# e! l0 K" ?" \00008250 <_init>:( ]& E1 B4 d6 p  O$ N& |  V3 n
    8250:        e92d4008         push        {r3, lr}% }5 c8 b9 B+ v+ g
    8254:        eb00001d         bl        82d0 <call_gmon_start>
7 }3 V8 Z6 ^' W; }) w' p/ g    8258:        e8bd8008         pop        {r3, pc}, [' d" q+ E- n& V& v$ A

$ v/ k3 }" l% x* L# ~none:" B6 o% ]8 o8 Z: I6 n5 T
000082ec <.plt>:
# K" E: g3 W/ J7 l, [& q/ K    82ec:        e52de004         push        {lr}                ; (str lr, [sp, #-4]!)+ O- y* E  H3 _5 r" j$ n# P5 O
    82f0:        e59fe004         ldr        lr, [pc, #4]        ; 82fc <_init+0x1c>: s+ `, S- ^# a. N
    82f4:        e08fe00e         add        lr, pc, lr
# I. j8 w: r$ x& |# j    82f8:        e5bef008         ldr        pc, [lr, #8]!
  }; O. d# G$ Z( s7 d( n% [    82fc:        000082d4         .word        0x000082d4
( O& ~/ m9 [/ z( w# R( U1 g    8300:        e28fc600         add        ip, pc, #0        ; 0x0
7 m9 J: ?  b% s( k; E! \    8304:        e28cca08         add        ip, ip, #32768        ; 0x8000
/ w' T8 |+ j. D    8308:        e5bcf2d4         ldr        pc, [ip, #724]!
( T8 E) u9 i! p0 J5 @& P# A7 S    830c:        e28fc600         add        ip, pc, #0        ; 0x0; G* `! d& G5 H6 \" H' ^  x6 ~
    8310:        e28cca08         add        ip, ip, #32768        ; 0x80000 W( C, m& Y/ D/ O
    8314:        e5bcf2cc         ldr        pc, [ip, #716]!
- e% \8 ], f# k  F: {, ?    8318:        e28fc600         add        ip, pc, #0        ; 0x0
0 D" ]6 `( @$ v- R1 r' i2 T& t    831c:        e28cca08         add        ip, ip, #32768        ; 0x8000; V* I. u5 m  |  H
    8320:        e5bcf2c4         ldr        pc, [ip, #708]!
" i( y) \  W- Y/ {5 P: Warago:
1 J0 z1 B  f+ @4 P4 Q% l# T0000825c <.plt>:2 @+ K. f( ^$ b) Y
    825c:        e52de004         push        {lr}                ; (str lr, [sp, #-4]!)
4 Y/ Z( ^3 Z+ S+ b: X    8260:        e59fe004         ldr        lr, [pc, #4]        ; 826c <_init+0x1c>  ~; R- }) p9 ^' w9 E& L  _
    8264:        e08fe00e         add        lr, pc, lr
  O2 m  I/ i3 Y1 _8 a    8268:        e5bef008         ldr        pc, [lr, #8]!$ O* c* C+ L: L- b! S8 \+ E
    826c:        0000827c         .word        0x0000827c/ u8 x9 e$ P, `3 I
    8270:        e28fc600         add        ip, pc, #0
! U0 s; O& W) W. `+ B    8274:        e28cca08         add        ip, ip, #32768        ; 0x8000
: S+ _* {% u, f) w    8278:        e5bcf27c         ldr        pc, [ip, #636]!        ; 0x27c
! f  G: I; x* G7 |    827c:        e28fc600         add        ip, pc, #0
7 _) n7 x0 W8 G5 v8 R    8280:        e28cca08         add        ip, ip, #32768        ; 0x8000; \1 Y4 ?5 }# U) R. r
    8284:        e5bcf274         ldr        pc, [ip, #628]!        ; 0x274
; Y3 w" D" C( M" m5 f! i    8288:        e28fc600         add        ip, pc, #0
# o+ P, N% D- b    828c:        e28cca08         add        ip, ip, #32768        ; 0x80004 e& }# i8 l5 X* {2 U& f
    8290:        e5bcf26c         ldr        pc, [ip, #620]!        ; 0x26c" d* y; O  C6 b+ X* T/ q
none:& U, e; U' N( z0 y
00008324 <_start>:; J- Y! b" s* ]  u* B
    8324:        e59fc024         ldr        ip, [pc, #36]        ; 8350 <_start+0x2c>
. i' _! L: l; m0 ~& F( _    8328:        e3a0b000         mov        fp, #0        ; 0x0
0 }7 ]% d2 @5 g- {; s    832c:        e49d1004         pop        {r1}                ; (ldr r1, [sp], #4)
: o& n: C6 P9 p% e! C! J( }    8330:        e1a0200d         mov        r2, sp% y) I- |+ ~5 L* a, r2 z% E
    8334:        e52d2004         push        {r2}                ; (str r2, [sp, #-4]!)8 x! C0 X, X. L. i5 d# d3 l
    8338:        e52d0004         push        {r0}                ; (str r0, [sp, #-4]!)
1 J5 o- y, @- M7 t    833c:        e59f0010         ldr        r0, [pc, #16]        ; 8354 <_start+0x30>
  q8 `* c: d. x! ]0 n    8340:        e59f3010         ldr        r3, [pc, #16]        ; 8358 <_start+0x34>6 N6 W) Y2 U6 l0 t0 L! p
    8344:        e52dc004         push        {ip}                ; (str ip, [sp, #-4]!); U& N$ J5 K8 {0 V3 h
    8348:        ebffffef         bl        830c <_init+0x2c>
5 R3 l4 L$ k* I! o3 q    834c:        ebffffeb         bl        8300 <_init+0x20>7 j1 V8 S$ j6 Q+ _( C
    8350:        00008404         .word        0x00008404; @; J. O7 H0 ]+ z% X
    8354:        000083cc         .word        0x000083cc/ t/ b1 f; w7 h# e% i. R
    8358:        00008408         .word        0x00008408
" f3 z% `8 T0 z: a6 Z( P, qarago:
7 R8 B2 f+ {! a: @1 m& U+ n9 D9 i: ^00008294 <_start>:
3 E  k0 e2 q" U, M8 L" i+ }% c    8294:        e3a0b000         mov        fp, #0
3 f! i  r* x, C2 N    8298:        e3a0e000         mov        lr, #0
' {2 q# y$ w- m0 x- l  O# O    829c:        e49d1004         pop        {r1}                ; (ldr r1, [sp], #4)/ y1 F% j( r- N. }5 k3 `/ l: C8 `/ T
    82a0:        e1a0200d         mov        r2, sp
- u# M! z$ s) ^1 Z    82a4:        e52d2004         push        {r2}                ; (str r2, [sp, #-4]!)
" G2 [; ?; O; X. z) y& o# G    82a8:        e52d0004         push        {r0}                ; (str r0, [sp, #-4]!)
% l7 Z/ U1 ]- `% a  f0 b    82ac:        e59fc010         ldr        ip, [pc, #16]        ; 82c4 <_start+0x30>
. X/ I0 n9 Z' e# n& \    82b0:        e52dc004         push        {ip}                ; (str ip, [sp, #-4]!), H& q* F" I0 d4 {# V( }- g
    82b4:        e59f000c         ldr        r0, [pc, #12]        ; 82c8 <_start+0x34>
. D8 p7 B' r) b1 ^    82b8:        e59f300c         ldr        r3, [pc, #12]        ; 82cc <_start+0x38>, ^, q6 F/ f! C7 J7 @+ {  @! S8 S
    82bc:        ebffffee         bl        827c <_init+0x2c>; E, \7 w- |' w3 k4 N% P; o
    82c0:        ebffffea         bl        8270 <_init+0x20>" O9 _& w4 T; n  L, [- [/ n
    82c4:        000083dc         .word        0x000083dc
6 y1 n# u3 L; h3 `    82c8:        00008344         .word        0x00008344  f* O& ]6 G6 I: s0 s' C
    82cc:        0000837c         .word        0x0000837c, _+ f4 N* I3 A5 q+ ?# a1 M
none:
, N5 M& |1 \% d) K0 T1 R9 H' b+ Q' `0000835c <call_gmon_start>:
, d& y1 ?- O7 I    835c:        e59f3014         ldr        r3, [pc, #20]        ; 8378 <call_gmon_start+0x1c>
* K% H% F: _9 J    8360:        e59f2014         ldr        r2, [pc, #20]        ; 837c <call_gmon_start+0x20>
/ n* c( [( O4 T' y    8364:        e08f3003         add        r3, pc, r3
, j8 \+ ~  b  @    8368:        e7931002         ldr        r1, [r3, r2]; w2 C0 y2 F6 B* k3 y( d$ v
    836c:        e3510000         cmp        r1, #0        ; 0x0! c  _* }3 X& @  F* j5 \0 }
    8370:        012fff1e         bxeq        lr7 B, Z; A; p' ^' K* Y8 V& w* C: u
    8374:        eaffffe7         b        8318 <_init+0x38>/ R# B% s: }7 q' x7 O+ w4 n0 V4 W
    8378:        00008264         .word        0x00008264
4 \# @4 G0 l0 p0 }  `; E" T    837c:        00000018         .word        0x00000018
* }% i. W- y6 I9 M8 V) _arago:
& E7 r8 b  f$ N" p( Q000082d0 <call_gmon_start>:
# j; K5 G" {& e# ?5 d    82d0:        e59f3014         ldr        r3, [pc, #20]        ; 82ec <call_gmon_start+0x1c>
/ o5 A) r4 O, \% x: \    82d4:        e59f0014         ldr        r0, [pc, #20]        ; 82f0 <call_gmon_start+0x20>5 m  H4 Y" |6 O! v
    82d8:        e08f3003         add        r3, pc, r3; _# u2 n0 u' V, F9 K
    82dc:        e7932000         ldr        r2, [r3, r0]* u" D9 Q* U$ }" Q0 ^8 C/ B  n7 b
    82e0:        e3520000         cmp        r2, #0
  h5 R' b5 J# Y    82e4:        012fff1e         bxeq        lr3 v% V& N7 O; k5 v5 m1 t
    82e8:        eaffffe6         b        8288 <_init+0x38>
; r* U, Y6 [- p- S& H    82ec:        00008208         .word        0x00008208
3 D! u5 Q! M0 T, M# E" r; }3 f0 r    82f0:        00000018         .word        0x00000018  a1 I& C4 L( l: U, I$ {# i7 p3 `
none:, h9 H+ y( E; n/ M4 ?. A# X
00008380 <__do_global_dtors_aux>:. O) |, F3 t, g$ J
    8380:        e59f2010         ldr        r2, [pc, #16]        ; 8398 <__do_global_dtors_aux+0x18>
+ c9 {* y( I. N/ R; e    8384:        e5d23000         ldrb        r3, [r2]
0 q* ^3 z$ k1 G( O% z    8388:        e3530000         cmp        r3, #0        ; 0x0" n) e" Y* i, E" m% G: O
    838c:        03a03001         moveq        r3, #1        ; 0x1
' m7 N7 i  E! W    8390:        05c23000         strbeq        r3, [r2]
, R9 I& X) p* T& v5 u3 q6 x    8394:        e12fff1e         bx        lr
% y: F7 C; k# z5 S: D- K    8398:        000105f4         .word        0x000105f45 `6 f; ^9 g1 m5 `" J! p8 [" y& H
arago:
0 y  A: W! h/ U$ Z% n000082f4 <__do_global_dtors_aux>:  T  K/ P9 \: q$ }
    82f4:        e59f3010         ldr        r3, [pc, #16]        ; 830c <__do_global_dtors_aux+0x18>
! z, Z9 T' x( ?' w8 ?3 g0 o; N$ o4 L0 t$ Z    82f8:        e5d32000         ldrb        r2, [r3]4 G6 c1 V; @. y) C* a% w4 n' r
    82fc:        e3520000         cmp        r2, #0
* e9 k8 j  V% l7 b6 v+ Q    8300:        02822001         addeq        r2, r2, #1
8 g% V( I0 w" `" N    8304:        05c32000         strbeq        r2, [r3]3 H6 `" d5 E. q3 e1 a
    8308:        e12fff1e         bx        lr4 i/ }3 E7 [+ c
    830c:        0001050c         .word        0x0001050c" U- G* p, `+ A+ I
none:
/ c+ o) v% M* q; E0000839c <frame_dummy>:; q7 J; d3 y0 |2 N' A. c' r- q
    839c:        e59f0020         ldr        r0, [pc, #32]        ; 83c4 <frame_dummy+0x28>
1 W0 d+ q8 ^# U5 L3 z    83a0:        e92d4010         push        {r4, lr}- i: p: m+ n& _' @# i
    83a4:        e5903000         ldr        r3, [r0]
3 Q! U" |( ]' @: E    83a8:        e3530000         cmp        r3, #0        ; 0x07 n! T" H& M' y* P2 h3 G+ o' x
    83ac:        08bd8010         popeq        {r4, pc}# m; n( h5 P0 G7 @+ g# u8 g) |4 j  G
    83b0:        e59f3010         ldr        r3, [pc, #16]        ; 83c8 <frame_dummy+0x2c>
$ }5 A7 L# K: C, |    83b4:        e3530000         cmp        r3, #0        ; 0x0
' h+ Q( j  A/ `0 z0 W6 ?2 Y    83b8:        08bd8010         popeq        {r4, pc}" m& |# T  s, _8 L* x" b
    83bc:        e12fff33         blx        r3! e* d1 N# ?1 G6 g) }3 e# F
    83c0:        e8bd8010         pop        {r4, pc}: H2 @( d0 j3 `: x
    83c4:        000104dc         .word        0x000104dc! z8 H; g# M  Y5 R) U! k1 m5 p
    83c8:        00000000         .word        0x00000000
- t! V8 k6 {/ o8 Q: g4 F$ w6 tarago:! Y& @) z( ]4 h# U( g7 @( N
00008310 <frame_dummy>:& D5 y9 C2 q) u/ I
    8310:        e59f0024         ldr        r0, [pc, #36]        ; 833c <frame_dummy+0x2c>! o( d7 b  f* z: @
    8314:        e92d4008         push        {r3, lr}
( m; q0 ]3 @& J$ ?7 E6 `5 B    8318:        e5903000         ldr        r3, [r0]
1 g( I) y  O1 O3 ?9 X    831c:        e3530000         cmp        r3, #0. N& U! m% |5 K0 q  [
    8320:        0a000003         beq        8334 <frame_dummy+0x24>; q! R7 U( g% v/ v
    8324:        e59f3014         ldr        r3, [pc, #20]        ; 8340 <frame_dummy+0x30>: I/ E* ?0 k+ `+ j6 d5 E" @
    8328:        e3530000         cmp        r3, #03 p- `1 v! @. F1 f6 d+ X6 @3 p
    832c:        11a0e00f         movne        lr, pc
! _2 D  k6 _' F1 t+ u3 v3 ?    8330:        112fff13         bxne        r3
* c7 a4 k  o" P  r+ Z    8334:        e8bd4008         pop        {r3, lr}
# J  j! ^7 p& v# @) j! T' c    8338:        e12fff1e         bx        lr* H  l" ?8 @! X/ L4 Y
    833c:        000103fc         .word        0x000103fc! Q0 ^. z) d2 ~6 g
    8340:        00000000         .word        0x00000000: \  R3 S& V8 ~* H; H8 V4 }1 Z! g
none:
* O; m7 M' K) l: P000083cc <main>:
) G( z& @9 i2 R! x3 p0 I0 U    83cc:        e52db004         push        {fp}                ; (str fp, [sp, #-4]!)
0 ?- v6 b9 X" ?* C    83d0:        e28db000         add        fp, sp, #0        ; 0x06 o! }# k1 {6 d8 C5 p& M2 W( C5 ?
    83d4:        e24dd01c         sub        sp, sp, #28        ; 0x1c
: O9 e4 T: G1 }    83d8:        e50b0018         str        r0, [fp, #-24]
! F" X. Y9 G% Y3 [) Y5 }- b    83dc:        e50b101c         str        r1, [fp, #-28]
% ^4 b. o# `! d- y0 l6 n9 I    83e0:        e51b2010         ldr        r2, [fp, #-16]' u8 X3 x* d; ^9 W2 ]
    83e4:        e51b300c         ldr        r3, [fp, #-12]
0 \5 ]  v+ @" m. i* U    83e8:        e0030392         mul        r3, r2, r3
4 K# b5 y2 G* z4 B% `1 [8 j; S; x0 O: E    83ec:        e50b3008         str        r3, [fp, #-8], v- Q% H. n- S$ b3 D# @, e; \: Q
    83f0:        e3a03000         mov        r3, #0        ; 0x0% ?9 Z9 ]; S9 t  u  o) f: e
    83f4:        e1a00003         mov        r0, r3' ]+ y$ ?( X- V5 x& K& ~
    83f8:        e28bd000         add        sp, fp, #0        ; 0x0
+ C' t) A% @/ b, m0 @0 W2 g+ ]% A2 ]    83fc:        e8bd0800         pop        {fp}
0 f  l* E3 {0 [* p; r7 ~, Q! g    8400:        e12fff1e         bx        lr7 @: e% u  Q  c* t( f8 K! B7 R
arago:1 q) X4 t" N# W- d1 L0 J0 x
00008344 <main>:4 V  g' T) a4 Q2 y% ?
    8344:        e52db004         push        {fp}                ; (str fp, [sp, #-4]!)7 J  r; a% N  O! ~
    8348:        e28db000         add        fp, sp, #09 v6 }: Z# U) C0 Y* U3 i, F# ~
    834c:        e24dd01c         sub        sp, sp, #28) o/ ^9 K$ N& @2 K
    8350:        e50b0018         str        r0, [fp, #-24]4 `, h1 E1 R( q2 y# B# j5 O5 }
    8354:        e50b101c         str        r1, [fp, #-28]2 v- Y7 A. `' n: j5 @
    8358:        e51b3008         ldr        r3, [fp, #-8]" D* a# }8 n( |$ L' j  n$ u
    835c:        e51b200c         ldr        r2, [fp, #-12]
& ?' k. l+ Z3 @/ L    8360:        e0030392         mul        r3, r2, r3
( S# s. s/ G5 C8 z: a" v' o# U. _    8364:        e50b3010         str        r3, [fp, #-16]
0 F8 L* ^, \0 [, |% B    8368:        e3a03000         mov        r3, #0
' G5 @7 i6 }) e, l6 Y    836c:        e1a00003         mov        r0, r33 G2 r4 h; x6 B6 k
    8370:        e28bd000         add        sp, fp, #0
, b" e$ X+ ^' R; R. i0 r& r0 d/ H    8374:        e8bd0800         pop        {fp}* w" V$ I; A2 B$ x! O8 x8 S; `
    8378:        e12fff1e         bx        lr6 _# G! U; k% Y) y* C- B
none:0 M7 g# o1 K: R5 |6 V0 j! G
00008404 <__libc_csu_fini>:
9 k0 @& y0 i# s3 y$ ?    8404:        e12fff1e         bx        lr2 S. d8 n  i3 b8 g) [
arago:
8 p) u, u" v% [9 e. E/ u& s1 V2 L000083dc <__libc_csu_fini>:
4 l7 s  J0 y. J9 ^; V, W    83dc:        e12fff1e         bx        lr
# j! x. k* C: `4 Xnone:4 c7 s' F$ L$ t4 k% j) Y
00008408 <__libc_csu_init>:) i, f6 T" U& t, T' j) q/ h# W( m4 {
    8408:        e92d47f0         push        {r4, r5, r6, r7, r8, r9, sl, lr}( \8 \/ [. r' z3 g6 ]6 |1 e1 e
    840c:        e1a08001         mov        r8, r1
, \4 ^/ ~( i' E1 O1 g    8410:        e1a07002         mov        r7, r2
9 z+ p7 C3 ?% H+ W" S- l    8414:        e1a0a000         mov        sl, r0: n0 K0 T2 S! K! L9 e5 c- @
    8418:        ebffffb0         bl        82e0 <_init>
% ?% r9 o" n8 W    841c:        e59f1044         ldr        r1, [pc, #68]        ; 8468 <__libc_csu_init+0x60>
, i6 j; A; f- e' T1 L! Y    8420:        e59f3044         ldr        r3, [pc, #68]        ; 846c <__libc_csu_init+0x64>
% c" |0 t+ ?1 L3 C5 r    8424:        e59f2044         ldr        r2, [pc, #68]        ; 8470 <__libc_csu_init+0x68>1 i& g  X1 O% y1 y+ t6 P* X- @! X- e
    8428:        e0613003         rsb        r3, r1, r39 [* a4 I. O3 o+ d0 G6 H
    842c:        e08f2002         add        r2, pc, r2$ I! ]4 t& y) S/ Y: P" p6 @
    8430:        e1b05143         asrs        r5, r3, #21 U* c7 D! c; `3 i; K+ a
    8434:        e0822001         add        r2, r2, r1  L, a2 Y9 D! I; ~
    8438:        08bd87f0         popeq        {r4, r5, r6, r7, r8, r9, sl, pc}1 A9 `4 d# p  j& B' x+ }
    843c:        e1a06002         mov        r6, r2' `3 f3 A* ?# [' ^9 p5 O
    8440:        e3a04000         mov        r4, #0        ; 0x0
6 H) B) Q' I; x/ y! {    8444:        e1a0000a         mov        r0, sl
  Q" N- D' i/ s7 o3 }3 y    8448:        e1a01008         mov        r1, r8* y6 o1 r( r: {5 y9 e
    844c:        e1a02007         mov        r2, r7. N$ R1 u2 H- j/ h% b! c" q
    8450:        e1a0e00f         mov        lr, pc! v% Q8 }7 R5 q4 L
    8454:        e796f104         ldr        pc, [r6, r4, lsl #2]+ q8 f, ]5 R( k9 Q% y/ T
    8458:        e2844001         add        r4, r4, #1        ; 0x1
% t. h1 @# M+ y6 Q6 E9 y7 H    845c:        e1540005         cmp        r4, r5
) |& i/ J9 W$ a6 j8 S  j    8460:        3afffff7         bcc        8444 <__libc_csu_init+0x3c>
2 {+ B  g* P$ ]/ t* B0 J' f    8464:        e8bd87f0         pop        {r4, r5, r6, r7, r8, r9, sl, pc}" D/ q; S. l7 j6 `& k6 M
    8468:        ffffff04         .word        0xffffff04
/ ]1 ]: }" K; e6 Y. p  S/ p    846c:        ffffff08         .word        0xffffff08
1 m5 r- Z. i9 x5 [5 T' `    8470:        0000819c         .word        0x0000819c4 o  ]' i4 P6 @
arago:7 I& t" m6 `) i+ {
0000837c <__libc_csu_init>:
) s! N$ S3 _( }. C) E% C* i    837c:        e92d45f8         push        {r3, r4, r5, r6, r7, r8, sl, lr}
! o+ V6 R* ]6 N. ?, q* S    8380:        e59fa04c         ldr        sl, [pc, #76]        ; 83d4 <__libc_csu_init+0x58>- }; \& W% F$ i$ b5 q- p+ n$ A: w5 a
    8384:        e1a06000         mov        r6, r0- d2 ]% L( \3 x5 J0 V
    8388:        e1a07001         mov        r7, r1
- H. M. |# T) d% _5 ]    838c:        e1a08002         mov        r8, r2
3 ^8 r2 M3 z2 w: ]% b    8390:        ebffffae         bl        8250 <_init>
( w2 J+ x$ _2 g    8394:        e59f103c         ldr        r1, [pc, #60]        ; 83d8 <__libc_csu_init+0x5c>* O% L3 q. X9 @* `3 C4 M7 d$ t
    8398:        e08fa00a         add        sl, pc, sl
% W: z2 P$ g8 W) c  A8 D    839c:        e08f0001         add        r0, pc, r1* Q6 M) e2 q6 a# x, }  B' ^
    83a0:        e06a5000         rsb        r5, sl, r0: Y6 C$ m! W- y
    83a4:        e1b05145         asrs        r5, r5, #2% I" y' ]3 C. }1 C: O$ A
    83a8:        08bd85f8         popeq        {r3, r4, r5, r6, r7, r8, sl, pc}+ J0 C) T5 m5 `
    83ac:        e3a04000         mov        r4, #0; h9 E0 q$ I: K/ \0 X/ k
    83b0:        e79a3104         ldr        r3, [sl, r4, lsl #2]
0 M( f2 V4 {# u: [. X    83b4:        e1a00006         mov        r0, r6
% H( P7 u0 |# }) o$ h    83b8:        e1a01007         mov        r1, r7
/ w; g) z: @! Z' N- d' [2 t    83bc:        e1a02008         mov        r2, r8
; R" T2 u  h0 v6 u3 s) X    83c0:        e2844001         add        r4, r4, #1
, p# P, i. N& E1 _& {* E3 M    83c4:        e12fff33         blx        r3, K% f' H& C. c; O: I( W  U
    83c8:        e1540005         cmp        r4, r5$ v1 P, C( J/ h) f5 o; Q
    83cc:        3afffff7         bcc        83b0 <__libc_csu_init+0x34>" E/ v" J6 A8 M) `
    83d0:        e8bd85f8         pop        {r3, r4, r5, r6, r7, r8, sl, pc}2 Y2 ~9 S& ]+ v$ H+ G: y8 D
    83d4:        00008054         .word        0x000080541 }$ k3 C3 V0 n) s
    83d8:        00008054         .word        0x00008054' a/ M# t% M  l' S
none:
1 I8 ?  T2 n# U6 B7 y9 x- XDisassembly of section .fini:
/ x2 Q/ {+ P  T) g) c% S2 l& {1 I( K; m
00008474 <_fini>:  I8 {/ M3 K" [  s4 s
    8474:        e92d4010         push        {r4, lr}5 H, U* Y2 }& L: u
    8478:        e8bd8010         pop        {r4, pc}
1 H- Y, X; p) r& G5 a/ |# o* Zarago:2 o, b! V4 @+ s
Disassembly of section .fini:
" J! ?7 @: p8 a3 g8 Z5 v" H; d9 O3 w8 s# k
000083e0 <_fini>:) h; U8 o7 w+ m; N/ K) u5 H, a
    83e0:        e92d4008         push        {r3, lr}9 j9 T* M4 C' K0 h
    83e4:        e8bd8008         pop        {r3, pc}
3 O. N* e6 y) _/ ~$ b
, P& e  z# }- y& f$ {9 j' ]- i, D
% K6 M- d( y+ i) |  u& ~6 M
5 I, y3 A, z( Q2 v# i- s4 |& p7 E- f
回复 支持 反对

使用道具 举报

0

主题

113

帖子

2145

积分

创龙

Rank: 8Rank: 8

积分
2145
6#
发表于 2016-6-21 16:35:00 | 只看该作者
粗看是使用的寄存器有点不同。( H0 z+ z9 s$ D3 g9 H$ t- C; B
我觉得这个基本程序代码的汇编差异不会有什么结果上的影响。
+ \, A( I; E  ]! A- a/ ~- V关键可能在于对于 TI 本身提供的一些特性,arago 针对其进行优化,这类的影响才会比较大吧。
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2026-1-14 01:32 , Processed in 0.044958 second(s), 26 queries .

Powered by Discuz! X3.2

© 2001-2015 Comsenz Inc.

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