compilation

Castor compilation problem

I got "cannot access org.exolab.castor.core.exceptions.CastorException" from the compiler when I try to use Marshal and unmarshal. I used Castor 1.3 try { Writer writer = new FileWriter("out.xml"); Marshaller.marshal(person, writer); Reader reader = new FileReader("out.xml"); metaType = (Person) Unma...

Why doesn't the JVM cache JIT compiled code?

The canonical JVM implementation from Sun applies some pretty sophisticated optimization to bytecode to obtain near-native execution speeds after the code has been run a few times. The question is, why isn't this compiled code cached to disk for use during subsequent uses of the same function/class. As it stands, every time a program is ...

debug via going into preprocessing, compilation, assembly and linking

Hi, Sometimes when there are errors output by gcc, one will break down the the process for each stage of preprocessing, compilation, assembly, linking by options like -E, -S and -c. Here is an example. I just wonder what types of errors could happen at each of these four stages and if there is one error occuring at one of these stages ...

How difficult is it to compile the Go programming language?

Basically what the title says: what's the process for compiling your average go* file? drop it on a compiler and execute the result? *note: The OP edited the question replacing "go" with "C", before it was rolled back. So some of the answers won't make sense. ...

How easy is compiling a C program?

Related to this question. What's the process for compiling a C program (assume 1 file)? ...

How to resolve fatal error LNK1000: Internal error during IncrBuildImage?

I am trying to recompile solution file for memcached project on Windows 7 64 bit with Visual Studio 2008 and got the following error: 1>LINK : fatal error LNK1000: Internal error during IncrBuildImage 1> Version 9.00.21022.08 1> ExceptionCode = C0000005 1> ExceptionFlags = 00000000 1> ExceptionAddress = ...

Generate VS Solutions and Projects From a Given MakeFile

I downloaded a few open source c++ projects from the internet, which makes use of makefile for compilation purpose. Is there anyway to import those makefiles into the VS 2008, make VS 2008 to use the makefiles to generate binaries? ...

how to catch devenv exception

Hello, How can I catch an error in devenv? If an error occures (the build fails..) I need to print it out. How can I do that? Thanks! ...

Impact of hyperthreading on compiler performance?

Say we want to compile a large project (say GCC or the Linux kernel) as fast as possible. Does a CPU with hyperthreading capability (say an Intel Core i7) run the compiler any faster with hyperthreading enabled or disabled? Are there any published benchmarks that test this? My understanding of hyperthreading is that each core can select...

compiling the web app in monodevelop

hi, i installed the mono develop and mono 2.6 on windows, when i compile the app im getting this exception. can any on help me to solve the issue, Registering application: Host: any Port: any Virtual path: / Physical path: C:\Documents and Settings\sameer\My Documents\Projects\testMonoWeb\testMonoWeb\ pp11:Mono...

File compilation order in VS2008

I would like to explicitly set the order of compilation of C# files in VS2008. Order in the project file, file naming seems to have no effect. Situation: I have dozens of partial classes, each split over two files: 1) The file containing the auto-generated parts and 2) the file containing the manually written parts. The code generator ...

ASP.NET deployment: How to avoid losing session state when updating code?

How do you work-around the fact that sessions are dropped every time you deploy certain code files to an ASP.NET website? Sometimes we need to deploy a crucial fix in the middle of the day but don't want to boot off all our users for it. ...

Why WebSphere 6.1 (JDK 1.5 Compliant) compiles my JSPs as JDK 1.4?

Our web application is JDK 1.5 compliant, and is running succesfuly on WebSphere 6.1 However, some JSPs we have that contain Java code in 1.5 syntax fail to compile by WebSphere. It seems that for some reason, WebSphere treats the JSPs as 1.4 complient and fails to compile. Any idea why and how to solve this? (Stop writing Java in JSP...

Is there any way to add references without recompiling in .NET?

I am using a IoC Container (Castle Windsor) to instantiate classes accordingly to the configuration file. If I want to add classes from a new dll that didn't exist when I compiled the project, there is any way to do that without recompiling? Edit: As this project is a Service Host for WCF service, and the classes that I want to include ...

Inspect Groovy object properties with Java reflection

I have an Expando class which I need to inspect its properties from Java. In Groovy: def worker = new Expando() worker.name = "John" worker.surname = "Doe" In Java: Introspector.getBeanInfo(groovyObject.getClass()) Is it possible to compile at runtime the class from the object in Groovy? ...

autotools for 2 programs

I have a program main.c which calls header.c with the help of header.h in its program. I know how to compile it in GCC but now i would like to use autotools for it. I would like to know what should be written in Makefile.am to compile main.c? so for example if i have two c files main.c and header.c as given below main.c:- #include<std...

iPhone -mthumb-interlinking

hi! os i figured out how to use the -mthumb and -mno-thumb compiler flag and more or less understand what it's doing. But what is the -mthumb-interlinking flag doing? when is it needed, and is it set for the whole project if i set 'compile for thumb' in my project settings? thanks for the info! ...

how to clean one projectfile with devenv?

How can I clean a single vc project file? I tried this: devenv SolutionName.sln /Clean SolnConfigName The\Path\to\the\FileToClean.vcproj but it dosn't work. How can I do it? thanks ...

What are the advantages of just-in-time compilation versus ahead-of-time compilation?

I've been thinking about it lately, and it seems to me that most advantages given to JIT compilation should more or less be attributed to the intermediate format instead, and that jitting in itself is not much of a good way to generate code. So these are the main pro-JIT compilation arguments I usually hear: Just-in-time compilation a...

Problem with ilasm

I have a quite big program in .net 3.5 SP1 which is compiling just fine. However when I want to obfuscate it with Obfuscator Pro (evaluation for now), Obfuscator stops with the following error: [Build Output] This application has requested the Runtime to terminate it in an unusual way. [Build Output] Please contact the application'...