参考文档:
Andes_Programming_Guide_for_ISA_V3_PG010_V1.2
Andes 实现printf的重映射需要重新实现putchar()函数和nds_write()
具体实现如下:
int putchar(int c)
{
\\user_putchar();
return c;
}
attribute((used))
void nds_write(const unsigned char *buf, int size)
{
\\user_putchar();
}