GPF
January 5th, 2005, 15:51
had a couple of questions about debug vs release environments for KOS.
right now I am using for my $KOS_CFLAGS
-O2 -DFRAME_POINTERS -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos1.3/kos/../kos-ports/include -I/usr/local/dc/kos1.3/kos/include -I/usr/local/dc/kos1.3/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos1.3/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing
and thats what my KOS libs were built with.
For a release should I recompile KOS with
-fomit-frame-pointer and remove the -g ? Also Is there any benifit for recompile KOS with more optimizations -O3?
Also with the new gnu-wrappers, if I want to use other compilation environment(different flags/higher optimization), is there an easy way to do that? or do I just have a second environ..sh script that I run when doing builds vs when rebuilding KOS ?
Thanks,
Troy
right now I am using for my $KOS_CFLAGS
-O2 -DFRAME_POINTERS -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos1.3/kos/../kos-ports/include -I/usr/local/dc/kos1.3/kos/include -I/usr/local/dc/kos1.3/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos1.3/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing
and thats what my KOS libs were built with.
For a release should I recompile KOS with
-fomit-frame-pointer and remove the -g ? Also Is there any benifit for recompile KOS with more optimizations -O3?
Also with the new gnu-wrappers, if I want to use other compilation environment(different flags/higher optimization), is there an easy way to do that? or do I just have a second environ..sh script that I run when doing builds vs when rebuilding KOS ?
Thanks,
Troy