Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
12 years, 7 months ago.
mbed NXP LPC1768 offline compilation
Why isn't this a thing? Why is the compiler online? And why specifically for this model and not other models. What is up with that?
Can't there be a compiler and/or library that can be downloaded and it would compile a .cpp source file to a .bin? I would very much prefer that.
2 Answers
12 years, 7 months ago.
Hi a b, the compiler is online for all models of mbed. The idea of an online compiler is that you can access your code anywhere you are (without installing anything). Like any other compilers it have advantages and disadvantages. In this link are all the features of the compiler:
https://mbed.org/handbook/mbed-Compiler
Anyway you can compile your code offline just follow the instructions in this link:
https://mbed.org/handbook/Exporting-to-offline-toolchains
Greetings
12 years, 7 months ago.
Hello a b,
Welcome to mbed! You've asked a few questions there, so I'll try to answer them individually.
Quote:
offline compilation, why isn't this a thing?
Offline compiling is definitely possible for all mbed enabled boards, not just the LPC1768. If you've got projects that you'd like to use in an offline tool then you can export them, there are instructions here.
Quote:
Why is the compiler online?
We provide an online compiler to make it easier and faster for people to start programming, it can be used on a wide variety of computers regardless of operating system (including tablets) and it also makes it possible for us to integrate the compiler with the rest of the site so that the community can benefit.
Quote:
why specifically for this model and not other models?
For a development board to work well with the mbed site it really needs the ability for drag and drop programming to work. We have recently added support for Freescale's KL25Z freedom board and while we'd like to add support for more boards it requires work on the libraries and interface firmware and it's not always possible for non-technical reasons.
Quote:
Can't there be a compiler and/or library that can be downloaded and it would compile a .cpp source file to a .bin?
As I already mentioned you can export your projects to offline tools, perhaps the list of toolchains that we support for exports will give you some ideas of where to look for an offline compiler if you don't have one already.
The open source SDK can be downloaded either as source or as a built library as part of an exported project, so you are free to use that with other tools.