Discussion Forum

printf is linked although I do not use the function printf() in C code

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
Harris Lai
Posted
1-Aug-2002 06:45 GMT
Toolset
C51
New! printf is linked although I do not use the function printf() in C code
I dont use printf() function in my project,
but I check the output file .m51, I saw the printf() function occupy my code space in common area(with bank switch).
and you know it take large space.
can you tell me how I remove off this moudle ?
below is my .m51 content.

..
C:\KEIL\C51\LIB\C51L.LIB (PRINTF)
..
DATA 0018H 0005H UNIT ?DT?PRINTF?PRINTF
BIT 0020H.0 0001H.1 UNIT ?BI?PRINTF?PRINTF
..
XDATA 60F0H 0028H UNIT ?XD?PRINTF?PRINTF
..
CODE 1414H 0365H UNIT ?PR?PRINTF?PRINTF
Read-Only
Author
Martin Mittelberger
Posted
1-Aug-2002 08:04 GMT
Toolset
C51
New! RE: printf is linked although I do not use the function printf() in C code
Hi Harris,

it's the same thing in my project - but I use the sprintf function.
Maybe sprintf calls printf...just a thought...

Bye,

Martin
Read-Only
Author
Harris Lai
Posted
1-Aug-2002 09:18 GMT
Toolset
C51
New! RE: printf is linked although I do not use the function printf() in C code
Hi Martin,

Thanks a lot.

Next Thread | Thread List | Previous Thread Start a Thread | Settings