Changeset 12191 in project


Ignore:
Timestamp:
10/18/08 15:15:26 (11 years ago)
Author:
felix winkelmann
Message:

added some shootout benchmarks; opt-level option fixes

Location:
chicken/branches/cmi
Files:
2 added
8 edited

Legend:

Unmodified
Added
Removed
  • chicken/branches/cmi/TODO

    r12187 r12191  
    99*** pre-optimization
    1010**** changes call-sites and makes them invalid for later pre-optimization
     11** build
     12*** chicken-boot can't load *.import.so's
     13    possibly detect this in a static build and prefer .scm import libs
    1114** expander
    1215*** expansion of r5rs_pitfall 4.2 incorrect
  • chicken/branches/cmi/benchmarks/cscbench.scm

    r12187 r12191  
    66
    77(define ignored-files '("cscbench.scm" "cscbench.scm~"))
    8 (define flonum-files '("fft" "maze"))
     8(define flonum-files '("fft" "maze" "nbody"))
    99(define cc "`csc -cc-name`")
    1010(define chicken "chicken")
     
    122122         (set!-values
    123123          (t size-base)
    124           (compile-and-run
     124          (compile-and-run              ; base
    125125           file
    126126           "-debug-level 0 -optimize-level 1"
     
    130130         (set!-values
    131131          (t size-fast)
    132           (compile-and-run
     132          (compile-and-run              ; fast but safe
    133133           file
    134134           "-debug-level 0 -optimize-level 3 -lambda-lift"
     
    138138         (set!-values
    139139          (t size-unsafe)
    140           (compile-and-run
     140          (compile-and-run              ; fast and unsafe
    141141           file
    142142           "-debug-level 0 -optimize-level 4 -block -disable-interrupts -lambda-lift"
     
    149149                (set!-values
    150150                 (t size-max)
    151                  (compile-and-run file "-benchmark-mode" options "" #t) )
     151                 (compile-and-run file "-benchmark-mode" options "" #t) ) ; maximal speed
    152152                (set! sum-max (+ sum-max t))))
    153153         (display-size size-base)
  • chicken/branches/cmi/chicken.scm

    r12187 r12191  
    141141                 (cons* 'fixnum-arithmetic 'disable-interrupts 'no-trace 'unsafe
    142142                        'optimize-leaf-routines 'block 'lambda-lift 'no-lambda-info
    143                         'local
     143                        'inline
    144144                        options) )
    145145               (loop rest) ]
  • chicken/branches/cmi/compiler.scm

    r12184 r12191  
    5858; (foreign-declare {<string>})
    5959; (hide {<name>})
    60 ; (import <symbol-or-string> ...)
    6160; (inline-limit <limit>)
    6261; (keep-shadowed-macros)
  • chicken/branches/cmi/csc.scm

    r12184 r12191  
    371371  Optimization options:
    372372
    373     -O -O1 -O2 -O3 -optimize-level NUMBER
     373    -O -O1 -O2 -O3 -O4 -optimize-level NUMBER
    374374                                enable certain sets of optimization options
    375375    -optimize-leaf-routines     enable leaf routine optimization
     
    380380    -disable-interrupts         disable interrupts in compiled code
    381381    -f  -fixnum-arithmetic      assume all numbers are fixnums
    382     -Ob  -benchmark-mode        equivalent to '-block -optimize-level 3
     382    -Ob  -benchmark-mode        equivalent to '-block -optimize-level 4
    383383                                 -debug-level 0 -fixnum-arithmetic -lambda-lift
    384                                  -disable-interrupts'
     384                                 -disable-interrupts -inline'
    385385    -lambda-lift                perform lambda-lifting
    386386    -unsafe-libraries           link with unsafe runtime system
     
    634634               [(|-O2|) (set! rest (cons* "-optimize-level" "2" rest))]
    635635               [(|-O3|) (set! rest (cons* "-optimize-level" "3" rest))]
     636               [(|-O4|) (set! rest (cons* "-optimize-level" "4" rest))]
    636637               [(-d0) (set! rest (cons* "-debug-level" "0" rest))]
    637638               [(-d1) (set! rest (cons* "-debug-level" "1" rest))]
  • chicken/branches/cmi/distribution/manifest

    r12168 r12191  
    1111benchmarks/0.scm
    1212benchmarks/cscbench.scm
     13benchmarks/nbody.scm
     14benchmarks/binarytrees.scm
    1315benchmarks/boyer.scm
    1416benchmarks/browse.scm
  • chicken/branches/cmi/manual/Using the compiler

    r12187 r12191  
    2727; -analyze-only : Stop compilation after first analysis pass.
    2828
    29 ; -benchmark-mode : Equivalent to {{-no-trace -no-lambda-info -optimize-level 4}} {{-fixnum-arithmetic -disable-interrupts -block -lambda-lift}}.
     29; -benchmark-mode : Equivalent to {{-no-trace -no-lambda-info -optimize-level 4}} {{-fixnum-arithmetic -disable-interrupts -block -inline -lambda-lift}}.
    3030
    3131; -block : Enable block-compilation. When this option is specified, the compiler assumes that global variables are not modified outside this compilation-unit.  Specifically, toplevel bindings are not seen by {{eval}} and unused toplevel bindings are removed.
  • chicken/branches/cmi/support.scm

    r12187 r12191  
    12731273    -disable-interrupts         disable interrupts in compiled code
    12741274    -fixnum-arithmetic          assume all numbers are fixnums
    1275     -benchmark-mode             fixnum mode, no interrupts and opt.-level 3
     1275    -benchmark-mode             equivalent to '-block -optimize-level 4
     1276                                 -debug-level 0 -fixnum-arithmetic -lambda-lift
     1277                                 -disable-interrupts -inline'
    12761278    -disable-stack-overflow-checks 
    12771279                                disables detection of stack-overflows.
Note: See TracChangeset for help on using the changeset viewer.