总的来说,在uClinux上的开发和标准Linux还是很类似的。通常可以按照下面的步骤去设计和调试: 建立基于以太网的开发环境; 如果所设计的程序和硬件的关联不...
代码说明:
总的来说,在uClinux上的开发和标准Linux还是很类似的。通常可以按照下面的步骤去设计和调试: 建立基于以太网的开发环境; 如果所设计的程序和硬件的关联不大,那么一定要在标准Linux上先编译和调试通过。灵活地使用gcc和gdb将大大节省时间; 将x86上的GCC编译好的应用程序用交叉编译工具来编译;如果编译时发现错误,那么很可能存在以下问题: 交叉编译器或库文件的路径不正确;最彻底的解决办法是重新装一次编译器; 遇到库不支持的函数;此时需要自己把函数的实现做成另外一个库供应用程序使用。如果是uClinux本身不支持的调用,那么就需要改写代码了。-Overall, the uClinux on the development and standard Linux is still very similar. Usually can use the following steps to design and debug : Ethernet-based development environment; If the design of the procedure and not linked to the hardware, then it must be the first standard Linux compiler and debugging through. Flexibility in the use of gdb and gcc will greatly save time; X86 will be on the GCC-compiled application with cross-compiler tool to compile; If you compile time error is found, it was very likely that the following issues : cross-compilers or libraries are not the correct path; The most radical solution is a re-installed time compiler; encountered does not support functions; At this time the need to
下载说明:请别用迅雷下载,失败请重下,重下不扣分!