]> gitweb.factorcode.org Git - factor.git/blob - basis/tools/disassembler/disassembler-docs.factor
Fix permission bits
[factor.git] / basis / tools / disassembler / disassembler-docs.factor
1 IN: tools.disassembler\r
2 USING: help.markup help.syntax sequences.private ;\r
3 \r
4 HELP: disassemble\r
5 { $values { "obj" "a word or a pair of addresses" } }\r
6 { $description "Disassembles either a compiled word definition or an arbitrary memory range (in the case " { $snippet "obj" } " is a pair of integers) by attaching " { $snippet "gdb" } " to the Factor VM and capturing the output." }\r
7 { $notes "In some cases the Factor compiler emits data inline with code, which can confuse " { $snippet "gdb" } ". This occurs in words which call " { $link dispatch } ", where the jump table addresses are compiled inline. Also on the ARM architecture, various pointers are often compiled inline, and the preceeding instruction jumps over the inline pinter." } ;\r
8 \r
9 ARTICLE: "tools.disassembler" "Disassembling words"\r
10 "The " { $vocab-link "tools.disassembler" } " vocabulary integrates Factor with the GNU debugger (" { $snippet "gdb" } ") for viewing the assembly code generated by the compiler. It can be used on both Unix and Windows as long as a working copy of " { $snippet "gdb" } " is installed and available in the " { $snippet "PATH" } "."\r
11 { $subsection disassemble } ;\r
12 \r
13 ABOUT: "tools.disassembler"\r