Hi, You can use anything a free compiler compiles and runs, as long as it is not intentional obfuscation of your code, nor an attempt to jeopardize the computer of the person that tries to run your program. If you use compiler-specific directives, please make sure that a free compiler accepts them and add a comment as to which compiler must be used (and in what way, if it requires some specific non-usual flags to be passed to compile).
Best, Pablo On Wed, Mar 16, 2016 at 4:11 PM, Oleg Jakushkin <[email protected]> wrote: > I wonder about general source optimization at compile time: > ``` > #pragma GCC visibility push(hidden) > #define _FORTIFY_SOURCE 0 > #undef __STRICT_ANSI__ > > #if defined __GCC__ && !defined __clang__ > #pragma GCC optimize "Ofast,no-stack-protector,no-exceptions,no-rtti,lto" > #pragma GCC target "fpmath=sse,tune=native" > #undef __EXCEPTIONS > #define __FAST_MATH__ 1 > #undef __FINITE_MATH_ONLY__ > #define __FINITE_MATH_ONLY__ 1 > #undef __FLT_EVAL_METHOD__ > #define __FLT_EVAL_METHOD__ 0 > #undef __GCC_IEC_559 > #define __GCC_IEC_559 0 > #undef __GCC_IEC_559_COMPLEX > #define __GCC_IEC_559_COMPLEX 0 > #undef __GXX_RTTI > #undef __NO_INLINE__ > #define __OPTIMIZE__ 1 > #define __SSE_MATH__ 1 > #define __SSE2_MATH__ 1 //and there are many more configuration related > GCC options > ``` > > They are just defines and strings yet gcc would compile much reduced code > - is it fair\allowed? > > Note: Last year winer did not use them at all. > > -- > You received this message because you are subscribed to the Google Groups > "Google Code Jam" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-code/88907fd0-911b-4731-bc7a-174247842d16%40googlegroups.com > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-code/CANa5jcARx%2B%2B7mGes86rifeJvThu_aUzKPMG9FvHLt_jvzjuOQQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
