Skip to content

significant code bloat vs. gcc at -Os #3089

@regehr

Description

@regehr
Bugzilla Link 2717
Resolution WORKSFORME
Resolved on Jul 20, 2009 16:03
Version unspecified
OS Linux
Attachments code for this PR
CC @efriedma-quic

Extended Description

Seen using r55218 on Ubuntu Hardy on ia32.

Here's an example where llvm should probably be producing smaller code. Its
output is 700% larger than gcc's.

regehr@john-home:/volatile/tmp11$ llvm-gcc -Os -w small.c -o small ; size
small
text data bss dec hex filename
6324 252 8 6584 19b8 small
regehr@john-home:
/volatile/tmp11$ current-gcc -Os -w small.c -o small ; size
small
text data bss dec hex filename
784 252 12 1048 418 small

Looks easy to fix: at -Os the inliner should not be so aggressive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaworksformeResolved as "works for me"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions