Reviewers: plesner, Søren Gjesse, Description: Put code and data pieces in their own sections.
This makes --gc-sections perform better, as the GC operates on whole sections. This makes a worthwhile binary size decrease in the Chromium Linux build. Please review this at http://codereview.chromium.org/18803 Affected files: M SConstruct Index: SConstruct diff --git a/SConstruct b/SConstruct index 0f73dacd22e0e2de5f30c7fad955fa3dce05c68e..ccf412deac9d6ed8fa2777d8b5e8aecbfe42aac6 100644 --- a/SConstruct +++ b/SConstruct @@ -52,7 +52,7 @@ LIBRARY_FLAGS = { 'CPPDEFINES': ['ENABLE_DISASSEMBLER', 'DEBUG'] }, 'mode:release': { - 'CCFLAGS': ['-O3', '-fomit-frame-pointer'] + 'CCFLAGS': ['-O3', '-fomit-frame-pointer', '-fdata-sections', '-ffunction-sections'] }, 'os:freebsd': { 'LIBS': ['execinfo'] --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
