Next: Optimizations specific to high level code, Previous: Source-to-source optimizations, Up: Optimization options [Contents][Index]
--smart-indexingImplement switches using the fastest applicable implementation method, which may be e.g. binary search or a hash table. With ‘--no-smart-indexing’, the default is to implement switches as simple if-then-else chains.
Optimization levels 0 to 6 automatically set –smart-indexing.
--dense-switch-req-density percentageThe jump table generated for an atomic switch must have at least this percentage of full slots (default: 25).
--lookup-switch-req-density percentageThe jump table generated for an atomic switch in which all the outputs are constant terms must have at least this percentage of full slots (default: 25).
--dense-switch-size NThe jump table generated for an atomic switch must have at least this many entries (default: 4).
--lookup-switch-size NThe lookup table generated for an atomic switch must have at least this many entries (default: 4).
--string-trie-switch-size N--string-trie-size NThe trie generated for a string switch must have at least this many entries (default: 16).
--string-hash-switch-size N--string-switch-size NThe hash table generated for a string switch must have at least this many entries (default: 8).
--string-binary-switch-size NThe binary search table generated for a string switch must have at least this many entries (default: 4).
--tag-switch-size NThe number of alternatives in a tag switch must be at least this number (default: 3).
--static-ground-termsEnable the optimization of constructing constant ground terms at compile time and storing them as static constants. Note that auxiliary data structures created by the compiler for purposes such as debugging will always be created as static constants.
Optimization levels 0 to 6 automatically set –static-ground-terms.
--use-atomic-cellsUse the atomic variants of the Boehm gc allocator calls when the memory cell to be allocated cannot contain pointers.
Next: Optimizations specific to high level code, Previous: Source-to-source optimizations, Up: Optimization options [Contents][Index]