嵌入式开发者社区

标题: omapl138 c程序中嵌入汇编问题 [打印本页]

作者: vtinf    时间: 2016-11-22 18:09
标题: omapl138 c程序中嵌入汇编问题
您好,请问omapl138 c程序中嵌入汇编问题。下面代码汇编程序是怎样的呢?, ?0 Q' ~% F) \& J1 u* y$ r6 U4 s

! P5 Y, p; H2 e4 `' v* w# cint16_t raw  ;
# y$ X7 n7 b/ Gdouble tempin = 0.0 ;1 d, |" [$ i* J
double tempout = 0.0 ;$ X1 _9 A+ g0 ^( g" u9 I

; V* x* Q) v) S" g% y8 ]float alpha = 1.8  ;
% a" v, U( z' s3 c( bfloat gamma = 1.6  ;
$ b' y1 [* U' Y. P9 c% ~5 n. k; C/ U
double InHistory = 0 ;
% U: c7 B8 ]( |& G8 D" |( Bdouble OutHistoy = 0 ;" q$ [# w; A# h) b$ t6 i

) c5 Q+ o4 |( r) N9 j9 F# X# Atempin =  (float)raw * 10.0 / 65536.0 ;2 O4 m- d3 j$ p) S, [* V
tempout = alpha*(InHistory + tempin) + gamma*OutHistoy ;% d- n: A2 Y6 ~) @% q
InHistory = tempin;
+ P2 R( j4 a; b' k3 XOutHistoy = tempout ;4 o5 K7 u$ T9 ~# |4 W: ]) W

; n  \% p& ?1 B+ }4 D
作者: 希望缄默    时间: 2016-11-24 08:52
编译时加上 -k 参数就可以看到生成的同名汇编文件




欢迎光临 嵌入式开发者社区 (https://www.51ele.net/) Powered by Discuz! X3.4