1, 我的设置:
a, codewarrior: entry point&&RO base = 0x8000
b, AXD设置为semihosting, Target为Armulate
c, 代码:
#include <stdio.h>
extern void strcopy(char *d, const char *s);
int Main()
{
const char* srcStr = "First string--sources";
char dstStr[] = "Second string - destination";
printf(" %s\n %s\n", srcStr, dstStr);
/*
strcopy(dstStr, srcStr);
printf("After copying: \n");
printf(" %s\n %s\n", srcStr, dstStr);
*/
return 0;
}