diff options
| author | eunhhu <[email protected]> | 2026-09-26 18:10:52 +0100 |
|---|---|---|
| committer | eunhhu <[email protected]> | 2026-09-26 18:10:52 +0100 |
| commit | 4874acb6b2c7bc4efa82aad0209f3022e1d3fa02 (patch) | |
| tree | d8753980444c7c09445340e77fdb944042d93ee8 /prototypes/connections/check_policy.py | |
| parent | 9a201c8229e4f45524b7bc9f2f1f127683091740 (diff) | |
| download | pure-4874acb6b2c7bc4efa82aad0209f3022e1d3fa02.tar.gz pure-4874acb6b2c7bc4efa82aad0209f3022e1d3fa02.zip | |
Size a module's code and constants to the module; raise their limits
A real app (a board, a stopwatch) already used a quarter of the 512
instructions, since a fn is inlined where it is called, and every text
it shows is one of 64 constants. The code and the constants now live in
one block sized to the module, which load takes and pure_module_release
gives back; the limits rise to 65,535 instructions and 4,096 constants
of up to 1 MiB, while PureModule shrinks from 28,664 to 11,936 bytes.
The verifier's branch marks are sized to the block instead of 64 KiB on
the stack. pure_module_read reads a module file whole, and every host
uses it instead of a 128 KiB buffer.
Diffstat (limited to 'prototypes/connections/check_policy.py')
0 files changed, 0 insertions, 0 deletions
