From 4962a15dbf174d944050ac5d238b89f1a6b280ef Mon Sep 17 00:00:00 2001 From: Rodrigo Caballero Date: Mon, 30 Oct 2017 14:31:35 -0600 Subject: [PATCH] Fixed missing or incorrect markup and minor language issues. Signed-off-by: Rodrigo Caballero --- source/clear-linux/tutorials/fmv.rst | 53 ++++++++++++++++------------ 1 file changed, 30 insertions(+), 23 deletions(-) diff --git a/source/clear-linux/tutorials/fmv.rst b/source/clear-linux/tutorials/fmv.rst index 4bd18f07..95e4b18d 100644 --- a/source/clear-linux/tutorials/fmv.rst +++ b/source/clear-linux/tutorials/fmv.rst @@ -1,22 +1,22 @@ .. _fmv: -Use the Function Multi Version patch generator +Use the function multi-version patch generator ############################################## CPU architectures often gain interesting new instructions as they evolve but application developers find it difficult to take advantage of those instructions. The reluctance to lose backward-compatibility is one of the main roadblocks slowing developers from using advancements in newer computing -architectures. :abbr:`FMV (Function multi-versioning)`, which first appeared -in GCC 4.8, is a way to have multiple implementations of a function, each -using a different architecture's specialized instruction-set extensions. GCC +architectures. :abbr:`FMV (Function Multi-Versioning)`, which first appeared +in `GCC`_ 4.8, is a way to have multiple implementations of a function, each +using a different architecture specialized instruction-set extensions. GCC 6 introduces changes to FMV to make it even easier to bring architecture- based optimizations to the application code. -In this tutorial we will use FMV on general code and on :abbr:`FFT Fast -Fourier Transform` library code. Upon completing the tutorial, you will be -able to use this technology on your code and use the libraries to deploy -architecture-based optimizations to your application code. +In this tutorial we will use FMV on general code and on +:abbr:`FFT (Fast Fourier Transform)` library code. Upon completing the +tutorial, you will be able to use this technology on your code and use the +libraries to deploy architecture-based optimizations to your application code. Install and configure a Clear Linux host on bare metal ****************************************************** @@ -26,7 +26,7 @@ First, follow our guide to :ref:`bare-metal-install`. Once the bare metal installation and initial configuration are complete, add the `desktop-dev` bundle to the system. -desktop-dev: contains the necessary development tools like GCC\* and Perl\*. +`desktop-dev`: contains the necessary development tools like GCC and Perl\*. To install the bundles, run the following command in the :file:`$HOME` directory: @@ -67,8 +67,8 @@ simple C code: return 0; } -Save the example code as :file:`example.c` and build with the -following flags: +Save the example code as :file:`example.c` in the current directory and build +with the following flags: .. code-block:: bash @@ -106,7 +106,9 @@ To generate the patch files, execute: perl ./make-fmv-patch/make-fmv-patch.pl log . -The make-fmv-patch.pl take two arguments: and . Replace with the proper values and execute: +The :file:`make-fmv-patch.pl` script takes two arguments: `` and +``. Replace `` and `` with the proper +values and execute: .. code-block:: bash @@ -127,8 +129,9 @@ The command generates the following :file:`example.c.patch` patch: int i,x; for (x=0; x