compilation

Is a C++ compiler allowed to emit different machine code compiling the same program?

Consider a situation. We have some specific C++ compiler, a specific set of compiler settings and a specific C++ program. We compile that specific programs with that compiler and those settings two times, doing a "clean compile" each time. Should the machine code emitted be the same (I don't mean timestamps and other bells and whistles...

How "duplicated" Java code is optimized by the JVM JIT compiler?

I'm in charge of maintaining a JSP based application, running on IBM WebSphere 6.1 (IBM J9 JVM). All JSP pages have a static include reference and in this include file there is some static Java methods declared. They are included in all JSP pages to offer an "easy access" to those utility static methods. I know that this is a very bad wa...

How to hook custom compiler logic based on annotations

I want to define a few annotations that will allow extra warnings/errors to be reported during compilation (similar in concept to the @Nullable and @NotNull annotations in IntelliJ). I would like to be able to write some compiler hooks that will also add my compilation logic based on those attributes. I want a generic hook if possible,...

why this not compile?

I have these files: c:\MY_SOURCES\AClient.java c:\MY_SOURCES\Pluto.java c:\MY_SOURCES\com\Classes\Pluto.class Into AClient.java I have import com.Classes.*; Pluto p = new Pluto(); When I compile the file with: javac -classpath . AClient.java the compiler tell me that it cannot access Pluto as bad source file Pluto.java ... but i...

.NET : How to use JIT compiler

I would like to use directly the .NET JIT Compiler, is it possible ? I mean, I would like to do a thing like : ?> jit.exe myfile.msil myfile.exe Or in a c# code ? ...

c++ boost compilation catastrophe

I'm writing a DLL plugin for a windows application, after adding the following includes: #include <boost/archive/text_oarchive.hpp> #include <boost/archive/text_iarchive.hpp> I get a wonderful compilation error: Error 3 error C2143: syntax error : missing ';' before '__cdecl' c:\program files (x86)\microsoft visual studio 9.0\vc\incl...

When is <Compilation> used in ASP.net

I'm having some trouble setting the ExecutionTimeout element in my applications web.config. My page is making a lengthy webservice call and times out after 110 seconds. (the default I believe). I set the value to 220, and make sure the compilation debug=false. Does the compilation setting refer to when IIS/ASP.net compiles the ASPX ...

Compile-time, load-time, run-time: phases of... what?

Hi. Sorry for the confusing title :P I'm sure I should know this but I always have trouble with terminology. I can't figure out the right word to put in the blank space in the following sentence: Different weaving strategies are usually classified according to the phase of _______ at which they are performed, resulting in the ...

Telerik Extensions for ASP.NET MVC Q1 2010: Not compiling: Shows warning :The referenced component 'System.Web.MVC' could not be found.

If I try to compile the source of Telerik Extensions for ASP.NET MVC Q1 2010 it is not getting compiled. It shows error: The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) Tried to remove and add the System.Web.MVC but still it dont recognize it as valid ref...

Compiling apache modules for Windows and Linux distros

Hello everyone. I have written an Apache2 module in C, now I am at the point of distributing the module. I am not sure of the standard practices regarding the distribution of Apache modules, so I am considering to provide binaries for some of the more common platforms, like Windows and Ubuntu, etc. I have two questions to ask- Will ...

How to compile matlab script for specified Matlab Runtime (MCR)

Hello. I have Matlab 2010a installed on my machine, and MCR 7.6 installed on client's machine. I try to figure out how can I compile my code for MCR 7.6. Currently mcc comlipes scripts for 7.9 ( which has been installed with Mathlab). Does mcc has any arguments for it, or parameters in cfg file? (or anything else) Thank you. ...

Java - Dynamic Compilation without JDK

im aware that j2se 6 has introduced the JavaCompiler API; however, it's cumbersome to use and require a JDK not JRE. Is it possible to do dynamic compilation without a JDK? (im very interested in all-in-memory compilation.) additionally, i expect the performance to be close to raw java code, so i don't want to use a scripting language ...

Would it be possible for a JIT compiler to utilize GPU for certain operations behind the scenes?

Feel free to correct me if any part of my understanding is wrong. My understanding is that GPUs offer a subset of the instructions that a normal CPU provides but executes them much faster. I know there are ways to utilize GPU cycles for non-graphical purpose, but it seems like (in theory) a language that's Just In Time compiled could d...

in gcc how to force symbol resolution at runtime..

Hi, My first post on this site with huge hope:: I am trying to understand static linking,dynamic linking,shared libraries,static libraries etc, with gcc. Everytime I try to delve into this topic, I have something which I don't quite understand. Some hands-on work: bash$ cat main.c #include "printhello.h" #include "printbye.h" void ...

Package compilation in R 2.11.1 fails on Windows

I recently upgraded R to 2.11.1 from 2.10.0 and now my package installation fails: $ R CMD INSTALL --build blah_1.0.tar.gz * installing to library 'c:/PROGRA~1/r/R-211~1.1/library' * installing *source* package 'blah' ... ** libs making DLL ... ... done ERROR: compilation failed for package 'blah' * removing 'c:/PROGRA~1/r/R-211~1.1...

AdaGide: debug mode and release mode

hi, If I understand correctly then the release mode enables a program to run faster than running the program in debug mode. A general question will be if one has to run the program first in debug mode and then switch to run the program in release mode in order for the release mode to "skip over" checks it normally makes when running...

JITs fundamentals

I understand somewhat how "int a = b+abs(c)" can be translated to simple assembly instructions and then translate that to some binary blob. But how can this be run and be interacted with dynamically in memory? -- edit -- I know C doesn't have an eval feature. But what it's compiled to does. I mean this is what makes Java like JITs, and...

Problems with 'Publish Web Site' on Visual Studio 2010

Recently I've upgraded from Visual Studio 2008 to Visual Studio 2010, however I'm having various problems when uploading my compiled web site to the live area. I'm doing exactly the same as I would have done with Visual Studio 2008, however, now I receive errors such as: {filename}.aspx is not a pre-compiled file masterpage.master does...

Compiled interpreted language

Is there a programming language, having usable interactive interpreter, even as it can be compiled to machine code? ...

Define's in Action script

I'm trying to pass a build number from Hudson into a Flex application. I've found Adobe's document (http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_21.html) on conditional compilation which seems it should solve it but i must be missing something. So in my ant build file i have:- <mxmlc file="${app.dir}/${app...