#include "stdio.h"
int main(void){
char sf[23];
float s = 0.1243;
sprintf(sf,"%f",s);
printf ("helloworld");
return 0;
}
目前使用CCS7.0,编译已经通过,仅用两个警告如下:
Description Resource Path Location Type
#10210-D creating ".esysmem" section with default size of 0x400; use the -heap option to change the default size EVC_SYSTEM C/C++ Problem
#10247-D creating output section ".cio" without a SECTIONS specification EVC_SYSTEM C/C++ Problem。
烧写到28377s lanchpad中,代码执行到sprintf(sf,"%f",s);语句后就终止了。在printf ("helloworld");处设置断点执行不到,请问这是什么原因造成的?