Search
lxdream.org :: lxdream/configure :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 909:b4a21af8ce8c
prev906:268ea359f884
next913:edc494bde24b
author nkeynes
date Fri Oct 31 02:57:59 2008 +0000 (15 years ago)
permissions -rw-r--r--
last change Declare mem_copy_* functions as FASTCALL
Split sh4_flush_store_queue into TLB/non-TLB versions, and optimize
slightly based on that
file annotate diff log raw
1.1 --- a/configure Thu Oct 30 00:06:49 2008 +0000
1.2 +++ b/configure Fri Oct 31 02:57:59 2008 +0000
1.3 @@ -805,6 +805,7 @@
1.4 enable_strict_warn
1.5 enable_translator
1.6 enable_optimized
1.7 +enable_profiled
1.8 enable_trace
1.9 enable_watch
1.10 enable_sh4stats
1.11 @@ -1473,6 +1474,7 @@
1.12 --disable-translator Disable the SH4 translator (Enabled by default)
1.13 --disable-optimized Disable compile-time optimizations (Enabled by
1.14 default)
1.15 + --enable-profiled Enable profiling build (implies disable-optimized)
1.16 --enable-trace Enable generation of IO traces (warning: hurts
1.17 performance)
1.18 --enable-watch Enable watchpoints in the debugger (warning: hurts
1.19 @@ -6575,6 +6577,13 @@
1.20 enable_optimized=yes
1.21 fi
1.22
1.23 +# Check whether --enable-profiled was given.
1.24 +if test "${enable_profiled+set}" = set; then
1.25 + enableval=$enable_profiled; if test "$enableval" == "yes"; then
1.26 + enable_profiled=yes;
1.27 + fi
1.28 +fi
1.29 +
1.30 # Check whether --enable-trace was given.
1.31 if test "${enable_trace+set}" = set; then
1.32 enableval=$enable_trace; if test "$enableval" == "yes"; then
1.33 @@ -6638,11 +6647,25 @@
1.34
1.35
1.36
1.37 -if test "x$enable_optimized" = "xyes"; then
1.38 - CFLAGS="-g -O2"
1.39 +if test "x$enable_profiled" = "xyes"; then
1.40 + CFLAGS="-g -pg -fprofile-arcs"
1.41 + LDFLAGS="$LDFLAGS -pg";
1.42 +elif test "x$enable_optimized" = "xyes"; then
1.43 + CFLAGS="-g -O2 -fexceptions -fomit-frame-pointer"
1.44 +
1.45 +cat >>confdefs.h <<\_ACEOF
1.46 +#define HAVE_EXCEPTIONS 1
1.47 +_ACEOF
1.48 +
1.49 +
1.50 +cat >>confdefs.h <<\_ACEOF
1.51 +#define HAVE_FASTCALL 1
1.52 +_ACEOF
1.53 +
1.54 else
1.55 CFLAGS="-g3"
1.56 fi
1.57 +
1.58 if test "x$GCC" = "xyes"; then
1.59 CFLAGS="$CFLAGS -fno-strict-aliasing"
1.60 fi
1.61 @@ -6865,14 +6888,6 @@
1.62 _ACEOF
1.63
1.64 fi
1.65 -if test "x$enable_optimized" = "xyes"; then
1.66 - CFLAGS="$CFLAGS -fexceptions -fomit-frame-pointer"
1.67 -
1.68 -cat >>confdefs.h <<\_ACEOF
1.69 -#define HAVE_EXCEPTIONS 1
1.70 -_ACEOF
1.71 -
1.72 -fi
1.73
1.74
1.75
.