08-05-2018, 05:24 PM
(This post was last modified: 03-14-2019, 11:09 PM by Brian Beuken.)
All my demos and samples are built using on target building, while this is effective and allows the code to work or at least compile on a very wide range of systems, it is a little slow, especially on older single or dual core units.
VisualGDB does allow you to install and build using toolchains, in other words, compilers and linkers that run on your PC and then download only final build executable and resources to your system to then be run. Thats a much faster turnaround, sometimes by a factor of minutes, this is simply because your PC is many times more powerful and can compile files without sending them to the system,
It is however much less portable, and you are basically making builds that will will work for you and your target, and not for other peoples targets. (unless they have the same targets)
There's a few minor things to think about when building on your dev system.
You have to sync your sysroot. Which means, your PC needs to keep a copy of all the libs and include files it will find on your target, so that it can include them during compile.
You need to be extra careful you are sending resources over your project needs,
Be aware that no source files are now sent, unless you specify them.
VisualGDB does allow you to install and build using toolchains, in other words, compilers and linkers that run on your PC and then download only final build executable and resources to your system to then be run. Thats a much faster turnaround, sometimes by a factor of minutes, this is simply because your PC is many times more powerful and can compile files without sending them to the system,
It is however much less portable, and you are basically making builds that will will work for you and your target, and not for other peoples targets. (unless they have the same targets)
There's a few minor things to think about when building on your dev system.
You have to sync your sysroot. Which means, your PC needs to keep a copy of all the libs and include files it will find on your target, so that it can include them during compile.
You need to be extra careful you are sending resources over your project needs,
Be aware that no source files are now sent, unless you specify them.
Brian Beuken
Lecturer in Game Programming at Breda University of Applied Sciences.
Author of The Fundamentals of C/C++ Game Programming: Using Target-based Development on SBC's
Lecturer in Game Programming at Breda University of Applied Sciences.
Author of The Fundamentals of C/C++ Game Programming: Using Target-based Development on SBC's