diff options
author | Björn Gustavsson <[email protected]> | 2016-06-17 05:23:08 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-06-22 12:00:38 +0200 |
commit | 644cc778e9770b847700dca41a0c3ebe20da64df (patch) | |
tree | 1f453dfe5cc08f94eed2e6dd52c9de819646cf3d /erts/emulator/beam/beam_load.h | |
parent | 6a6c72801e6fb021851b4f2591b03ed136a27363 (diff) | |
download | otp-644cc778e9770b847700dca41a0c3ebe20da64df.tar.gz otp-644cc778e9770b847700dca41a0c3ebe20da64df.tar.bz2 otp-644cc778e9770b847700dca41a0c3ebe20da64df.zip |
beam_makeops: Save some memory by making loader tables 'const'
Before:
$ size bin/x86_64-unknown-linux-gnu/beam.smp
text data bss dec hex filename
3080982 188369 158472 3427823 344def bin/x86_64-unknown-linux-gnu/beam.smp
After:
$ size bin/x86_64-unknown-linux-gnu/beam.smp
text data bss dec hex filename
3164694 104657 158472 3427823 344def bin/x86_64-unknown-linux-gnu/beam.smp
Diffstat (limited to 'erts/emulator/beam/beam_load.h')
-rw-r--r-- | erts/emulator/beam/beam_load.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/beam_load.h b/erts/emulator/beam/beam_load.h index fd2dd97fee..92a9abddbf 100644 --- a/erts/emulator/beam/beam_load.h +++ b/erts/emulator/beam/beam_load.h @@ -35,7 +35,7 @@ typedef struct gen_op_entry { int transform; } GenOpEntry; -extern GenOpEntry gen_opc[]; +extern const GenOpEntry gen_opc[]; #ifdef NO_JUMP_TABLE #define BeamOp(Op) (Op) |