title: Configuring GCC with FreeRTOS and OpenOCD
body: <p>I'm pretty sure this is possible but I'm not sure how to go about it. I'm very new to building with GCC in general and I have never used FreeRTOS, but I'd like to try getting the OS up and running on a TI ARM Cortex MCU but with a slight twist: I'd like to get it up and running with Pascal. I'm curious:</p>
  
  <ul>
  <li>Is this even possible to get work? If not, the next issues are kind of moot points.</li>
  <li>From my Delphi days, I vaguely recall the ability to access functions in C libraries. I'm wondering if I would have access to the C routines in FreeRTOS.</li>
  <li>If I use the GCC version (preferable) would I be able to debug using OpenOCD on the target? I'm not quite sure how debug symbols work and if it's more or less language agnostic (hopefully, in this case).</li>
  <li>As kind of a bonus question a bit outside the scope of the original query, can I simulate FreeRTOS on an x86 processor (e.g. my development PC) for easier debugging during development? (With a Pascal program, of course..)</li>
  </ul>
  
  <p>I haven't found any documentation on achieving this, so hopefully someone here can shed some light! Any resources would be most helpful. Like I said, I'm very new to this kind of development. I'm also open to suggestions if you think there is a better alternative.</p>
  
  <p>FYI, my preferred host configuration would be something similar to:</p>
  
  <ul>
  <li>Linux (Ubuntu/Debian)</li>
  <li>Eclipse IDE for development, unit testing, and hopefully simulation / debugging</li>
  <li>OpenOCD for target debugging</li>
  <li>GNU Pascal + FreeRTOS on target</li>
  </ul>