- 专利标题: Compiler method for generating instructions for vector operations on a multi-endian processor
-
申请号: US14583674申请日: 2014-12-27
-
公开(公告)号: US09606780B2公开(公告)日: 2017-03-28
- 发明人: Michael Karl Gschwind , Jin Song Ji , William J. Schmidt
- 申请人: International Business Machines Corporation
- 申请人地址: US NY Armonk
- 专利权人: International Business Machines Corporation
- 当前专利权人: International Business Machines Corporation
- 当前专利权人地址: US NY Armonk
- 代理机构: Martin & Associates, LLC
- 代理商 Derek P. Martin
- 主分类号: G06F9/45
- IPC分类号: G06F9/45 ; G06F9/30
摘要:
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. 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.
公开/授权文献
信息查询