syenidogan
Member level 1
- Joined
- Mar 6, 2014
- Messages
- 41
- Helped
- 2
- Reputation
- 4
- Reaction score
- 3
- Trophy points
- 8
- Activity points
- 297
without
sprintf(lcddata,"C.TEMP:%.02fC" ,dert);
Memory Summary:
Program space used 45Eh ( 1118) of 1000h words ( 27.3%)
Data space used 53h ( 83) of 170h bytes ( 22.6%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Configuration bits used 0h ( 0) of 2h words ( 0.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
Loaded E:\pic_projeler\1 wire bus ds18b20\1wiresergu\1wire.cof.
********** Build successful! **********
with
sprintf(lcddata,"C.TEMP:%.02fC" ,dert);
Memory Summary:
Program space used F23h ( 3875) of 1000h words ( 94.6%)
Data space used 97h ( 151) of 170h bytes ( 41.0%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Configuration bits used 0h ( 0) of 2h words ( 0.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
Loaded E:\pic_projeler\1 wire bus ds18b20\1wiresergu\1wire.cof.
********** Build successful! **********
compiler is HI-TECH C Compiler for PIC10/12/16 MCUs (PRO Mode) V9.83
these are the output without and with sprintf. why program space usage are changing too much. (from %27.3 %to 94.6)
sprintf(lcddata,"C.TEMP:%.02fC" ,dert);
Memory Summary:
Program space used 45Eh ( 1118) of 1000h words ( 27.3%)
Data space used 53h ( 83) of 170h bytes ( 22.6%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Configuration bits used 0h ( 0) of 2h words ( 0.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
Loaded E:\pic_projeler\1 wire bus ds18b20\1wiresergu\1wire.cof.
********** Build successful! **********
with
sprintf(lcddata,"C.TEMP:%.02fC" ,dert);
Memory Summary:
Program space used F23h ( 3875) of 1000h words ( 94.6%)
Data space used 97h ( 151) of 170h bytes ( 41.0%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Configuration bits used 0h ( 0) of 2h words ( 0.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
Loaded E:\pic_projeler\1 wire bus ds18b20\1wiresergu\1wire.cof.
********** Build successful! **********
compiler is HI-TECH C Compiler for PIC10/12/16 MCUs (PRO Mode) V9.83
these are the output without and with sprintf. why program space usage are changing too much. (from %27.3 %to 94.6)