[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] -O3 and -unboxing
From: |
Felix |
Subject: |
Re: [Chicken-hackers] -O3 and -unboxing |
Date: |
Tue, 05 Jul 2011 13:12:25 +0200 (CEST) |
From: Mario Domenech Goulart <address@hidden>
Subject: [Chicken-hackers] -O3 and -unboxing
Date: Mon, 04 Jul 2011 18:05:26 -0400
> Hi,
>
> The docs (http://wiki.call-cc.org/man/4/Using%20the%20compiler) state
> that:
>
> -optimize-level 3 is equivalent to
> -optimize-leaf-routines -local -inline -inline-global -unboxing
>
> And that
>
> -unboxing
> try to use unboxed temporaries for numerical operations. This
> optimization is only effective in unsafe mode.
>
>
> Since -O3 doesn't use -unsafe and -unboxing is only effective in unsafe
> mode, is there any reason for adding -unboxing to level 3?
It is there to enable unboxing if the user compiles in unsafe mode. Since
this may be declared with "(declare (not safe))", I found it convenient to
enable it anyway at this optimization level.
cheers,
felix