话不多说,直接上干货
#pragma import(__use_no_semihosting)
void _sys_exit(int x)
{
x = x;
}
struct __FILE
{
int handle;
};
FILE __stdout;
void _ttywrch(int ch)
{
ch = ch;
}
以上代码直接复制到文件开头,头文件下即可
话不多说,直接上干货
#pragma import(__use_no_semihosting)
void _sys_exit(int x)
{
x = x;
}
struct __FILE
{
int handle;
};
FILE __stdout;
void _ttywrch(int ch)
{
ch = ch;
}
以上代码直接复制到文件开头,头文件下即可