path: root/doc
diff options
authorChang S. Bae <chang.seok.bae@intel.com>2018-08-15 23:22:21 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2018-08-16 00:01:31 +0300
commita578634b61615a4a0d5e51b1d1b046efdbd9867d (patch)
tree407145147c4fde868383826d2c4b0599307dee33 /doc
parentccd2d5c542c27c53f8dd547c817303845c7ca6dc (diff)
optimization: Introduce new flag to turn-off selectively
While configuring optimization in a level is conventional, a certain optimization tends to conflict with some pragma. For example, jump match conflicts with Mach-O's "subsections-via-symbols" macro. This configurability will workaround such conflicts. Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com>
Diffstat (limited to 'doc')
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/opt_var.txt b/doc/opt_var.txt
index 4482e5d8..af15c03d 100644
--- a/doc/opt_var.txt
+++ b/doc/opt_var.txt
@@ -6,7 +6,8 @@
GLOBAL variables:
- optimizing -1 flags nasm 0.98 compatible operation;
+ optimizing optimization meta data (with level and flag info)
+ .level -1 flags nasm 0.98 compatible operation;
offsets usually are explicit (short/near)
no optimization passes
0 flags non-optimized assembly; forward
@@ -17,7 +18,8 @@ GLOBAL variables:
the actual recommended minimum setting
optimization passes (2 or more, plus
passes 1 and 2 will be required)
+ .flag 0 allow all optimizations
+ 1 disallow jump match optimization
pass0 0 flags an optimizer pass (multiple passes)
1 flags pass1 (define labels)