Recent

Author Topic: FP compiler optimization  (Read 13059 times)

Leledumbo

  • Hero Member
  • *****
  • Posts: 8432
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: FP compiler optimization
« Reply #15 on: October 26, 2015, 06:14:30 am »
I also seem to recall reading that > -O2 can cause debugger problems which complicates this even more (if I want to be able to step into the libraries which can be handy sometimes).
I'm amazed if you can still debug with -O2. I only define 2 extreme options:
debug = -O- <all -g switch> <all -C switch> -XS
release = -O<best available> -Op<best available> -Cp<best available> -Cf<best available> -g- -CX -XXs
Even if -O1 is advertised as debugger friendly, non-optimized code gives best debugging experience.

BobS

  • Full Member
  • ***
  • Posts: 153
Re: FP compiler optimization
« Reply #16 on: October 26, 2015, 09:11:07 pm »
Good to know.  When I complied the trunk I hadn't set any optimize so I didn't run into any problems it just seems like I've read about not going above O2 but anyway I'll keep it at no optimizations for now thanks for heads up.  Fortunately it actually only takes a few minutes to recompile the whole thing on my system, gotta love those SSD's.

rtusrghsdfhsfdhsdfhsfdhs

  • Full Member
  • ***
  • Posts: 162
Re: FP compiler optimization
« Reply #17 on: October 27, 2015, 06:04:50 pm »
I also seem to recall reading that > -O2 can cause debugger problems which complicates this even more (if I want to be able to step into the libraries which can be handy sometimes).
I'm amazed if you can still debug with -O2. I only define 2 extreme options:
debug = -O- <all -g switch> <all -C switch> -XS
release = -O<best available> -Op<best available> -Cp<best available> -Cf<best available> -g- -CX -XXs
Even if -O1 is advertised as debugger friendly, non-optimized code gives best debugging experience.

Can you give an example of your actual debug and release?

best avaliable on trunk and for intel?
« Last Edit: October 27, 2015, 06:19:48 pm by Fiji »

Leledumbo

  • Hero Member
  • *****
  • Posts: 8432
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: FP compiler optimization
« Reply #18 on: October 28, 2015, 01:28:34 am »
best avaliable on trunk and for intel?
Debug:
-Cirot -gw2 -godwarfsets -gl -gh
Release:
-CX -Xs -XX -O3 -OpCOREAVX2 -CpCOREAVX2 -CfAVX2

 

TinyPortal © 2005-2018