首页> 外国专利> Compiler method for generating instructions for vector operations on a multi-endian processor

Compiler method for generating instructions for vector operations on a multi-endian processor

机译:用于在多端处理器上生成用于向量运算的指令的编译器方法

摘要

A compiler includes a vector instruction processing mechanism that generates instructions for vector instructions in a way that assures correct operation in a bi-endian environment, wherein the processor architecture contains instructions with an inherent endian bias. The compiler uses a code generation endian preference that is specified by the user, and that determines a natural element order. When the compiler processes a computer program, it generates instructions for vector operations by determining whether the vector instruction has an endian bias that matches the specified endian preference (i.e., the inherent element order of the vector instruction matches the natural element order). When the vector instruction has no endian bias, or when the endian bias of the vector instruction matches the specified endian preference, the compiler generates one or more instructions for the vector instruction as it normally does. When the endian bias of the vector instruction does not match the specified endian preference, the compiler generates instructions to fix the mismatch.
机译:编译器包括矢量指令处理机制,该机制以确保在双端环境中正确操作的方式生成矢量指令的指令,其中处理器体系结构包含具有固有字节序偏差的指令。编译器使用用户指定的代码生成字节序首选项,并确定自然元素顺序。当编译器处理计算机程序时,它通过确定矢量指令是否具有与指定的字节序偏好匹配的字节序偏差(即,矢量指令的固有元素顺序与自然元素顺序匹配)来生成用于矢量操作的指令。当向量指令没有字节序偏差时,或者当向量指令的字节序偏差匹配指定的字节序首选项时,编译器将像通常那样为向量指令生成一个或多个指令。当向量指令的字节序偏差与指定的字节序首选项不匹配时,编译器将生成指令以解决不匹配问题。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号