| |||||||||||||
Technical Support On-Line Manuals RealView Compiler User's Guide | Using linker feedback
Linker feedback enables the efficient elimination of unused functions. Unused function code might occur in the following situations:
To provide linker feedback to the compiler, you must link your code as a separate step, and use the armlink option NoteTo get the maximum benefit from linker feedback you have to do a full compile and link at least twice. A single compile and link using feedback from a previous build is normally sufficient to obtain some benefit. You can specify the armcc ‑c ‑‑feedback=unused.txt test.c ‑o test.o armlink ‑‑feedback=unused.txt test.o ‑o test.axf The first time you build the application, it compiles normally but the compiler warns you that it cannot read the specified feedback file because it does not exist. The link command then creates the feedback file and builds the image. Each subsequent compile step uses the feedback file from the previous link step to remove any unused functions that are identified. For more information see:
| ||||||||||||
| |||||||||||||