Protection method and protection device for program codes in Apple platform and electronic equipment

The invention discloses a protection method and device for program codes in an Apple platform and electronic equipment, and belongs to the field of computers. The method comprises the steps of obtaining a to-be-protected instruction, wherein the to-be-protected instruction comprises an assembly inst...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: WANG ZHIFENG, ZHAO HONGJI, CHENG XIANLONG, ZHI GANG
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a protection method and device for program codes in an Apple platform and electronic equipment, and belongs to the field of computers. The method comprises the steps of obtaining a to-be-protected instruction, wherein the to-be-protected instruction comprises an assembly instruction; the to-be-protected instruction is converted into user-defined format data and a macro assembly code used for skipping to an analog code, the analog code corresponds to the assembly instruction, and the analog code is used for simulating execution of the assembly instruction; based on the macro assembly code, obtaining an interpreter code; linking the user-defined format data and the interpreter code into a position-independent code; and inserting the position-independent code into a target file. 本申请公开了一种苹果平台中程序代码的保护方法、保护装置和电子设备,属于计算机领域。所述方法包括:获取待保护的指令,所述待保护的指令包括汇编指令;将所述待保护的指令转换为自定义格式数据以及用于跳转到模拟代码的宏汇编代码,所述模拟代码与所述汇编指令相对应,所述模拟代码用于模拟所述汇编指令的执行;基于所述宏汇编代码,得到解释器代码;将所述自定义格式数据和所述解释器代码链接成位置无关代码;将所述位置无关代码插入到目标文件中。