arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.15632cs.CL
收藏

在语言设计、库或垃圾回收中充分利用64位架构的技巧

Tips for making the most of 64-bit architectures in langage design, libraries or garbage collection

Université de Strasbourg(斯特拉斯堡大学);Université de Lorraine(洛林大学)

Benoît Sonntag, Dominique Colnet

AI总结:

本文探讨了如何利用64位架构中地址寄存器的空闲位,通过多精度整数实现、UTF-8字符串处理和垃圾回收器增强三个示例,提升新静态类型语言库的性能与效率。

摘要:

如今已成为标准的64位架构提供了前所未有的底层编程可能性。在计算历史上,地址寄存器的大小首次远远超过了其总线的物理容量。在简要回顾与可用64位相比的小地址尺寸所提供的可能性之后,我们开发了三个具体示例,说明如何使用这些寄存器的空闲位。在这些示例中,其中两个涉及为一种新的静态类型编程语言实现库。首先,实现多精度整数,旨在提高计算速度和节省RAM方面的性能。第二个示例侧重于库对UTF-8字符串的处理。在这里,其想法是通过忽略每个UTF-8字符的物理大小来使索引更容易。最后,第三个示例是对垃圾回收器可能的增强,特别是对象标记阶段的标记与清除。

英文摘要:

The 64-bit architectures that have become standard today offer unprecedented low-level programming possibilities. For the first time in the history of computing, the size of address registers far exceeded the physical capacity of their bus.After a brief reminder of the possibilities offered by the small size of addresses compared to the available 64 bits,we develop three concrete examples of how the vacant bits of these registers can be used.Among these examples, two of them concern the implementation of a library for a new statically typed programming language.Firstly, the implementation of multi-precision integers, with the aim of improving performance in terms of both calculation speed and RAM savings.The second example focuses on the library's handling of UTF-8 character strings.Here, the idea is to make indexing easier by ignoring the physical size of each UTF-8 characters.Finally, the third example is a possible enhancement of garbage collectors, in particular the mark \& sweep for the object marking phase.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑