• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

7. Writing Code > 100. Cross-Compiling C Code for TiVo

Cross-Compiling C Code for TiVo

Sometimes, you just need to use C. For those times, you’ll need a compiler that is capable of generating binaries to run on your Series 1 or Series 2 TiVo.

There are times that you realize why C is one of the most popular programming languages out there. If you use it right, it makes code that’s small and fast. Plus, there is already a lot of code out there written in C, including most of the Unix utilities [Hack #34] we’ve been using in this book. Using a cross-compiler is your best shot at turning your favorite little program into a TiVo binary.

Cross-compiling is a black art that deserves a book unto itself, so we’ll keep to installing a cross-compiler and writing a small C program to satisfy ourselves that it works and provide yet another avenue for further TiVo hacking. If you look at http://tivoutils.sourceforge.net, you’ll notice quite a few cross-compilers listed—most notably, http://prdownloads.sourceforge.net/tivoutils/usr.local.powerpc-tivo.tar.bz2?download. These are the cross-compilers that run under Linux and generate binaries to run on Series 1 and Series 2 TiVos, respectively. Both are set up in basically the same way, thanks to the hard work of M. Drew Streib.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint