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

嵌入式开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

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

交叉编译器 疑问

[复制链接]

1

主题

3

帖子

1039

积分

金牌会员

Rank: 6Rank: 6

积分
1039
跳转到指定楼层
楼主
发表于 2016-6-4 20:49:35 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
在工具目录下 有两个交叉编译工具. S$ M0 [- v1 L5 v1 A% S7 {
arago-2011.09-armv5te-linux-gnueabi-sdk
8 y: D6 p- v/ X, N/ i" H$ O  M" Sarm-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu4 {( O/ F9 L3 @+ K" h7 s: S
这两个 交叉编译 工具 有什么区别  
+ ^$ G% U) B: i' Z8 e0 l6 O6 v8 ?7 {0 e/ c5 e' B9 @
7 b: ?' P, Q9 L
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖
回复

使用道具 举报

0

主题

113

帖子

2134

积分

创龙

Rank: 8Rank: 8

积分
2134
推荐
发表于 2016-6-8 17:03:19 | 只看该作者
arago 对 TI 的支持应该更好
  f9 w* N9 b1 v8 G0 khttp://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
* d) t% v( w6 C% w7 \; y; Parago 对 TI 的支持应该更好: m6 I' Z1 k* e) @
http://arago-project.org/wiki/index.php/Main_Page
7 |' h, i6 g8 _6 t: m5 ?2 p
的确 文章里说 支持和更新 都优先支持 arago , 在实际编译出来输出文件 不知道有没有什么 优化。
回复 支持 反对

使用道具 举报

1

主题

3

帖子

1039

积分

金牌会员

Rank: 6Rank: 6

积分
1039
5#
 楼主| 发表于 2016-6-9 23:03:48 | 只看该作者
源码:
$ Q& O; G4 b9 |6 ?  1 #include<stdio.h>                                                           * k0 V, r  x3 ?) {, R& Z# f
  2 #include<math.h>
) s) _# G( X6 A8 i$ s# l# v  3 int main(int argc,char* argv[])
; j7 Q' B; V3 Q4 d, M6 H/ R  4 {
! w( p! ~% U, d  5     int a,b,c;
( v1 X. u- D3 x8 u& i+ o  6     c = a * b;
' G5 |0 M2 Y. W( j* W$ c( i  7     return 0;
% L/ r% E0 M8 G- ^* G  8 }% b  h" [. e! U0 I) S- I5 {

, e+ I5 }) I  z; [# n下面是两个编译器 编译出来的差异  差异好像不是很大  arm汇编不是很熟悉 大家看看" h. \3 R8 Q! Y6 Q5 @
none:2 r( O- I! V" e
000082e0 <_init>:  R: U  u% y! _6 P3 L
    82e0:        e92d4010         push        {r4, lr}1 Q) V# C4 Y0 u1 ?. G
    82e4:        eb00001c         bl        835c <call_gmon_start># d( N: U6 L' o* A- l- u6 `: T
    82e8:        e8bd8010         pop        {r4, pc}: I8 o; u7 z! [5 D% M. Q
arago:
8 P0 u  V. N1 n5 L6 {00008250 <_init>:
1 L% ~; x: u$ k' n! H    8250:        e92d4008         push        {r3, lr}5 u9 x# R+ {6 R9 @. |
    8254:        eb00001d         bl        82d0 <call_gmon_start>. G6 T6 K+ {# k1 x
    8258:        e8bd8008         pop        {r3, pc}
/ Q3 U1 d# K, j) `1 p" e% g( Q! M0 H7 R! k; {! ?
none:) o% R+ o& ~: ^: q- c
000082ec <.plt>:
% w( ?. B6 s/ @6 F, ^4 ~  ^8 W    82ec:        e52de004         push        {lr}                ; (str lr, [sp, #-4]!)7 G0 U( X6 Y; q( Y4 C
    82f0:        e59fe004         ldr        lr, [pc, #4]        ; 82fc <_init+0x1c>+ Q* \* x: J, }; P7 D
    82f4:        e08fe00e         add        lr, pc, lr
7 O2 W9 F' u- E    82f8:        e5bef008         ldr        pc, [lr, #8]!
* A" ?6 L$ g; d& g9 p5 R# S0 c    82fc:        000082d4         .word        0x000082d4/ j9 h& G/ Y- y. S3 {
    8300:        e28fc600         add        ip, pc, #0        ; 0x0
+ ?7 V  y" i, e1 N5 a    8304:        e28cca08         add        ip, ip, #32768        ; 0x8000
$ _# Z: O* H% y' g, ^, _$ V. i    8308:        e5bcf2d4         ldr        pc, [ip, #724]!+ [% R  |* D$ J0 H
    830c:        e28fc600         add        ip, pc, #0        ; 0x0
: m  U5 X- u% Y' i. A3 R: q7 n    8310:        e28cca08         add        ip, ip, #32768        ; 0x80000 J' x) ?9 U2 a6 h+ {5 c
    8314:        e5bcf2cc         ldr        pc, [ip, #716]!
* J6 I" B+ h. N, f# z7 g    8318:        e28fc600         add        ip, pc, #0        ; 0x0' \6 |7 K- e+ \: G
    831c:        e28cca08         add        ip, ip, #32768        ; 0x8000% g6 M. `7 n4 ?6 S; P, v; a9 A; }( M
    8320:        e5bcf2c4         ldr        pc, [ip, #708]!: f4 @1 ~, N6 o0 Y$ E; X6 w
arago:
! h' p7 ^2 g  _: t0000825c <.plt>:, I" ]( K1 ]/ q( M
    825c:        e52de004         push        {lr}                ; (str lr, [sp, #-4]!)- L7 a* a- Y: M0 J
    8260:        e59fe004         ldr        lr, [pc, #4]        ; 826c <_init+0x1c>
5 D- z: J' e/ Y  q' [, M    8264:        e08fe00e         add        lr, pc, lr5 W6 F) f) _" U9 R9 d
    8268:        e5bef008         ldr        pc, [lr, #8]!5 I6 ?4 B8 U5 o( i) e
    826c:        0000827c         .word        0x0000827c
: J8 @2 D- E8 E  `    8270:        e28fc600         add        ip, pc, #06 B9 o* z2 M3 E- i- Y6 D! X
    8274:        e28cca08         add        ip, ip, #32768        ; 0x80002 s% h. ]% v  I4 _3 O! G, Q
    8278:        e5bcf27c         ldr        pc, [ip, #636]!        ; 0x27c
+ h0 ]3 }. G5 k# X. }* r7 C    827c:        e28fc600         add        ip, pc, #0* @; G, B# G1 \8 f- L* T
    8280:        e28cca08         add        ip, ip, #32768        ; 0x8000% @" v3 r: W7 E8 B  ^% x, t
    8284:        e5bcf274         ldr        pc, [ip, #628]!        ; 0x274# R$ B2 ?, f$ q! j$ ~6 p
    8288:        e28fc600         add        ip, pc, #0
; j5 U8 @2 f  c! Q    828c:        e28cca08         add        ip, ip, #32768        ; 0x8000
; b' T1 O6 [7 Y, r& K    8290:        e5bcf26c         ldr        pc, [ip, #620]!        ; 0x26c
3 F4 B' b6 {, ~0 K9 n8 {none:
2 e7 v# A1 l/ [# n% S2 ?00008324 <_start>:
8 o+ |+ b$ ^; J5 Z0 j( g* `    8324:        e59fc024         ldr        ip, [pc, #36]        ; 8350 <_start+0x2c>
+ S* A3 u! P( y" E" e    8328:        e3a0b000         mov        fp, #0        ; 0x06 c, _. q* |. `& B2 g2 C% r5 |
    832c:        e49d1004         pop        {r1}                ; (ldr r1, [sp], #4)
  b& q1 F# X! m  P9 I! q6 |0 D7 B( U    8330:        e1a0200d         mov        r2, sp
3 x! g  a* d$ ?% q* L    8334:        e52d2004         push        {r2}                ; (str r2, [sp, #-4]!)* x3 U* D. l: w6 L, s1 p
    8338:        e52d0004         push        {r0}                ; (str r0, [sp, #-4]!); T' y8 I1 z& W
    833c:        e59f0010         ldr        r0, [pc, #16]        ; 8354 <_start+0x30>) q1 }4 S$ d+ ~" k% n1 V, C: j7 v
    8340:        e59f3010         ldr        r3, [pc, #16]        ; 8358 <_start+0x34>
# i8 Z3 G6 b" G) T7 h/ {. B* C    8344:        e52dc004         push        {ip}                ; (str ip, [sp, #-4]!)! B4 F3 E8 L7 P6 t
    8348:        ebffffef         bl        830c <_init+0x2c>
5 b3 D8 z, g5 t. p) m    834c:        ebffffeb         bl        8300 <_init+0x20>
# ?! z' k4 c1 _% z& k# F( P3 M    8350:        00008404         .word        0x00008404% v! y3 s  a: M( K0 g; F1 I
    8354:        000083cc         .word        0x000083cc
7 ]& }: b8 ~/ h    8358:        00008408         .word        0x00008408, c6 a7 c9 O( m. S
arago:
5 v; M' Z1 \1 W00008294 <_start>:; _: l7 o0 j$ A% Q8 {4 L) T2 w% D
    8294:        e3a0b000         mov        fp, #09 @& m1 t( T- I* q* f  s2 _
    8298:        e3a0e000         mov        lr, #0
% L) C% I5 b7 T6 w    829c:        e49d1004         pop        {r1}                ; (ldr r1, [sp], #4)" e5 C. v$ R% i; y. N4 O! h. f
    82a0:        e1a0200d         mov        r2, sp
- L. z  N5 G0 P    82a4:        e52d2004         push        {r2}                ; (str r2, [sp, #-4]!)# r' t3 d1 ]# n6 z
    82a8:        e52d0004         push        {r0}                ; (str r0, [sp, #-4]!)
" A7 T/ J- ?& B+ B    82ac:        e59fc010         ldr        ip, [pc, #16]        ; 82c4 <_start+0x30>
0 q) l! N- Q  _, e/ c0 t. e    82b0:        e52dc004         push        {ip}                ; (str ip, [sp, #-4]!)
7 R/ [% e9 ?- `( X' u- E7 X3 L4 S    82b4:        e59f000c         ldr        r0, [pc, #12]        ; 82c8 <_start+0x34>: M( o% V+ b6 o; v$ f% f# M7 S
    82b8:        e59f300c         ldr        r3, [pc, #12]        ; 82cc <_start+0x38>  g. o8 r7 H, w2 w0 o+ J$ |9 `
    82bc:        ebffffee         bl        827c <_init+0x2c>
  H/ f# L5 y; U, |- D    82c0:        ebffffea         bl        8270 <_init+0x20>$ P: }" \! x# m2 E& I
    82c4:        000083dc         .word        0x000083dc; x% Y8 C, V! F( j; X) c* ^8 F
    82c8:        00008344         .word        0x00008344  y/ X8 b8 g- ~9 P8 q9 K
    82cc:        0000837c         .word        0x0000837c
3 T5 ]$ e" L5 Q+ Hnone:8 H3 I2 S/ j9 p1 r; T
0000835c <call_gmon_start>:: U) q; y! H3 D5 ~, P, }
    835c:        e59f3014         ldr        r3, [pc, #20]        ; 8378 <call_gmon_start+0x1c>+ ~* Q1 |" O, G3 |
    8360:        e59f2014         ldr        r2, [pc, #20]        ; 837c <call_gmon_start+0x20>: T  y3 m7 s/ s  c- j, E$ Q& ?
    8364:        e08f3003         add        r3, pc, r3
% Q5 _. Q/ K; [, J- e# [    8368:        e7931002         ldr        r1, [r3, r2]
" n6 ~+ [3 j) g5 a    836c:        e3510000         cmp        r1, #0        ; 0x0
7 }% t' [, w3 X% x    8370:        012fff1e         bxeq        lr0 o) l4 M9 c. x1 u9 ]4 a9 R" q
    8374:        eaffffe7         b        8318 <_init+0x38>$ K# h1 y3 c: L' ^* `4 q4 C9 W
    8378:        00008264         .word        0x000082646 q! c) U- H6 t) u
    837c:        00000018         .word        0x00000018
* U1 }$ I' P# A" b' Rarago:
9 L! ]2 U# `: R+ O0 w: n. v' z: G000082d0 <call_gmon_start>:
9 m8 J6 z( b0 t/ e! i/ o; |    82d0:        e59f3014         ldr        r3, [pc, #20]        ; 82ec <call_gmon_start+0x1c>8 w- C6 U: Z$ Y3 E
    82d4:        e59f0014         ldr        r0, [pc, #20]        ; 82f0 <call_gmon_start+0x20>& n6 ]+ S; X: x
    82d8:        e08f3003         add        r3, pc, r33 W% _2 M* K0 h  ~: e, Z
    82dc:        e7932000         ldr        r2, [r3, r0]6 v& }1 k. G- l5 Z; w- P' `
    82e0:        e3520000         cmp        r2, #0& w5 g8 [: o* p6 Z
    82e4:        012fff1e         bxeq        lr: X2 K; [% L" a& Q1 s: y  p
    82e8:        eaffffe6         b        8288 <_init+0x38>8 w' _$ D4 s+ P
    82ec:        00008208         .word        0x00008208
* o$ x& J! f! J' |, U3 J9 u    82f0:        00000018         .word        0x00000018" @( |8 I; o9 ?( \
none:
1 J! D* _1 H$ {& W- w* }2 T00008380 <__do_global_dtors_aux>:: h! L& H$ W9 ~4 P
    8380:        e59f2010         ldr        r2, [pc, #16]        ; 8398 <__do_global_dtors_aux+0x18>9 K3 ]8 W4 ?1 u9 ^2 n
    8384:        e5d23000         ldrb        r3, [r2]
* ?9 x* k, n" N. L5 l/ ~    8388:        e3530000         cmp        r3, #0        ; 0x0
# B3 Z2 e5 E+ I8 O8 `  \    838c:        03a03001         moveq        r3, #1        ; 0x1' a4 E, R: h  ?8 [* G2 y) v
    8390:        05c23000         strbeq        r3, [r2]5 X2 O& ^( G( q3 N
    8394:        e12fff1e         bx        lr
* H# l5 W* \6 o5 Y$ X) ]! Y& f/ p, c& C    8398:        000105f4         .word        0x000105f49 Z& Q" |$ `8 u: s
arago:
/ e7 P! P9 e5 M, c8 ?. _: R000082f4 <__do_global_dtors_aux>:7 l9 t9 Z# }3 v
    82f4:        e59f3010         ldr        r3, [pc, #16]        ; 830c <__do_global_dtors_aux+0x18>( Y2 A( X9 i+ O
    82f8:        e5d32000         ldrb        r2, [r3]
: w# m  O$ [- D9 L! q& ~% e) U6 y    82fc:        e3520000         cmp        r2, #06 F! q+ h! A! `/ N0 d
    8300:        02822001         addeq        r2, r2, #18 A: x# n, h, G7 w
    8304:        05c32000         strbeq        r2, [r3]
3 b5 V) ?2 V$ z7 B; A4 T: }    8308:        e12fff1e         bx        lr! S2 A- \; i. N
    830c:        0001050c         .word        0x0001050c* p8 C; }) A4 U
none:
: z7 m* C+ r6 w# _/ I4 |! r0000839c <frame_dummy>:
% P& I9 l: V" N9 \* }' O    839c:        e59f0020         ldr        r0, [pc, #32]        ; 83c4 <frame_dummy+0x28>
- N/ Z% {: \7 P8 S    83a0:        e92d4010         push        {r4, lr}/ S" ?$ S$ k! W7 O: Y
    83a4:        e5903000         ldr        r3, [r0]
" _" ]% e; W; k, h+ V" f    83a8:        e3530000         cmp        r3, #0        ; 0x04 L2 a7 U1 V7 _& Y5 I  H
    83ac:        08bd8010         popeq        {r4, pc}
+ J* Z: p& V& H    83b0:        e59f3010         ldr        r3, [pc, #16]        ; 83c8 <frame_dummy+0x2c>
: d2 W: l( g; @* z& p    83b4:        e3530000         cmp        r3, #0        ; 0x0
9 U( \3 g) x) j- l* |' B! u    83b8:        08bd8010         popeq        {r4, pc}: [8 \& o% S9 G
    83bc:        e12fff33         blx        r38 d) P# j3 C0 a
    83c0:        e8bd8010         pop        {r4, pc}5 n, F+ ~5 @( z; u4 t- ^; s
    83c4:        000104dc         .word        0x000104dc7 z: t5 @- E$ K) B0 K
    83c8:        00000000         .word        0x00000000
) t8 V& U+ r5 ]& [7 l# ?4 k' xarago:5 a6 D: ~* i; S4 }8 {
00008310 <frame_dummy>:6 y+ V) G( ^. J1 q
    8310:        e59f0024         ldr        r0, [pc, #36]        ; 833c <frame_dummy+0x2c>
  D' x6 b5 m8 A9 I$ N$ T" E    8314:        e92d4008         push        {r3, lr}+ r" @5 W8 y& J
    8318:        e5903000         ldr        r3, [r0]
9 @- Z% c& `' ~5 ^5 Y7 f) ~    831c:        e3530000         cmp        r3, #05 D8 b2 F' j! ], w6 G$ I/ N
    8320:        0a000003         beq        8334 <frame_dummy+0x24>
% H% _- o+ J: c# P+ }; z    8324:        e59f3014         ldr        r3, [pc, #20]        ; 8340 <frame_dummy+0x30>4 a0 G# H" k, [9 V1 Z0 q9 s+ a2 J
    8328:        e3530000         cmp        r3, #0, l) E2 z$ K+ s( ]3 a/ u3 m
    832c:        11a0e00f         movne        lr, pc
/ m4 |& e* O2 B% Z% G% u    8330:        112fff13         bxne        r30 h# S- _, R( `9 i6 J$ L: S5 q8 _
    8334:        e8bd4008         pop        {r3, lr}
% g- y0 A( W% E    8338:        e12fff1e         bx        lr
, t4 D5 V$ p3 c2 F& a7 c# R    833c:        000103fc         .word        0x000103fc
  V) H5 w. F. O  v. b2 y    8340:        00000000         .word        0x000000004 Q* k1 V$ l; \9 @7 V  z$ C1 C
none:
; ~* @( d7 w# {1 Q( w& w- {$ v9 S0 c' a000083cc <main>:
. d+ \* g& s- g( }' U0 v4 h0 ^1 T    83cc:        e52db004         push        {fp}                ; (str fp, [sp, #-4]!)
; w% P4 @: n$ t, B' Z* r    83d0:        e28db000         add        fp, sp, #0        ; 0x0
* d" p; o$ |; k( b4 u* x$ g    83d4:        e24dd01c         sub        sp, sp, #28        ; 0x1c" F3 t) X, F; I8 G, p
    83d8:        e50b0018         str        r0, [fp, #-24]) ]: N, L/ V2 F
    83dc:        e50b101c         str        r1, [fp, #-28]
$ H' V3 v9 t9 M: N+ a. q9 B    83e0:        e51b2010         ldr        r2, [fp, #-16]  j0 e: b; x! g9 Y  N( o
    83e4:        e51b300c         ldr        r3, [fp, #-12]" I1 x- h" }" E; w& H- g; z. \: p; X
    83e8:        e0030392         mul        r3, r2, r3
  o) a; ]1 ^. G- l4 f" d% f' x    83ec:        e50b3008         str        r3, [fp, #-8]
! f$ }, Z2 O, o8 ]8 ]    83f0:        e3a03000         mov        r3, #0        ; 0x0
) T' ]$ p/ \7 T4 k    83f4:        e1a00003         mov        r0, r38 L" w( l5 m9 V4 g9 D6 ^: E
    83f8:        e28bd000         add        sp, fp, #0        ; 0x0
6 t& C' m$ I1 }9 m. z1 a" \    83fc:        e8bd0800         pop        {fp}
& Z6 D! M% a" a) I+ d    8400:        e12fff1e         bx        lr
2 [' p: {0 d, b9 jarago:
0 t: Y6 N3 G  m0 i00008344 <main>:2 B9 A% |, Q& H; n' F
    8344:        e52db004         push        {fp}                ; (str fp, [sp, #-4]!)( @' Z- b$ Y( o& p8 D- h. q( N
    8348:        e28db000         add        fp, sp, #07 E# u7 B$ E  p# c7 _6 A# X2 J
    834c:        e24dd01c         sub        sp, sp, #284 X: x' \: y, u/ S: S, v
    8350:        e50b0018         str        r0, [fp, #-24]$ l" q3 E' A9 J
    8354:        e50b101c         str        r1, [fp, #-28]0 c# N; L$ _1 f
    8358:        e51b3008         ldr        r3, [fp, #-8]* t) R. K% C1 e& {# m6 D+ V
    835c:        e51b200c         ldr        r2, [fp, #-12]
, R$ _9 X& u- L1 {" O    8360:        e0030392         mul        r3, r2, r3
$ K  M' R( B7 {! A; U    8364:        e50b3010         str        r3, [fp, #-16]* `: q9 `  p4 [
    8368:        e3a03000         mov        r3, #07 n, ]( j/ N  }
    836c:        e1a00003         mov        r0, r3
  ?# ^. o0 \% K    8370:        e28bd000         add        sp, fp, #0
! ~7 R6 f. P- L- {    8374:        e8bd0800         pop        {fp}
0 n% N* s9 q& b9 K8 D    8378:        e12fff1e         bx        lr, t- c) Y4 R  J- M" h, q1 J# d* W
none:2 [: ~3 _& f& I/ I7 M, J* [3 Q9 V
00008404 <__libc_csu_fini>:& Y' U2 U* S0 @6 [
    8404:        e12fff1e         bx        lr/ ~7 g+ e) c' A- ]
arago:. a1 u7 f. Z# L4 S7 P9 D
000083dc <__libc_csu_fini>:
# J0 k/ r( x. H1 K0 H8 O    83dc:        e12fff1e         bx        lr9 Z( k& i; i) B  M
none:/ m( S7 f4 [8 f: Z
00008408 <__libc_csu_init>:. c. e) h" D+ j- G
    8408:        e92d47f0         push        {r4, r5, r6, r7, r8, r9, sl, lr}8 D* U  w8 A7 t/ I* J
    840c:        e1a08001         mov        r8, r1
* Q/ d9 M+ X) v! P. L" J7 J    8410:        e1a07002         mov        r7, r2- ]5 _7 D/ s5 c+ h9 v  {# \
    8414:        e1a0a000         mov        sl, r0: v- G( ~. h) e! E. x! j' }
    8418:        ebffffb0         bl        82e0 <_init>5 C0 W! X' }/ i
    841c:        e59f1044         ldr        r1, [pc, #68]        ; 8468 <__libc_csu_init+0x60>4 X5 Y. m) ], J$ ]
    8420:        e59f3044         ldr        r3, [pc, #68]        ; 846c <__libc_csu_init+0x64>
* j5 z) @& w- w' I# e0 f    8424:        e59f2044         ldr        r2, [pc, #68]        ; 8470 <__libc_csu_init+0x68>
4 N- ]9 D5 a4 a, u& ^# f( i    8428:        e0613003         rsb        r3, r1, r3+ L9 i* q3 V# L# J$ @9 d* z/ d
    842c:        e08f2002         add        r2, pc, r27 o6 h5 n! i8 \. q
    8430:        e1b05143         asrs        r5, r3, #2- m% b1 n- m; v- X5 }* b% @
    8434:        e0822001         add        r2, r2, r1' p. x) {& t1 r
    8438:        08bd87f0         popeq        {r4, r5, r6, r7, r8, r9, sl, pc}% @. S( k' F9 u
    843c:        e1a06002         mov        r6, r29 n2 d9 f( E# m8 L. A' S/ n0 {
    8440:        e3a04000         mov        r4, #0        ; 0x0
$ @0 U: Y$ e- [. \8 c    8444:        e1a0000a         mov        r0, sl
9 k5 }5 {/ x* S5 w- D$ M6 i    8448:        e1a01008         mov        r1, r88 p7 g. b4 @$ W! o
    844c:        e1a02007         mov        r2, r7
3 w& r& C' X1 g, z. U6 a7 q& ~4 W    8450:        e1a0e00f         mov        lr, pc
# v+ s% T3 O( F, y. r# \5 K    8454:        e796f104         ldr        pc, [r6, r4, lsl #2]
/ o9 Y7 b. q. I/ t7 r7 p  w+ s1 F    8458:        e2844001         add        r4, r4, #1        ; 0x1) p1 C  l, o+ |" x" R. x
    845c:        e1540005         cmp        r4, r54 f- \/ B$ k! t3 o6 O
    8460:        3afffff7         bcc        8444 <__libc_csu_init+0x3c>
: w# {) z% V9 s6 r1 \: o    8464:        e8bd87f0         pop        {r4, r5, r6, r7, r8, r9, sl, pc}8 |( w4 E9 d6 Z* m2 c- l
    8468:        ffffff04         .word        0xffffff04
! Q( q6 K0 p" }8 d% s    846c:        ffffff08         .word        0xffffff08
3 I. N/ B, \) \; \    8470:        0000819c         .word        0x0000819c
; A1 h' E# ^4 i' O2 Y% s- q. o0 Sarago:+ |. x1 n6 }2 m; i/ X0 z1 T/ l
0000837c <__libc_csu_init>:  v% x. L/ @8 m# V3 A. _# i7 f
    837c:        e92d45f8         push        {r3, r4, r5, r6, r7, r8, sl, lr}
% L" p, P; l# V3 S( ^" M    8380:        e59fa04c         ldr        sl, [pc, #76]        ; 83d4 <__libc_csu_init+0x58>% l  H6 {* M5 ?' Y% F
    8384:        e1a06000         mov        r6, r0- G1 u7 \0 F4 |9 `* x1 B7 y
    8388:        e1a07001         mov        r7, r1
! I3 M6 `" l4 {" r& q0 Y    838c:        e1a08002         mov        r8, r2
# j& K1 {4 L, \) S' h6 L    8390:        ebffffae         bl        8250 <_init>8 h* {9 e. t( Z: Z0 y# [3 }
    8394:        e59f103c         ldr        r1, [pc, #60]        ; 83d8 <__libc_csu_init+0x5c>
1 B, {6 y- ?* c- C5 G/ s5 m7 D    8398:        e08fa00a         add        sl, pc, sl# _/ n  h& P! _+ o
    839c:        e08f0001         add        r0, pc, r1
0 {) }; n; S5 b  f0 r* @    83a0:        e06a5000         rsb        r5, sl, r0
* \5 ^) H1 W1 d7 U) b' P    83a4:        e1b05145         asrs        r5, r5, #2. h# n7 ^+ Z! Z9 H
    83a8:        08bd85f8         popeq        {r3, r4, r5, r6, r7, r8, sl, pc}* _  @) A  i- y9 a
    83ac:        e3a04000         mov        r4, #0
7 J( x& O+ \2 s    83b0:        e79a3104         ldr        r3, [sl, r4, lsl #2]
0 k9 R/ T: P4 d0 X    83b4:        e1a00006         mov        r0, r6
8 {. W( R7 U2 R, H    83b8:        e1a01007         mov        r1, r75 s) i8 v% D4 h- m: n# v8 @
    83bc:        e1a02008         mov        r2, r8
! R; e* M; H3 W- @4 m    83c0:        e2844001         add        r4, r4, #1
7 y. c( g% ?; j7 p( ~" i* v/ t    83c4:        e12fff33         blx        r3
/ r. ]/ R1 f- S* r( ~/ m    83c8:        e1540005         cmp        r4, r5
8 Q+ F* F, ?5 v" Y9 ]    83cc:        3afffff7         bcc        83b0 <__libc_csu_init+0x34>
6 K# c* m( t+ y    83d0:        e8bd85f8         pop        {r3, r4, r5, r6, r7, r8, sl, pc}
3 ]/ }2 j3 \/ I9 R, h. m    83d4:        00008054         .word        0x00008054: L, _/ y& G8 F0 U
    83d8:        00008054         .word        0x00008054
1 p+ \) n' y+ @% W1 g* W! ~4 a" Ynone:: O1 u6 _/ p4 v
Disassembly of section .fini:* ~. w6 Y3 x3 X  \+ U5 H- Z

$ ]1 U) R$ R' C* L) [# I00008474 <_fini>:
+ r! _9 d% l8 s) B9 [' O2 }. Z; i    8474:        e92d4010         push        {r4, lr}
( Y9 T6 ]# t6 Q$ \8 L! l    8478:        e8bd8010         pop        {r4, pc}- a+ H3 l4 S6 f& |; H2 l& f: c, S
arago:7 n. {4 t0 t/ g  ~0 D4 p* u
Disassembly of section .fini:* ^/ W% q; n2 ]* z

" `+ m8 L4 [' a000083e0 <_fini>:0 p8 x$ u# |1 S3 }
    83e0:        e92d4008         push        {r3, lr}* ]8 \# Q' g7 I- g/ {" h7 F" H
    83e4:        e8bd8008         pop        {r3, pc}& F$ z* X& x- `7 M  i; y! K

9 L/ M. |/ h8 [' P8 W7 M7 v8 d+ O/ O+ O

1 n$ U) A4 @- _8 o7 h+ N
回复 支持 反对

使用道具 举报

0

主题

113

帖子

2134

积分

创龙

Rank: 8Rank: 8

积分
2134
6#
发表于 2016-6-21 16:35:00 | 只看该作者
粗看是使用的寄存器有点不同。
, n, d) `8 q* i3 L! A. d$ u我觉得这个基本程序代码的汇编差异不会有什么结果上的影响。" \% f8 b9 h' Y4 i/ n
关键可能在于对于 TI 本身提供的一些特性,arago 针对其进行优化,这类的影响才会比较大吧。
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-11-29 03:29 , Processed in 0.058960 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2015 Comsenz Inc.

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