diff options
Diffstat (limited to 'doc/optimization.txt')
-rw-r--r-- | doc/optimization.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/optimization.txt b/doc/optimization.txt index 94a4277326..1a0b98cd0e 100644 --- a/doc/optimization.txt +++ b/doc/optimization.txt @@ -191,6 +191,11 @@ __asm__() block. Use external asm (nasm/yasm) or inline asm (__asm__()), do not use intrinsics. The latter requires a good optimizing compiler which gcc is not. +When debugging a x86 external asm compilation issue, if lost in the macro +expansions, add DBG=1 to your make command-line: the input file will be +preprocessed, stripped of the debug/empty lines, then compiled, showing the +actual lines causing issues. + Inline asm vs. external asm --------------------------- Both inline asm (__asm__("..") in a .c file, handled by a compiler such as gcc) |