mips 组装问题
我的 mips 端口有问题...每当我尝试使用 printf 语句编译 C 程序时,它都会发出警告,指出它无法识别,并且在生成的汇编文件中没有 .asciiz 指令...该字符串是不在那里....有人可以告诉我为什么吗?
构建裸机交叉编译器和交叉工具链之间有什么区别
我是交叉编译器世界的新手......:-)
I have aproblem with my mips port....Whenever i try to compile a C program with a printf statement it gives a warning saying it is not recognized and in the generated assemble file there is no .asciiz directive...The string is not there....can anyone please tell me why??
And also what is the difference in between building a bare metal cross compiler and a cross-toolchain
i am new to the world of cross compilers....:-)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
确保
您的 C 源文件顶部有使用
printf
的内容。Make sure you have
at the top of your C source files that use
printf
.交叉编译器(即 gcc )之间的区别是什么?是交叉工具链的一部分。
除了 gcc 之外,我们还需要
查看 本书了解详细信息。
cross compiler (which is gcc ) is part of the cross-toolchain.
Beside gcc , we still need
check out this book for detail.
你编译得怎么样? Eclipse 还是命令行?我在使用 Eclipse 时遇到了类似的问题,并发现 Eclipse 中的处理器系列为“空”。这导致汇编器无法理解编译器的输出,类似于您所描述的症状。
交叉编译器与普通编译器并没有什么不同:
对于GCC,它可能会加载一个或多个处理器系列。 Cygwin 附带的 GCC 相当有限(i686);在Linux中你会有更多的选择。我建议你提出一个关于如何设置交叉编译的不同问题,你需要帮助。
How are you compiling? Eclipse or command line? I had a similar problem using Eclipse and found out that the processor family was 'empty' in Eclipse. This resulted in the assembler not understanding the output of the compiler, similar to the symptoms you've described.
Cross compilers are not all that different from normal compilers:
In case of GCC, it may be loaded with one or more processor families. The GCC which comes with Cygwin is pretty limited (i686); in Linux you'll have more choice.I suggsest you raise a different question on how to set up cross-compilation of you need help.