diff --git a/cachegrind/docs/cg-manual.xml b/cachegrind/docs/cg-manual.xml index 7c1764e00..f65272bbc 100644 --- a/cachegrind/docs/cg-manual.xml +++ b/cachegrind/docs/cg-manual.xml @@ -807,16 +807,12 @@ interesting line of C code is translated into multiple instructions. To do this, you just need to assemble your -.s files with assembler-level -debug information. gcc doesn't do this, but you can use the GNU -assembler with the --gstabs -option to generate object files with this information, eg: - - - -You can then profile and annotate source files in the same -way as for C/C++ programs. +.s files with assembly-level debug +information. You can use gcc +-S to compile C/C++ programs to assembly code, and then +gcc -g on the assembly code files to +achieve this. You can then profile and annotate the assembly code source +files in the same way as C/C++ source files.