VirtualBox

Changeset 20547 in vbox for trunk


Ignore:
Timestamp:
Jun 14, 2009 12:25:43 AM (16 years ago)
Author:
vboxsync
Message:

Config.kmk: Optimize GC and R0 code by default.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r20502 r20547  
    11121112VBOX_GCC_PEDANTIC ?= -pedantic $(VBOX_GCC_WARN) -Wno-long-long
    11131113ifeq ($(KBUILD_TYPE),debug)
    1114  VBOX_GCC_FP  ?= -fno-omit-frame-pointer
    1115  VBOX_GCC_OPT ?= -O0
    1116  VBOX_VCC_FP  ?= -Oy-
    1117  VBOX_VCC_OPT ?=
     1114 VBOX_GCC_FP     ?= -fno-omit-frame-pointer
     1115 VBOX_GCC_OPT    ?= -O0
     1116 VBOX_VCC_FP     ?= -Oy-
     1117 VBOX_VCC_OPT    ?=
     1118 VBOX_GCC_R0_FP  ?= -fno-omit-frame-pointer
     1119 VBOX_GCC_R0_OPT ?= -O2
     1120 VBOX_VCC_R0_FP  ?= -Oy-
     1121 VBOX_VCC_R0_OPT ?=
    11181122 VBOX_GCC_GC_FP  ?= -fno-omit-frame-pointer
    1119  VBOX_GCC_GC_OPT ?= -O0
     1123 VBOX_GCC_GC_OPT ?= -O2
    11201124 VBOX_VCC_GC_FP  ?= -Oy-
    11211125 VBOX_VCC_GC_OPT ?=
     
    11231127 # We should use -fomit-frame-pointer for GCC / -Oy for VCC.
    11241128 # -funwind-tables provides support for backtraces in gdb then.
    1125  VBOX_GCC_FP  ?= -fno-omit-frame-pointer
    1126  VBOX_GCC_OPT ?= -O2 $(VBOX_GCC_mtune-generic)
    1127  VBOX_VCC_FP  ?= -Oy-
     1129 VBOX_GCC_FP     ?= -fno-omit-frame-pointer
     1130 VBOX_GCC_OPT    ?= -O2 $(VBOX_GCC_mtune-generic)
     1131 VBOX_VCC_FP     ?= -Oy-
    11281132 ifdef VBOX_USE_VCC80
    1129  VBOX_VCC_OPT ?= -O2 -GS-
     1133 VBOX_VCC_OPT    ?= -O2 -GS-
    11301134 else
    1131  VBOX_VCC_OPT ?= -Ogitb2
     1135 VBOX_VCC_OPT    ?= -Ogitb2
     1136 endif
     1137 VBOX_GCC_R0_FP  ?= -fno-omit-frame-pointer
     1138 VBOX_GCC_R0_OPT ?= -O2 $(VBOX_GCC_mtune-generic)
     1139 VBOX_VCC_R0_FP  ?= -Oy-
     1140 ifdef VBOX_USE_VCC80
     1141 VBOX_VCC_R0_OPT ?= -O2 -GS-
     1142 else
     1143 VBOX_VCC_R0_OPT ?= -Ogitb2
    11321144 endif
    11331145 VBOX_GCC_GC_FP  ?= -fno-omit-frame-pointer
     
    21022114ifeq ($(VBOX_LDR_FMT),elf)
    21032115TEMPLATE_VBOXR0_TOOL                = $(VBOX_GCC_TOOL)
    2104 TEMPLATE_VBOXR0_CFLAGS              = -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_fvisibility-hidden)
    2105 TEMPLATE_VBOXR0_CXXFLAGS            = -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) -fno-rtti -fno-exceptions $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_fvisibility-inlines-hidden) $(VBOX_GCC_fvisibility-hidden)
     2116TEMPLATE_VBOXR0_CFLAGS              = -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_fvisibility-hidden)
     2117TEMPLATE_VBOXR0_CXXFLAGS            = -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) -fno-rtti -fno-exceptions $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_fvisibility-inlines-hidden) $(VBOX_GCC_fvisibility-hidden)
    21062118TEMPLATE_VBOXR0_CFLAGS.amd64        = -m64 -mno-red-zone -mcmodel=kernel -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-asynchronous-unwind-tables -ffreestanding
    21072119TEMPLATE_VBOXR0_CXXFLAGS.amd64      = -m64 -mno-red-zone -mcmodel=kernel -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-asynchronous-unwind-tables
     
    21242136TEMPLATE_VBOXR0_DEFS               += $(VBOX_DARWIN_DEF_SDK_DEFS)
    21252137TEMPLATE_VBOXR0_CXXFLAGS            = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS) -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) \
    2126         -fno-common -msoft-float -static -fno-rtti -fno-exceptions $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing \
     2138        -fno-common -msoft-float -static -fno-rtti -fno-exceptions -O2 $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing \
    21272139        -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-stack-protector
    21282140TEMPLATE_VBOXR0_CXXFLAGS.amd64      = -m64 -mno-red-zone -mno-sse3 -mno-sse4 -mno-sse4.1 -mno-sse4.2  -mno-sse4a -fno-unwind-tables
    21292141TEMPLATE_VBOXR0_CXXFLAGS.x86        = -m32
    21302142TEMPLATE_VBOXR0_CFLAGS              = $(VBOX_DARWIN_DEF_SDK_CFLAGS)   -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) \
    2131         -fno-common -msoft-float -static -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing \
     2143        -fno-common -msoft-float -static -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing \
    21322144        -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-stack-protector
    21332145TEMPLATE_VBOXR0_CFLAGS.amd64        = -m64 -mno-red-zone -mno-sse3 -mno-sse4 -mno-sse4.1 -mno-sse4.2  -mno-sse4a -fno-unwind-tables
     
    21412153ifeq ($(VBOX_LDR_FMT),lx)
    21422154TEMPLATE_VBOXR0_TOOL                = GXX3OMF
    2143 TEMPLATE_VBOXR0_CFLAGS              = -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing
    2144 TEMPLATE_VBOXR0_CXXFLAGS            = -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) -fno-rtti -fno-exceptions $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing
     2155TEMPLATE_VBOXR0_CFLAGS              = -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing
     2156TEMPLATE_VBOXR0_CXXFLAGS            = -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) -fno-rtti -fno-exceptions $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing
    21452157TEMPLATE_VBOXR0_LDFLAGS             = -nostdlib -Zdll
    21462158TEMPLATE_VBOXR0_LIBS                = \
     
    21882200TEMPLATE_VBOXR0DRV_CFLAGS              = -nostdinc -iwithprefix include \
    21892201        $(VBOX_GCC_WARN) -Wstrict-prototypes $(VBOX_GCC_Wno-pointer-sign) -Wno-sign-compare \
    2190         $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing -fno-common
     2202        $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fno-common
    21912203TEMPLATE_VBOXR0DRV_CFLAGS.x86          = -mpreferred-stack-boundary=2 -msoft-float
    21922204TEMPLATE_VBOXR0DRV_CFLAGS.amd64        = -m64 -mno-red-zone -mcmodel=kernel -mno-sse -mno-mmx -mno-sse2 -mno-3dnow \
     
    22082220ifeq ($(KBUILD_TARGET),os2)
    22092221TEMPLATE_VBOXR0DRV_TOOL                = GXX3OMF
    2210 TEMPLATE_VBOXR0DRV_CXXFLAGS            = -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing -fno-rtti -fno-exceptions
    2211 TEMPLATE_VBOXR0DRV_CFLAGS              = -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing
     2222TEMPLATE_VBOXR0DRV_CXXFLAGS            = -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fno-rtti -fno-exceptions
     2223TEMPLATE_VBOXR0DRV_CFLAGS              = -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing
    22122224TEMPLATE_VBOXR0DRV_LIBS                = $(VBOX_GCC_LIBGCC)
    22132225# wlink thinks physdevice doesn't need fixups and should have a stack - stupid!
     
    22222234        -g -pipe $(VBOX_GCC_WARN) -Wno-long-long -fno-common -nostdinc -fno-builtin -finline \
    22232235        -fno-keep-inline-functions -fno-exceptions -msoft-float \
    2224         -fapple-kext -fno-rtti -fcheck-new -force_cpusubtype_ALL
     2236        -fapple-kext -fno-rtti -fcheck-new -force_cpusubtype_ALL \
     2237        $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fasm-blocks
    22252238TEMPLATE_VBOXR0DRV_CXXFLAGS.amd64      = -m64 -mkernel -mno-red-zone -gdwarf-2
    22262239TEMPLATE_VBOXR0DRV_CXXFLAGS.x86        = -m32 -static
    2227 TEMPLATE_VBOXR0DRV_CXXFLAGS.release    = $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing -fasm-blocks
    2228 TEMPLATE_VBOXR0DRV_CXXFLAGS.profile    = $(TEMPLATE_VBOXR0DRV_CXXFLAGS.release)
    2229 TEMPLATE_VBOXR0DRV_CXXFLAGS.kprofile   = $(TEMPLATE_VBOXR0DRV_CXXFLAGS.release)
    22302240TEMPLATE_VBOXR0DRV_CFLAGS              = $(VBOX_DARWIN_DEF_SDK_CFLAGS) \
    22312241        -g -pipe $(VBOX_GCC_WARN) -Wno-long-long -fno-common -nostdinc -fno-builtin -finline \
    22322242        -fno-keep-inline-functions -fno-exceptions -msoft-float \
    2233         -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -force_cpusubtype_ALL
     2243        -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -force_cpusubtype_ALL \
     2244        $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fasm-blocks
    22342245TEMPLATE_VBOXR0DRV_CFLAGS.amd64        = -m64 -mkernel -mno-red-zone -gdwarf-2
    22352246TEMPLATE_VBOXR0DRV_CFLAGS.x86          = -m32 -static
    2236 TEMPLATE_VBOXR0DRV_CFLAGS.release      = $(TEMPLATE_VBOXR0DRV_CXXFLAGS.release)
    2237 TEMPLATE_VBOXR0DRV_CFLAGS.profile      = $(TEMPLATE_VBOXR0DRV_CXXFLAGS.profile)
    2238 TEMPLATE_VBOXR0DRV_CFLAGS.kprofile     = $(TEMPLATE_VBOXR0DRV_CXXFLAGS.kprofile)
    22392247TEMPLATE_VBOXR0DRV_LDFLAGS             = $(VBOX_DARWIN_DEF_SDK_LDFLAGS) -static -nostdlib -r -Wl,-Y,1455 -keep_private_extern
    22402248TEMPLATE_VBOXR0DRV_LDFLAGS.amd64       = -m64 -Xlinker -kext
     
    23202328        -Wstrict-prototypes -Wmissing-prototypes -Wstrict-prototypes -Wnested-externs \
    23212329        -O2 -fformat-extensions -ffreestanding -fno-strict-aliasing -fno-common -finline-limit=8000 \
    2322         $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_OPT) $(VBOX_GCC_FP) \
     2330        $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) \
    23232331        -nostdinc -std=c99
    23242332TEMPLATE_VBOXR0DRV_CFLAGS.x86          = -m32 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2
     
    23292337        $(VBOX_GCC_WARN) -Wpointer-arith -Winline \
    23302338        -O2 -fno-format-extensions -fno-strict-aliasing -fno-common -finline-limit=8000 \
    2331         $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_OPT) $(VBOX_GCC_FP) \
     2339        $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) \
    23322340        -nostdinc
    23332341TEMPLATE_VBOXR0DRV_CXXFLAGS.x86        = $(TEMPLATE_VBOXR0DRV_CFLAGS.x86)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette