Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Building with a toolchain
#1
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.
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 



Reply


Messages In This Thread
Building with a toolchain - by Brian Beuken - 08-05-2018, 05:24 PM
RE: Building with a toolchain - by junglie85 - 09-10-2022, 08:56 PM
RE: Building with a toolchain - by Brian Beuken - 09-10-2022, 10:25 PM
RE: Building with a toolchain - by junglie85 - 09-11-2022, 07:45 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)