9 years, 11 months ago.

Writing in C and other beginner questions

Is there an mbed library for straight C, or do I have to use C++ to take advantage of the mbed-sdk? Looking at https://developer.mbed.org/users/mbed_official/code/mbed-src/file/a11c0372f0ba/api it looks like it's all C++ code.

Also, are there any resources for working with open source tool chains (GCC) aside from the page telling you how to export code from the mbed online compiler?

1 Answer

9 years, 11 months ago.

The underlying code is mainly C, so you could in principle skip the C++ layer. But why would you want that?

Regarding GCC: I don't use it myself, but there are obviously lots of generic pages on how to work with GCC for any random C(++) project. It is probably easiest to just start with an exported project, since that should work. Then you can look at tweaking it (for example optimization settings).