Questions tagged [compiler-flags]

Parameters that may be passed to a compiler affecting how compilation is carried out. These can have a variety of effects on the paths searched for external dependencies, optimization level, how source code is interpreted, code checks that are performed and preprocessor directives.

Parameters that may be passed to a compiler affecting how compilation is carried out. These can have a variety of effects on the paths searched for external dependencies, optimization level, how source code is interpreted, code checks that are performed and preprocessor directives.

479 questions
0
votes
0 answers

No warnings for headers included by headers in non-current directories

How can I let gcc and clang generate warnings for header files included by header files in non-current directories? I'm using gcc 4.9.2 and clang 3.6.0. For example, assume that ./include_a.c includes ./dir/a.h, ./dir/a.h includes ./b.h, and ./b.h…
aksjis
  • 41
  • 1
0
votes
1 answer

gwt-maven-plugin soyc flags

I've been having some problems with GWT and SOYC. Using the maven pluging for gwt: gwt-maven-plugin, how can I pass extra flags to the GWT compiler. I'm trying to set the XsoycDetailed flag, so that I can get a detailed SOYC report. Thanks.
Eugen
  • 8,523
  • 8
  • 52
  • 74
0
votes
0 answers

What is the output of gcc -c -Q -O --help=optimizers

I am building an application with the -O flag (gcc). But instead I would like to see which flags -O enables so that I can decide if I want to enable them or not. The output of gcc -c -Q -O --help=optimizers gives me a list like…
Heinrich Heine
  • 303
  • 3
  • 12
0
votes
1 answer

Which flags are enabled by -O?

My application has some portability issues when compiled with the -O flag. I would like to find out which flag exactly triggers the problem, yet I am still unsuccessful.. I used all flags found in gcc -c -Q -O --help=optimizers but I still cannot…
Heinrich Heine
  • 303
  • 3
  • 12
0
votes
0 answers

How to change flags of a compiler in Xcode 6.3?

I'd like to change the compilers options (flags) of a project which is based on the "command line tool" project template from Xcode 6.3. Basically, I'd like to remove the -lcurses flag (which is added during compilation) when project is based on…
Mateusz Piotrowski
  • 8,029
  • 10
  • 53
  • 79
0
votes
1 answer

Are there Clang flags that are only for Objective-C?

Simple question, but I can't find the answer in the Clang documentation. Are there any Clang compiler flags that are only for Objective-C? Objective-C seems to share many flags with C, but I imagine that it has many flags of its own.
MrSynAckSter
  • 1,681
  • 1
  • 18
  • 34
0
votes
1 answer

Clang built on GCC

I was searching online to see if clang supported reproducible builds. I read that GCC guaranteed reproducible builds using the -frandom-seed flag. I wanted to know if clang supports that flag and I could not find anything regarding that.I then came…
James Franco
  • 4,516
  • 10
  • 38
  • 80
0
votes
0 answers

Intel C++ compiler: which flags for optimizing Intel Xeon E3-1200 series and E5-2430 v2?

I'm trying to get the best performance for a cpp algorithm (floating point, several loops and big data) compiled with Intel C++ compiler (icpc) on some Ubuntu 12.04.5 Desktop machines. I've read that the optimizing flag -O3 is usually the best one,…
user1403546
  • 1,680
  • 4
  • 22
  • 43
0
votes
1 answer

Multiple Conditional compilation Macros with C

I'm trying to set up a makefile that compiles multiple segments of a rather lagrge program. In order to do so I want a Makefile to be able to pass MULTIPLE debug flags at once So I can test multiple different sets of functions together. So in my…
davidawad
  • 1,023
  • 11
  • 20
0
votes
1 answer

#define real function name to __noop in Visual C++ 2013

I can do this in Visual C++ 2008 with Release (NDEBUG) setting: debug.h #ifdef _DEBUG void debug_printf(const char* format, ...); #else #define debug_printf(format, v) __noop #endif debug.cpp #include "stdafx.h" //#include "debug.h" is…
0
votes
1 answer

How to set Theano flags in the THEANORC file? And where?

I'm trying to install Theano, but it is more complicated than I thought. I've used Enthought Canopy and the guide on http://deeplearning.net/software/theano/install.html#install. In order to complete the installation I want to set the flags…
pir
  • 5,513
  • 12
  • 63
  • 101
0
votes
2 answers

How to run a python script with arguments?

I downloaded some code from the web which is a python script. When i run it with my IDE this is the output: /usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/bin/python2.7 /Users/user/PycharmProjects/Pruebas/RBM.py usage:…
john doe
  • 2,233
  • 7
  • 37
  • 58
0
votes
0 answers

/showIncludes missing some includes

I'm using the VS2008 compile flag /showIncludes to analyse a build. But I've hit something that I'm a little unclear about. I have a file A.h. It includes the following windows.h memory assert.h vector But when I analysis the build log after…
Shane Gannon
  • 6,770
  • 7
  • 41
  • 64
0
votes
0 answers

Removing 64-bit support for a separate file (compile flag?) xcode

I am using some c files in my objective-c project that stopped working. I figured out that the problem disappears when I remove arm64 from the Valid Architectures option in Build Settings. I have very limited experience in c and would rather not…
Nilsymbol
  • 515
  • 1
  • 9
  • 25
0
votes
1 answer

gfortran flags for most high performing production code

Would you please suggest GNU Fortran compiler gfortran flags for the most high performing production code? Currently I'm using gfortran -O3. The code will be run on 64-bit Intel platforms.
mabalenk
  • 887
  • 1
  • 8
  • 17