Start rewritting cpu emulator in c++ for performances with swig