This paper explains the problems of Compilation Principles education in computer major.In order to meet need of talent cultivation and employment,teaching outline of compilation principles is designed,course system of compilation principles is constructed,teaching mode fusing online and offline resources is created,project-driven practical teaching is implemented,and assessment and evaluation system of compilation principles course is designed,based on OBE concept.Students are transformed from passive recipients of knowledge to active learners of knowledge,in order to improve the teaching quality of Compilation Principles course and enhance students'manual dexterity.