Mon Mar 17, 2014 9:40 am
Why not compile on the Pi itself? Large programs may take a while, but simple ones like LED flashing will take a few seconds using the provided gcc compiler. Don't forget the Pi isn't a microcontroller, or an embedded system (although you can use it as one), but a full computer (PC hardware can be used as embedded systems too).
Once you have compiled your program, you can easily get it to run at the end of the boot process by adding a line to /etc/rc.local with the program location and an & on the end. The program will run as root, so you don't need "sudo" to allow it to access /dev/mem to get at the GPIOs.