In this tutorial, you begin by learning the basics of working with Raspberry Pi 3 that's running Raspbian. You then learn how to build C source code on host machine in a cross-compilation way. Last but most important, you learn how to deploy built binaries to Pi and how to do remote debugging.
Click the link of your platform and start the tutorial.