The following instructions show how to install the GCC cross-compiler installation that can be used to compile C and C++ programs that will run in either firmware the unmodified or ev3dev firmware. I use primarily Linux, but have tested the compiler in Windows and Mac.