Fossil SCM

Change compiler flags on TCC to use '-O3'

Closed

23b4017c39727ad… · opened 16 years, 2 months ago

Type
Feature_Request
Priority
Severity
Minor
Resolution
Not_A_Bug
Subsystem
Created
Jan. 25, 2010 8:22 a.m.

Compiling with "-O3" (instead of the default "-Os") speeds up all operations (though it makes compilation slower).

As a specific example, it make my huge repository "add" operation go from 18 seconds to 6; likewise, "update" went from 14 to 5.

I don't think there are any real problems with the optimizers in recent GCC builds, at least I haven't encountered any.

Comments (1)

stephan 13 years, 2 months ago

Optimizations and their effects on app runtime are highly platform- and compiler-(version) dependent. It doesn't seem reasonable to expect a project to guaranty that a specific compiler flag will have been used to generate published binaries. To get this behaviour on your own binaries, simply replace the setting in the configure-generated Makefile.

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button