柠檬试题库
search
首页 计算机 公务员 驾照 关于

若基于Linux操作系统所开发的ARM应用程序源文件名为test.c,那么要生成该程序代码的调试信息,编译时使用的GCC命令正确的是( )。


  • A.arm-linux-gcc -c -o test.o test.c
  • B.arm-linux-gcc -S -o test.o test.c
  • C.arm-linux-gcc -o test test.c
  • D.arm-linux-gcc -g -o test test.c
热度🔥551
参考答案:D
解析:

【解析】要对源程序进行调试,通常需要在GCC命令中加入参数-g。故本题选D。
复制题目向AI提问