Wiki Roadmap Timeline Tickets New Ticket Source Search Help / Guide About Trac Login

Ticket #103 (new enhancement)

Opened 3 months ago

Last modified 3 months ago

Allow slower cross-file optimizations and link-time optimization

Reported by: FeepingCreature Assigned to:
Priority: major Milestone:
Component: Version:
Keywords: Cc:

Description

LDC currently builds every source file to .o separately, then links them using GCC. This approach is faster, but squanders valuable opportunities for whole-program optimizations. It would be useful to add a switch that makes LDC use .bc's instead of .o's, then uses LLMV's optimization tools on the result before generating the native binary.

Change History

10/17/08 04:22:12 changed by ChristianK

As an easy-to-implement compromise, we could add a switch that makes LDC only output a single object file when more than one source file is given. That would at least allow inter-module optimizations to be run for source files compiled at the same time.

10/23/08 14:39:09 changed by lindquist

maybe we should fork llvm-ld and turn it into ldc-ld or something?

10/23/08 14:39:17 changed by lindquist

  • priority changed from minor to major.
Copyright © 2008, LDC Development Team.