Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个针对 ARM 优化并使用 armcc 编译的 C 代码。我想尽可能减少二进制文件的大小。从我正在使用的标准库
printf(); fopen(); fread(); fwrite(); memset();
我找到了提供给链接器的选项“-nostdlib”。这个选项大大减少了二进制文件的大小,但它给了我关于 printf 的未定义引用的错误,例如排除标准库但仍然使用这些函数的正确方法是什么?