17,495 questions
0
votes
2
answers
2k
views
Any Macro or Technic for Part Optimization?
I am working on lock free structure with g++ compiler. It seems that with -o1 switch, g++ will change the execution order of my code. How can I forbid g++'s optimization on certain part of my code ...
25
votes
11
answers
44k
views
minimum c++ make file for linux
I've looking to find a simple recommended "minimal" c++ makefile for linux which will use g++ to compile and link a single file and h file. Ideally the make file will not even have the physical file ...
10
votes
16
answers
11k
views
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 ...
2
votes
3
answers
391
views
Insert Function Name during PreBuild
I wanted to write a Visual Studio Macro or something similar which can fetch function name and insert into preset location in the error report part. It's clearer if you look at the example
Class ...
0
votes
2
answers
1k
views
openCV doesn't compile on Leopard
I've been for the past few hours trying to figure out why openCV doesn't compile on leopard. I've been googling for references but all point to a dead google group.
So my question is quite simple: I'...
36
votes
15
answers
26k
views
Is it possible to compile and execute new code at runtime in .NET?
Note: Mathematical expression evaluation is not the focus of this question. I want to compile and execute new code at runtime in .NET. That being said...
I would like to allow the user to enter any ...
33
votes
8
answers
13k
views
Operating System compile time
This is just a general question - I was sitting and waiting for a bit of software to compile (we use Incredibuild here but can still take 10/15 mins) and it got me wondering, does anyone know how long ...
1
vote
4
answers
3k
views
Change to 64 bits not allowed when trying to edit in debug, why?
I receive this message (see image below) when I try to edit in debugging. This occur only in my Vista64bits OS, not in my XP computer. Why and what should I do?
Update
I found that I need to compile ...
11
votes
4
answers
7k
views
java in-memory compilation
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 ...
17
votes
39
answers
6k
views
Have you ever crashed the compiler? [closed]
Everyone (at least everyone who uses a compiled language) has faced compilation errors but how many times do you get to actually crash the compiler?
I've had my fair share of "internal compiler ...
6
votes
10
answers
1k
views
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 ...
3
votes
2
answers
3k
views
How to compile classes to JDK1.5 when ant is running in JDK1.6
My development environment is running in JDK1.6, and I need to compile some classes so they are compatible with a client running JDK1.5. How would I do this with the 'javac' ant target?
7
votes
14
answers
10k
views
Creating non-reverse-engineerable Java programs
Is there a way to deploy a Java program in a format that is not reverse-engineerable?
I know how to convert my application into an executable JAR file, but I want to make sure that the code cannot ...
163
votes
10
answers
122k
views
Is it feasible to compile Python to machine code? [closed]
How feasible would it be to compile Python (possibly via an intermediate C representation) into machine code?
Presumably it would need to link to a Python runtime library, and any parts of the Python ...
6
votes
6
answers
10k
views
Using Visual Studio 2008 to Assemble, Link, Debug, and Execute MASM 6.11 Assembly Code
I would like to use Visual Studio 2008 to the greatest extent possible while effectively compiling/linking/building/etc code as if all these build processes were being done by the tools provided with ...
7
votes
5
answers
27k
views
BSCMAKE: error BK1506 : cannot open file StdAfx.sbr No such file or directory
I have converted one of my VS2006 projects into VS2008 and when trying to build the project in VS2008 I get the above error. What is .sbr file ? and how can I fix the compile error? Any help is hugely ...
4
votes
8
answers
626
views
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 ...
652
votes
18
answers
310k
views
What does a just-in-time (JIT) compiler do?
What does a JIT compiler specifically do as opposed to a non-JIT compiler? Can someone give a succinct and easy to understand description?
20
votes
4
answers
12k
views
How can I package my Perl script to run on a machine without Perl?
People also often ask "How can I compile Perl?" while what they really want is to create an executable that can run on machines even if they don't have Perl installed.
There are several solutions, I ...
12
votes
14
answers
10k
views
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 ...
133
votes
34
answers
89k
views
Very slow compile times on Visual Studio 2005
We are getting very slow compile times, which can take upwards of 20+ minutes on dual core 2GHz, 2G Ram machines.
A lot of this is due to the size of our solution which has grown to 70+ projects, ...
4
votes
7
answers
4k
views
Targeting multiple versions of .net framework
Suppose I have some code that would, in theory, compile against any version of the .net framework. Think "Hello World", if you like.
If I actually compile the code, though, I'll get an executable ...
12
votes
14
answers
13k
views
Any advice for speeding up the compile time in Flex Builder 3?
I run Flex Builder 3 on a mac and as my project grows - the compile time gets longer and longer and longer. I am using some SWC's and there is a fair amount of code but it shouldn't take minutes to ...