Making a game for the GBA and PC from the same codebase

Why and how I am making a game for two very different platforms.