Opened 7 years ago

Closed 7 years ago

#235 closed enhancement (fixed)

compilation flags tunning

Reported by: ajornet Owned by: somebody
Priority: trivial Milestone: orchidee_1_9_6
Component: Driver files Version: trunc
Keywords: flags compilation intel gnu Cc:


This are current flags found in ORCHIDEE:

%DEV_FFLAGS     -p -g -O2 -traceback -fp-stack-check -ftrapuv -check bounds
%DEBUG_FFLAGS   -p -g -traceback -fp-stack-check -ftrapuv -check bounds -check all
  • (delete in both)-p flag: its purpose is to profile the code. It does not have any debugging purpose. It might prevent some debuggers to do its job.
  • (new in DEBUG) -fpe0 flag: no divisions by 0 allowed (it throws an exception). It will prevent Inf and/or Nan values.
  • (new in DEBUG) -O0 flag: disable all optimizations. It will not confuse the user when checking the code with the debugger. It is not always like this.

So It should be like:

%DEV_FFLAGS     -O2 -g -traceback -fp-stack-check -ftrapuv -check bounds
%DEBUG_FFLAGS   -fpe0 -O0 -g -traceback -fp-stack-check -ftrapuv -check bounds -check all

Change History (2)

comment:1 Changed 7 years ago by ajornet

This is only for intel compilers

comment:2 Changed 7 years ago by jgipsl

  • Resolution set to fixed
  • Status changed from new to closed

Done in the trunk rev [3301]

Note: See TracTickets for help on using tickets.