|
|||||||||||
|
Technical Support On-Line Manuals Linker User Guide |
Linker User GuideAbout link-time code generation
Link-time code generation (LTCG) enables
cross source-file optimization by delaying code generation until
the link stage. This can significantly reduce code size. To enable
LTCG, compile your source with Both armcc and armlink have
a NoteThe LTCG feature is deprecated. As an alternative ARM recommends
you use the Be aware of the following when using LTCG:
The following example shows a typical use of LTCG:
The linker:
An intermediate ELF object file generated by link-time
code generation (LTCG) includes a section called Using the intermediate object file
fromelf --text -v one.o
...
====================================
** Section #1
Name : .il
Type : SHT_PROGBITS (0x00000001)
Flags : SHF_ALLOC + SHF_EXECINSTR (0x00000006)
...
Link : SHN_UNDEF
...
====================================
** Section #3
Name : .rel.il
Type : SHT_REL (0x00000009)
Flags : None (0x00000000)
...
Link : Section 2 (.symtab)
Info : Section 1 (.il)
...
====================================
...
| ||||||||||
|
|||||||||||