...
首页> 外文期刊>Ada Letters >Wholesale Byte Reversal of the Outermost Ada Record Object to Achieve Endian Independence for Communicated Data Types
【24h】

Wholesale Byte Reversal of the Outermost Ada Record Object to Achieve Endian Independence for Communicated Data Types

机译:批发Ada记录对象的批发字节反转以实现通信数据类型的字节序独立性

获取原文
获取原文并翻译 | 示例
   

获取外文期刊封面封底 >>

       

摘要

For years computer engineers have dealt with the problems associated with transfer of binary data between systems of different bit and byte order - Big-Endian (most significant first) vs. Little-Endian (least significant first). In this article, existing techniques are extended to develop a new, systematic method for coding Ada record component representations so that the same declaration may be used to define an input/output object of a communications link (or "flat" file) to achieve complete endian independence. The uniqueness of this approach is that rather than dealing with byte swapping at the lowest level where the fields of the most nested record components are defined, a single, simple byte-swap is done at the outermost level of the multi-field object. This technique works for multi-layered, nested records as well as for records with fields that consume partial, contiguous bytes. It is especially well suited for implementation where endian independence has not been anticipated in the design. The only special case is that of array components which require a simple pre/post fix-up. Some potential pitfalls and compiler issues are discussed.
机译:多年以来,计算机工程师一直在处理与不同位和字节顺序的系统之间的二进制数据传输相关的问题-大端(最高有效位在前)与小端(最低有效位在前)。在本文中,扩展了现有技术,以开发一种用于编码Ada记录组件表示形式的新的系统方法,以便可以使用相同的声明来定义通信链接(或“平面”文件)的输入/输出对象,以实现完整的Endian独立。这种方法的独特之处在于,与其在定义了最多嵌套记录组件的字段的最低级别处理字节交换,不如在多字段对象的最外层进行单个简单的字节交换。该技术适用于多层嵌套记录以及具有消耗部分连续字节的字段的记录。它特别适合于设计中未预期字节序独立的实现。唯一的特殊情况是需要简单的前/后修复的阵列组件。讨论了一些潜在的陷阱和编译器问题。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号