寄存器布局

oracq.infrastructure.layout

Sequential-reuse layout of module-private workspaces.

oracq.infrastructure.layout.workspace_table(program)[源代码]

Compute the private workspace bit count needed by each entry-reachable module.

The count is the sum of the module's own locals widths plus the maximum workspace bit count of its callees; sequential calls reuse the same stretch of physical workspace.

参数:

program -- Program whose call graph is acyclic.

返回:

mapping from module names to bit counts; modules unreachable from the entry do not appear.

返回类型:

dict