This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

GCC/GDB questions

I'm evaluating the ARM DS-5 and Linaro toolchains and the FVP model simulators. I'm starting with the DS-5 Community Edition and the Foundation Profile simulator before advancing to the commercial tools. So I have a few questions:

  • The hello.c example included with the Foundation Profile simulator download package includes a compiled executable that runs on the Foundation Profile simulator. But the included Makefile is based on the commercial ARM compiler and not the Linaro version of GCC included in DS-5 Community Edition. Could you provide a GCC command-line example for compiling and linking hello.c for running on the (v8.1a) simulator?
  • The DS-5 Community Edition includes an Eclipse-based IDE and a compiler toolchain based on GCC 4.8.3. Yet http://www.arm.com/products/tools/models/fast-models/foundation-model.php suggests that the Foundation Platform simulator model uses a GDB connection while the FVP simulator model provides "non-intrusive debug support with DS-5". Can I debug code running on a Foundation Platform simulator model using the DS-5 Community Edition IDE or am I limited to GDB?
  • Is there a simple gdbserver setup example?
Parents Reply Children
  • Hi,

    Just to note, the cross compiler Simon linked is for ARMv8-A AArch32 / legacy ARMv7 code generation. You'll need a different one to compile ARMv8-A AArch64 code. They're slightly older (2 months) than the 14.11 releases linked earlier, but you can check here for binaries that will run on both Windows and Linux (the 14.11 ones linked earlier come prebuilt only for Linux).

    Namely, the binary you will want is this one on a Windows host, or this one on a Linux host.