SMM: selit smm.cpp into code.cpp and mapping.cpp