compilation

Precompilation and startup times on ASP.Net

I am developping a (relatively small) website in ASP.Net 2.0. I am also using nAnt to perform some easy tweaking on my project before delivering executables. In its current state, the website is "precompiled" using aspnet_compiler.exe -nologo -v ${Appname} -u ${target} I have noticed that after the IIS pool is restarted (after a i...

Java Compilation - Is there a way to tell the compiler to ignore parts of my code?

I maintain a Java Swing application. For backwards compatibility with java 5 (for Apple machines), we maintain two codebases, 1 using features from Java 6, another without those features. The code is largely the same, except for 3-4 classes that uses Java 6 features. I wish to just maintain 1 codebase. Is there a way during compilatio...

Is there a working on-the-fly compilation in NetBeans 6.5 and how well is it doing?

I learned today that NetBeans 6.5 should have an on-the-fly compilation of (single) Java files. This feature is well known from Eclipse: Simply store the file and the compiled class is stored, too. Is NetBeans working the same way? If not, how is it ticking? ...

.NET property generating "must declare a body because it is not marked abstract or extern" compilation error

I have a .NET 3.5 (target framework) web application. I have some code that looks like this: public string LogPath { get; private set; } public string ErrorMsg { get; private set; } It's giving me this compilation error for these lines: "must declare a body because it is not marked abstract or extern." Any ideas? My understanding...

What are the other uses of the "make" command ?

A sysadmin teacher told me one day that I should learn to use "make" because I could use it for a lot of other things that just triggering complilations. I never got the chance to talk longer about it. Do you have any good example ? As a bonus, isn't it this tool deprecated, and what are modern alternatives (for the compilation purpose...

Recursive descent parsing - from LL(1) up

Hello, The following simple "calculator expression" grammar (BNF) can be easily parsed with the a trivial recursive-descent parser, which is predictive LL(1): <expr> := <term> + <term> | <term> - <term> | <term> <term> := <factor> * <factor> <factor> / <factor> <fa...

Why doesn't WD Velociraptor speed up my VC++-compilation significantly?

Several people round here recommended switching to the new WD Velociraptor 10000rpm harddisk. Also magazine articles praise the performance. I bought one and mirrored my old system to it. The resulting increase in compilation-speed is somewhat disappointing: On my old Samsung drive (SATA, 7200), the compilation time was 16:02. On the ...

java in-memory compilation

Hi How can i generate bytecode (Byte[]) from a String at runtime, without using a "javac" process or something of this sort? is there a simple way of calling the compiler like that? later addition: I chose to accept the solution that actually best fits my situation. my application is a hobby-project still in design sketch phase, and i...

Is it possible to compile Python natively (beyond pyc byte code)?

I wonder if it is possible to create an executable module from a Python script. I need to have the most performance and the flexibility of Python script, without needing to run in the Python environment. I would use this code to load on demand user modules to customize my application. ...

Would NTFS allocation blocks of 16KB or 32KB make compile time faster in comparison to the default 4KB?

Would NTFS allocation blocks of 16KB or 32KB make compile time faster in comparison to the default 4KB? ...

How to check if a file exists in a makefile

I have a makefile template to compile a single DLL (for a plugin system). The makefile of the user looks like this: EXTRA_SRCS=file1 file2 include makefile.in In the makefile.in I have: plugin.dll: plugin.os $(patsubst %,%.os,$(EXTRA_SRCS)) Where plugin.os is the main C++ file to be compiled. Btw, the files ending is .os are the ob...

Compiling a .vbproj or .csproj project file without Visual Studio

Is there a way to compile a .vbproj or .csproj project file directly, just like Visual Studio does? When you compile in Visual Studio, the "output" window shows the actual call to the compiler, which normally looks like: vbc.exe [bunch of options] [looooong list of .vb files] I would like to programatically call "something" that would...

GCC: program doesn't work with compilation option -O3

I'm writing a C++ program that doesn't work (I get a segmentation fault) when I compile it with optimizations (options -O1, -O2, -O3, etc.), but it works just fine when I compile it without optimizations. Is there any chance that the error is in my code? or should I assume that this is a bug in GCC? My GCC version is 3.4.6. Is there a...

Why does C++ compilation take so long?

Compiling a C++ file takes a very long time when compared to C#, Java. It takes significantly longer to compile a C++ file than it would to run a normal size Python script. I'm current using VC++ but it's the same with any compiler. Why is this? The two reasons I could think of were loading header files and running the preprocessor, but...

Visual Studio Project References inside solution

What is the best way to reference a project inside solution. I added references via Add Reference --> Projects. However it links to either release DLL or Debug dll. I want to have project itself in the reference, when we compile the projects, all the references projects must be compiled (through dependencies). How to do this? ...

Good resources concerning linking process in compilation

Hi everyone I've been coding for some time, and I always thought the linking phase of compilation was pretty straight forward, but recently I had to add a plugin system to an app, and I ran into quite a few compilation and runtime problems, due to my complete lack of knowledge on the matter. I've now got it working fine and learned a lo...

Is it possible to use Mono static compilation on Windows?

I was wondering if it is possible to use Mono static compilation on Windows. If so, what should I do? ...

How do YOU reduce compile time, and linking time for Visual C++ projects? (native c++)

How do YOU reduce compile time, and linking time for VC++ projects? (native C++) Please specify if each suggestion applies to debug, release, or both. ...

Variable event

Hi guys I'm having a problem with a Klondike Solitaire I'm programming. It's almost finished but now when I try to compile (I'm using Dr. Java, yeah I know), it keeps popping up with 2 errors. Cannot find symbol: Variable event Cannot find symbol: Method "findbunki" (java.awt.Point) I've already imported java.awt, so that can't be it....

C# compilation question: newlines in 1 statement causing error.

A simple question Consider this piece of code in C# String a; String b; String c; 1. a = 2. b = 3. //Comment 4. c = "a String"; During compilation, it was fine, but i hit an error when I run my application. From my logs, the error occur at the above. Question: Is the error caused by the comment in line 3? The error is "Ob...