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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
2,278 Views
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

Labels (1)
Tags (1)
0 Kudos
1 Solution
634 Views
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

View solution in original post

0 Kudos
4 Replies
634 Views
tiny
Contributor I
oh...i see,thank you very much
0 Kudos
634 Views
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 Kudos
635 Views
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 Kudos
634 Views
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 Kudos