I understand pointers and the rare need to use them in C# code. My question is: what is the reasoning behind having to explicitly state "unsafe" in a block of code. Additionally, why must a compiler option be changed to allow "unsafe" code?
Bottom Line: What in the CLR (or language specs) makes it so we can't just use pointers whenever ...
The GCC 4.1.2 documentation has this to say about the -pipe option:
-pipe
Use pipes rather than temporary files for communication between the various stages of compilation. This fails to work on some systems where the assembler is unable to read from a pipe; but the GNU assembler has no trouble.
I assume I'd be able to tell fr...
As you know, /GS are Visual C++ Compiler or Linker Options.
Can i Specify /GS in c# compiler or linker?
Are these flags enabled by default in c# applications?
[Edit]: change the question contents:
2a. Are these features enabled (by these compiler options as in Visual C++)
by default in c# applications?
Is there a way to find ou...
Hi,
if anyone has used WT successfully with MSVC (mine is 2005), could you please provide some details on how this can be done?
I have installed WT fine , then ran some examples. The problems begin when I try to create a project of my own, as simple as hello.C. I get a thousand compiler errors like this one :
C:\Program Files\Microsoft...
I need to set additional options for C compiler, e.g. add flag to turn all warnings ON, depending on the type of the compiler. E.g. for MSVC I should use
env.Append(CPPFLAGS = "/Wall")
but for mingw (gcc) I need to use:
env.Append(CCFLAGS = "-Wall")
How can I do this in scons way?
...
Application crashes randomly when -fno-omit-frame-pointer option is added during compilation.
This problem happens in ARMARCH5gnu architecture in VxWorks.
Any pointers in the direction for resolving this will be helpful.
...
When running a Java 1.6 (1.6.0_03-b05) app I've added the -XX:+PrintCompilation flag. On the output for some methods, in particular some of those that I know are getting called a lot, I see the text made not entrant and made zombie.
What do these mean? Best guess is that it's a decompilation step before recompiling either that method or...
Does GCC have an equivalent compiler switch to VC's floating point model switch (/fp)?
In particular, my application benefits from compiling with /fp:fast and precision is not a big deal, how should I compile it with GCC?
...
When I compile an .as file with MXMLC via ANT Build and set the default-background-color and default-frame-rate compiler options everything works fine. However, when I compile the main Application file of a Flex Project ( .mxml ) these options are not working or are not visible in the output when I launch. The framerate returns as NaN an...
Does C++0x mode in VC++ 2010 has an off switch? I am working on a project that supposed to compile on non 0x compilers, and therefore I want to compile against the current standard. (Even if non of the new features are being used directly, there are still subtleties that makes C++0x more premissive).
The closest switch I found was Confi...
I have the construct:
{$ifopt FINITEFLOAT ON}
{$message 'FINITEFLOAT option ON' }
{$else }
{$message 'FINITEFLOAT option OFF' }
{$endif }
in my source and it won't compile! It's got to be something stupid. The error is:
E1030 Invalid compiler directive: '$IFOPT'
at the first line, but it is the FINITEFLOAT it's complaining abo...
What is the real difference between these two options? What I know is:
Register for COM Interop
This options executes regasm on the assembly and registers the assembly as an COM component(or maybe not) in the registry with all COM like registry entries.
Does this step generates a TLB file? What else is done?
Sometimes I see a tlb is ge...
Is is possible to put something at the top of the C source file, like
// GCC_OPTIONS=-g,-Wall
that will add those options automatically to gcc every time you compile this file?
...
There are compiler options in MSVC to enable the automatic generation of instrumentation calls on entering and exiting functions. These hooks are called _penter() and _pexit(). The options to the compiler are:
/Gh Enable _penter Hook Function
/GH Enable _pexit Hook Function
Is there a pragma or some sort of function ...