首页> 外国专利> Method for compressing variable-length instructions including PC-relative instructions and processor for executing compressed instructions using an instruction table

Method for compressing variable-length instructions including PC-relative instructions and processor for executing compressed instructions using an instruction table

机译:压缩包括PC相关指令的变长指令的方法和使用指令表执行压缩指令的处理器

摘要

A method for compressing instruction is provided, which includes the following steps. Analyze a program code to be executed by a processor to find one or more instruction groups in the program code according to a preset condition. Each of the instruction groups includes one or more instructions in sequential order. Sort the one or more instruction groups according to a cost function of each of the one or more instruction groups. Put the first X of the sorted one or more instruction groups into an instruction table. X is a value determined according to the cost function. Replace each of the one or more instruction groups in the program code that are put into the instruction table with a corresponding execution-on-instruction-table (EIT) instruction. The EIT instruction has a parameter referring to the corresponding instruction group in the instruction table.
机译:提供了一种压缩指令的方法,包括以下步骤。分析处理器要执行的程序代码,以根据预设条件在程序代码中找到一个或多个指令组。每个指令组包括一个或多个按顺序排列的指令。根据一个或多个指令组中每个指令组的成本函数对一个或多个指令组进行排序。将已排序的一个或多个指令组的前X个放入指令表中。 X是根据成本函数确定的值。用相应的指令执行表(EIT)指令替换放入指令表中的程序代码中的每个一个或多个指令组。 EIT指令的参数引用了指令表中的相应指令组。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号