Changeset 15540 in project for chicken


Ignore:
Timestamp:
08/22/09 22:20:52 (10 years ago)
Author:
felix
Message:

added OPTIMIZE_FOR_SPEED build option

Location:
chicken/trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • chicken/trunk/Makefile.bsd

    r15485 r15540  
    3838C_COMPILER_OPTIMIZATION_OPTIONS ?= -g -Wall -Wno-unused
    3939else
     40ifdef OPTIMIZE_FOR_SPEED
     41C_COMPILER_OPTIMIZATION_OPTIONS ?= -O3 -fomit-frame-pointer
     42else
    4043C_COMPILER_OPTIMIZATION_OPTIONS ?= -Os -fomit-frame-pointer
     44endif
    4145endif
    4246LINKER_LINK_SHARED_LIBRARY_OPTIONS = -shared
  • chicken/trunk/Makefile.cross-linux-mingw

    r13735 r15540  
    5050C_COMPILER_OPTIMIZATION_OPTIONS ?= -g -Wall -Wno-unused
    5151else
    52 C_COMPILER_OPTIMIZATION_OPTIONS ?= -Os
     52ifdef OPTIMIZE_FOR_SPEED
     53C_COMPILER_OPTIMIZATION_OPTIONS ?= -O3 -fomit-frame-pointer
     54else
     55C_COMPILER_OPTIMIZATION_OPTIONS ?= -Os -fomit-frame-pointer
     56endif
    5357endif
    5458C_COMPILER_SHARED_OPTIONS = -DPIC
  • chicken/trunk/Makefile.cygwin

    r13006 r15540  
    4848C_COMPILER_OPTIMIZATION_OPTIONS ?= -g -Wall -Wno-unused
    4949else
    50 C_COMPILER_OPTIMIZATION_OPTIONS ?= -Os
     50ifdef OPTIMIZE_FOR_SPEED
     51C_COMPILER_OPTIMIZATION_OPTIONS ?= -O3 -fomit-frame-pointer
     52else
     53C_COMPILER_OPTIMIZATION_OPTIONS ?= -Os -fomit-frame-pointer
     54endif
    5155endif
    5256C_COMPILER_SHARED_OPTIONS = -DPIC
  • chicken/trunk/Makefile.linux

    r15438 r15540  
    3838C_COMPILER_OPTIMIZATION_OPTIONS ?= -g -Wall -Wno-unused
    3939else
     40ifdef OPTIMIZE_FOR_SPEED
     41C_COMPILER_OPTIMIZATION_OPTIONS ?= -O3 -fomit-frame-pointer
     42else
    4043C_COMPILER_OPTIMIZATION_OPTIONS ?= -Os -fomit-frame-pointer
     44endif
    4145endif
    4246LINKER_LINK_SHARED_LIBRARY_OPTIONS = -shared
  • chicken/trunk/Makefile.macosx

    r15506 r15540  
    4242C_COMPILER_OPTIMIZATION_OPTIONS ?= -g -Wall -Wno-unused
    4343else
     44ifdef OPTIMIZE_FOR_SPEED
     45C_COMPILER_OPTIMIZATION_OPTIONS ?= -O3 -fomit-frame-pointer
     46else
    4447C_COMPILER_OPTIMIZATION_OPTIONS ?= -Os -fomit-frame-pointer
     48endif
    4549endif
    4650LINKER_LINK_SHARED_LIBRARY_OPTIONS = -dynamiclib -compatibility_version 1 -current_version 1.0 -install_name $@
  • chicken/trunk/Makefile.mingw

    r13985 r15540  
    5555C_COMPILER_OPTIMIZATION_OPTIONS ?= -g -Wall -Wno-unused
    5656else
     57ifdef OPTIMIZE_FOR_SPEED
     58C_COMPILER_OPTIMIZATION_OPTIONS ?= -O3
     59else
    5760C_COMPILER_OPTIMIZATION_OPTIONS ?= -Os
     61endif
    5862endif
    5963C_COMPILER_SHARED_OPTIONS = -DPIC
  • chicken/trunk/Makefile.mingw-msys

    r13735 r15540  
    4646C_COMPILER_OPTIMIZATION_OPTIONS ?= -g -Wall -Wno-unused
    4747else
     48ifdef OPTIMIZE_FOR_SPEED
     49C_COMPILER_OPTIMIZATION_OPTIONS ?= -O3
     50else
    4851C_COMPILER_OPTIMIZATION_OPTIONS ?= -Os
     52endif
    4953endif
    5054C_COMPILER_SHARED_OPTIONS = -DPIC
  • chicken/trunk/Makefile.solaris

    r12937 r15540  
    3838C_COMPILER_OPTIMIZATION_OPTIONS ?= -g -Wall -Wno-unused
    3939else
     40ifdef OPTIMIZE_FOR_SPEED
     41C_COMPILER_OPTIMIZATION_OPTIONS ?= -O3 -fomit-frame-pointer
     42else
    4043C_COMPILER_OPTIMIZATION_OPTIONS ?= -Os -fomit-frame-pointer
     44endif
    4145endif
    4246LINKER_LINK_SHARED_LIBRARY_OPTIONS = -shared
  • chicken/trunk/README

    r15528 r15540  
    131131          "NOPTABLES=1", but that means serialization (available
    132132          as a separate package) of procedures will not be available.
     133
     134        OPTIMIZE_FOR_SPEED=1
     135          Use C optimization options that prefer speed over size. For
     136          the GNU C compiler this will currently select "-O3" (the
     137          default is "-Os"). You can also se
     138          C_COMPILER_OPTIMIZATION_OPTIONS (see below) to have more
     139          control over the options given to the C compiler.
    133140
    134141        C_COMPILER_OPTIMIZATION_OPTIONS=...
Note: See TracChangeset for help on using the changeset viewer.