By this point we have thoroughly explored how to write and design games for BREW handsets. Now we have come to one of the final steps of BREW development: compiling your game for a BREW handset. You may think that once you have your game debugged and running smoothly in an emulator that you are almost there. The fact is getting your code to execute properly on real hardware can sometimes be an even bigger task than writing the game in the first place. This chapter explores this issue as well as provides some handy debugging tips when going through this rather painful process.