when i build my code without sprintf it works fine. i could run without any issue ( lot of files) . when sprintf() added then crashes . Why .text increases ?
please clarify .
CCS version - 3.3
Compiler version -6.1.5 processor - 6747
1. i feel sprintf() internally consumes more memory .
2. i allcoated .sysmem allocated with -heap 0x5000 in cmd file.
.sysmem :{} >DATA align(8)
3. There is a huge increase in .text section which goes into PROG memory . ( 0x2f40)
with sprintf - .text section - 0x12a00 ( size)
without printf -- text section - 0xfaco (size)
4. no compiler optimisation selected
5. memory model - far aggregate
6. library used rts64plus.lib
Extra code added with existing code - sprintf added
char msg[10];
char print_msg[10]= "hello";
sprintf(msg," %s",print_msg);