HC12: Are there any differences between ansis.lib and ansisi.lib?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

HC12: Are there any differences between ansis.lib and ansisi.lib?

跳至解决方案
2,349 次查看
tiny
Contributor I
hi:
The CW31 selected ansis.lib when I created a s12 project from stationery ,
but when i created the project using project wizard,it would choose the ansisi.lib as RTL

Message Edited by CrasyCat on 2007-04-13 01:39 PM

标签 (1)
标记 (1)
0 项奖励
1 解答
705 次查看
CrasyCat
Specialist III
Hello
 
The file {Install}\lib\HCI\readme.txt explains it a little bit.
 
 ansisi.lib   is used when you specify you want no floating point support. (option -D__NO_FLOAT__ )
 ansisf.lib   is used when you want to get float represented as 32-bit IEEE and double as 64-bit IEEE 
                  (option -Cf)
 ansis.lib    is used when you want to have both float and double represented as 32 bit IEEE.
 
As far as I can tell the 3 choices are available in the wizard for floating point support.
 
I hope this makes it a little bit clearer.
 
CrasyCat

在原帖中查看解决方案

0 项奖励
4 回复数
705 次查看
tiny
Contributor I
oh...i see,thank you very much
0 项奖励
705 次查看
tiny
Contributor I
thank you, cat
In small mode,
I noticed that CW31 would link ansisf.lib if float data type specified,and  ansisi.lib if not.
but the problem is in wich condition  would ansis.lib be used.
is ansis=ansisi+ansisf ?
0 项奖励
706 次查看
CrasyCat
Specialist III
Hello
 
The file {Install}\lib\HCI\readme.txt explains it a little bit.
 
 ansisi.lib   is used when you specify you want no floating point support. (option -D__NO_FLOAT__ )
 ansisf.lib   is used when you want to get float represented as 32-bit IEEE and double as 64-bit IEEE 
                  (option -Cf)
 ansis.lib    is used when you want to have both float and double represented as 32 bit IEEE.
 
As far as I can tell the 3 choices are available in the wizard for floating point support.
 
I hope this makes it a little bit clearer.
 
CrasyCat
0 项奖励
705 次查看
CrasyCat
Specialist III
Hello
 
If you specify floating point support as None and small memory model in the wizard,  ansisi.lib file will be linked to the application .
 
CrasyCat
0 项奖励