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
  • Thanks for your responses.

    To clarify, I'm specifically interested in v8 (or v8.1a). Gdbserver will be fine for now.

    I *thought* I was interested in baremetal because I thought that was what the Foundation Model simulated. If the Foundation Model simulates a Linux platform, then that's fine, but I'll need to learn how to load it.

    But to get anywhere with this, I'll need to understand the compiler options required for an executable that can run on the Foundation Model.

    Thanks again.

Reply
  • Thanks for your responses.

    To clarify, I'm specifically interested in v8 (or v8.1a). Gdbserver will be fine for now.

    I *thought* I was interested in baremetal because I thought that was what the Foundation Model simulated. If the Foundation Model simulates a Linux platform, then that's fine, but I'll need to learn how to load it.

    But to get anywhere with this, I'll need to understand the compiler options required for an executable that can run on the Foundation Model.

    Thanks again.

Children