compiler

How can I add class folders into Eclipse?

Say Eclipse is set to compile to a build directory at 'bin' and I have a folder structure with various Java .class files (precompiled) which I won't to copy into the folder 'bin' on compile. How do I go about achieving this? ...

What is /optimize C# compiler key intended for?

Is there a full list of optimizations done by the /optimize C# compiler key available anywhere? EDIT: Why is it disabled by default? Is it worth using in a real-world app? -- it is disabled by default only in Debug configuration and Enabled in Release. ...

Why are lexical scopes prefered by the compilers?

How does lexical scope help the compilers? Does it help in compilation or optimization? ...

Can I compile anonymous or inner classes into a single java .class file?

I am writing a Java class that parses log files. The compiled .class file needs to be loaded into a 3rd party monitoring platform (eG) for deployment and invocation. Unfortunately, the 3rd party platform only allows me to upload a single .class file. My current implementation has a function to find the 'latest' file in a folder that...

What compilers target JavaScript runtimes?

I am using GWT, which includes a Java-to-JavaScript compiler. Before this project, targeting the JavaScript runtime from a different language hadn't occurred to me, and I'm enjoying the GWT experience. A quick search revealed Java2Script as another Java-to-JavaScript solution. Are there any other mature compilers that target the JavaS...

How to force Delphi compiler to display all hints and warnings

Is there a way to force the Delphi compiler to display all hints and warnings all the time? Here is the behavior that I am currently seeing in Delphi 6: Check out fresh copy of my application from source control Open project in Delphi and Compile All hints and warnings for the project are displayed Make a change in one unit Compile On...

What is the best C compiler for the 8051 family?

We are starting a new project based on an 8051 microcontroller. Questions: What is the best C compiler to use? Are there any open source 8051 compilers and how good are they? ...

initialize a variable statically (at compile time)

Hi guys, 1) I've got many constants in my C algo. 2) my code works both in floating-point and fixed-point. Right now, these constants are initialized by a function, float2fixed, whereby in floating-point it does nothing, while in fixed-point, it finds their fixed-point representation. For instance, 0.5f stays 0.5f if working in floatin...

using pragma or any programmatic way of excluding a cpp/header file from a project in Visual Studio

I know there are other questions regarding that, and I also know that I can right click on the files that I want excluded, and select Exclude from Project. However. I'm wondering if there are any easy ways of achieving the same purpose programmatically. For example, in a VS project, to link with an external library, I can either add the ...

which cross compiler ??

hello... please tel me what is the difference between MinGW cross compiler and GCC Cross compiler. which is used in which Operating System?? i'm very much in confusion... I need to create ".exe" in Linux Operating system using QT, hence tel me which is the cross compiler to be used. Please do reply. ...

Why does Delphi (dcc32.exe) have an option to set a "Namespace search path"?

The compiler (dcc32.exe) in Delphi 2007 and 2009 has an option -NS<namespaces> = Namespace search path Is this releated to the compiler options 'Default namespace' and 'Namespace prefixes' in the project options dialog? Search 'path' sounds like a folder (directory) name, so I am not sure what this option is good for. ...

Looking for a source tree to benchmark compilation

I need to run a set of compilation benchmark tests on a system, I'm looking for a Visual Studio project (e.g. from Codeproject.com) which would take about 5 minutes to build on a modern laptop. Any ideas? ...

Is it useful in C# to apply DeMorgan's theorem to manually optimize boolean expressions in conditional statements (e.g. if conditions)

Back in the day when I did most of my work in C and C++, as a matter of course, I would manually apply deMorgan's theorem to optimize any non-trivial boolean expressions. Is it useful to do this in C# or does the optimizer render this unnecessary? ...

Compiler design resources

Guys what are the best Online resources for learning Compiler Design ? Would Perl be a viable language to write a Compiler ? ...

Is C# compiler open source?

Is C# compiler open source? ...

When C# compiler is written in C#, will one be able to modify it?

I am wondering about it in terms of whether one can implement some new functionality for convenience. Will this be possible, when it's out? C# 5.0: compiler as a service: http://www.matthewlefevre.com/blog/entry.php/c-40-and-c-50/368 ...

Two classes that refer to each other

I'm new to C++, so this question may be basic: I have two classes that need to refer to each other. Each is in its own header file, and #include's the other's header file. When I try to compile I get the error "ISO C++ forbids declaration of ‘Foo’ with no type" for one of the classes. If I switch things so the opposite header gets pa...

Is there a Haskell compiler or preprocessor that uses strict evaluation?

I'm looking for a Haskell compiler that uses strict evaluation by default instead of lazy evaluation. I would just use OCaml, but Haskell's syntax is so much better than OCaml's (and Haskell is pure, and has cool features such as type classes). I'd really rather not constantly put !s and $!s all over my program. A compiler with a switch...

Compilation in emacs

I configure and install emacs but i don't know how to compile a c program. please give me full info. ...

Compilers compatible with gprof?

I am looking for a list of compilers able to generate a gprof output. ...