1. A data processing device comprising: a code storage unit which stores an original code to be translated into a machine language code; a code analyzer which analyzes the original code stored in the code storage unit; a register allocator which allocates a predesignated register for a command included in the original code based on a result of the analysis by the code analyzer; and a code executor which executes a machine language code generated using the register allocated by the register allocator.