compiler

Is it possible to install c# compiler w/o Visual Studio?

I want to build projects from command line. Is it possible to deploy c# compiler without installing Visual Studio? ...

What issues can I expect compiling C code with a C++ compiler?

If you take an existing C code base and compile it with a C++ compiler, what sort of issues can you expect to crop up? For example, I think that assigning an integer to an value with an enumerated type will fail in C++, whereas it's legal ( if a bit nasty ) in C. If I don't wrap all my C files in "extern C { ... }", am I going to get na...

Elegant way of holding large static typesafe dictionary in java - or avoiding code too large

Basically I would like to have some dictionary that is an abstaction over legacy #define directives. I have an old header file that contains 6000+ defines, that are used as flag parametersome function and these defines denote one type of entity parameter. In C i have GetParameter(... , T_CTITLE, ...); In Java i would like to call...

C Programming: difference between ++i and i=i+1 from an assembler point of view?

This was an interview question. I said they were the same, but this was adjudged an incorrect response. From the assembler point of view, is there any imaginable difference? I have compiled two short C programs using default gcc optimization and -S to see the assembler output, and they are the same. ...

Difference between n = 0 and n = n - n

When I read this question I remembered someone once telling me (many years ago) that from an assembler-point-of-view, these two operations are very different: n = 0; n = n - n; Is this true, and if it is, why is it so? EDIT: As pointed out by some replies, I guess this would be fairly easy for a compiler to optimize into the same th...

Any experience/opinion about CCI (Common Compiler Infrastructure)?

Hi, If you have any real-life experience with CCI (CciMetadata or CciAst) then please share it so I don't start on a blind alley. I'm interested in the metadata model (is better than System.Reflection for analysing types in assemblies?) and the AST model (is it usable as a base for a language-specific AST?). General opinion about docu...

Any ideas why incremental flex compilation would not work for successive compilations of identical source?

I am running mxmlc in the command-line with -incremental=true. Flex is building the cache file using a checksum the first time. Subsequent compilations fail with this message: Failed to match the compile target with path_to_cache/projectname_329043.cache. The cache file will not be reused. path_to_cache exists the cache file exists i...

Help with automating large project compiling.

Hi, I'm working on an automation project for my employer. We have a pool for each revision of our source code. When you download a revision, you need to create a directory structure with a bunch of third party includes to eventually build the project. I've automated this entire process up to the point of having my script (.bat) compile e...

Delphi compiler warnings pointing to Delphi's own units

In Delphi 2007, working on a project which includes a custom component, I'm getting this set of warnings as the first four in Messages when I do a full build (but not when I do a straight compile): [DCC Warning] Dialogs.pas(1426): W1002 Symbol 'TFileOpenDialog' is specific to a platform [DCC Warning] Dialogs.pas(1446): W1002 Symbol 'TFi...

Errors while compiling Neko VM OS X

I'm trying to compile the Neko VM on Mac OS X (10.5.7) using GCC 4.01 and I'm completely stuck, because it stops while compiling saying: vm/threads.c:202: error: conflicting types for 'neko_thread_register' vm/neko_vm.h:37: error: previous declaration of 'neko_thread_register' was here I've tried googling this and some say it's becaus...

How do modern compilers use mmx/3dnow/sse instructions?

I've been reading up on the x86 instruction set extensions, and they only seem useful in some quite specific circumstances (eg HADDPD - (Horizontal-Add-Packed-Double) in SSE3). These require a certain register layout that needs to be either deliberately set up, or occur from the series of instructions before it. How often do general-purp...

What are good, freely available SSA/SCCP resources?

This is what I could come up with so far: gcc related: SSA for Trees Tree SSA – A New Optimization Framework for GCC Tree SSA A New Optimization Infrastructure for GCC Design and Implementation of Tree SSA Other: An Implementation of Sparse Conditional Constant Propagation for Machine SUIF Concurrent Static Single Assignment Form ...

How do I invoke C++ compiler programmatically?

For business reasons, I want to create a C# application that would take a C++ file / snippet as input, compile it (probably invoking a C++ compiler under the hood) and output compilation results. Do you know how this could be done? Thanks in advance. ...

Are there any scientific papers or offical documentation about C# compiler 3.0 ?

I am writing paper on extending default c# 3.0 compiler with some functions from ML.But I am having very hard time with finding any official literature from Microsoft. Thanks for any help. ...

C++ Interface Compiling

EDIT: I figured out the solution. I was not adding -combine to my compile instructions and that was generating the errors. I'm in the process of working through the Deitel and Deitel book C++ How to Program and have hit a problem with building and compiling a C++ interface using g++. The problem is, I've declared the class in the .h...

Difference between a bytecode parsed instruction and machine language?

"A bytecode program is normally executed by parsing the instructions one at a time. This kind of bytecode interpreter is very portable. Some systems, called dynamic translators, or "just-in-time" (JIT) compilers, translate bytecode into machine language as necessary at runtime: this makes the virtual machine unportable." A question ...

What does the 'Validating Web Site' step do when building an ASP.Net website?

It's taking some time to do every time I debug my application. Is it something I can speed-up or skip? ...

Is there something like libtcc for C++, or an extremely fast C++ compiler?

Hello, There is very good compiler tcc and its library libtcc, that allows direct compilation of code inside code. i.e. Allows creation of self-generated code. I'm looking for similar library for C++, if any exists. Or, I need and extremely fast reasonably good C++ compiler, so I may run it to generate shared object and dlopen it. I do...

Mixing libraries from different C++ compilers

I am working on redhat 5.2 on a project which spans several disparate organizations. Each organization delivers libraries which have been compiled with various versions of g++. Currently, these versions include 4.1.1, 4.1.2 and 4.3.1. I am trying to link all the libraries together into an executable using 4.1.2. What, if any, problem...

Natural Programming Language.... what would you like to see?

I am looking at writing a compiler and after I complete something in a "C" style I am looking at adapting it to other models. What are some syntactical constructs you would expect to see in a "natural" programming language? The target platform for this compiler will be the CLR and I am currently using Oslo+MGrammar for the lexer/pars...