Movatterモバイル変換


[0]ホーム

URL:


Next:, Previous:, Up:Introduction   [Contents][Index]


9 Sizes and offsets as runtime invariants

GCC allows the size of a hardware register to be a runtime invariantrather than a compile-time constant. This in turn means that varioussizes and offsets must also be runtime invariants rather thancompile-time constants, such as:

The motivating example is the Arm SVE ISA, whose vector registers can beany multiple of 128 bits between 128 and 2048 inclusive. The compilernormally produces code that works for all SVE register sizes, with theactual size only being known at runtime.

GCC’s main representation of such runtime invariants is thepoly_int class. This chapter describes whatpoly_intdoes, lists the available operations, and gives some generalusage guidelines.


[8]ページ先頭

©2009-2026 Movatter.jp