嵌入式开发者社区
标题:
omapl138 c程序中嵌入汇编问题
[打印本页]
作者:
vtinf
时间:
2016-11-22 18:09
标题:
omapl138 c程序中嵌入汇编问题
您好,请问omapl138 c程序中嵌入汇编问题。下面代码汇编程序是怎样的呢?
0 t3 {* L1 [5 R7 U
" N3 T* r1 h, M0 w- R
int16_t raw ;
7 z8 ?6 S( t7 S4 ?
double tempin = 0.0 ;
7 w* m2 p& @8 f
double tempout = 0.0 ;
* R/ H6 I% Y) \ R1 }( J7 U
+ }8 D+ v% _% a* w/ t2 e( L1 `' x
float alpha = 1.8 ;
' c; f& R- R! I) d" T
float gamma = 1.6 ;
* a9 Z; S" M* w- y8 o
3 V! `7 n2 O5 x/ P0 y( T
double InHistory = 0 ;
' P. n1 P% ^+ B5 S( w) |8 D- p' G
double OutHistoy = 0 ;
8 W* _) Z* ]/ m7 o
" o( g8 P& r e$ T
tempin = (float)raw * 10.0 / 65536.0 ;
& d, K. F: N% j4 Q3 x% ~4 e
tempout = alpha*(InHistory + tempin) + gamma*OutHistoy ;
4 h! j+ Q w0 C8 b& b! l! D
InHistory = tempin;
) s1 i9 P) I$ K0 y$ \
OutHistoy = tempout ;
: z; V0 X$ e$ Q- n
$ F0 ?$ |, f: Y. p; t# X. \; _# C
作者:
希望缄默
时间:
2016-11-24 08:52
编译时加上 -k 参数就可以看到生成的同名汇编文件
欢迎光临 嵌入式开发者社区 (https://www.51ele.net/)
Powered by Discuz! X3.4