How do I compile a java program in a different version if I have 1.6 and I want it compiled in 1.5? Would it be like...
javac -target1.5 tileGen
But when I do that I get:
error: Class names, 'tileGen', are only accepted if annotation processing is exp
licitly requested
1 error
...
I'm wondering if simply compiling my msvc project with sse/sse2 will have any effect. I do for example vector normalization and dot product but I do these wth math, not any specific function. Is there like sse_dot() and sse_normalize() that I should be using to actualyy take advantage, or will the compiler know?
Thanks
...
When we build a programe,some symbols are to be resolved at link time(like those in a .lib),
but some can be resolved at run time(those in a .dll),
my doubt is that how does the compiler know about this, or how do we notify the compiler about this?
...
does struct member alignment in VC bring performance benefit? if it is what is the best performance implication by using this and which size is best for current cpu architecture (x86_64, SSE2+, ..)
...
I just built a cross compiler using crosstools "mips-unknown-linux-gnu-gcc" and I compiled a hello world program. The compilation went fine using the command: "mips-unknown-linux-gnu-g++ hello.cpp -o hello" but when I run the command "./hello" I get the following error:
babbage-dasnyder 50% mips-unknown-linux-gnu-g++ hello.cpp -o hello...
I'm testing to make sure that my cross compiler is working. When I compile hello world it seems to compile fine but when I change hello.cpp to the same program that loops 1000 times the elf file generated is exactly the same size. No matter what changes I make the file is always the same size and as far as I can tell, has the same cont...
Do you know good compiler designs when the output should be located into the process memory and executed immediately after compiling?
I've looked into few SCHEME compilers and read whatever I could about V8. There's interesting JIT techniques like inline caching I would like to try in my own compiler.
It's all right to answer with almo...
I'm trying to get a better understanding of the difference. I've found a lot of explanations online, but they tend towards the abstract differences rather than the practical implications.
Most of my programming experiences has been with CPython (dynamic, interpreted), and Java (static, compiled). However, I understand that there are oth...
I am running performance profile for a C# application on a virtual machine.
The results show huge load of "JIT Compiler". When I dig further in, it shows something called "Class Loader" as the only method getting called by JIT compiler.
What do I do to bring "JIT compiler" load down?
...
Well, the title says it all: How can I make Xcode tell the compiler not to link?
I am making a library which may not link to anything. Where can I set in the target's properties that it must not link to the standard library, as I can choose static or dynamic only, there is no not option.
Can you help me, please? Thanks.
...
I am working on a project that requires reading text files, extracting data from them, and then generating reports (text files). Since there are a lot of string parsing, I decided to do it in Perl or Python or PHP (preference in that order). But I don't want to expose the source code to my client. Is there any good compiler for compiling...
take two following classes and their constructors as samples:
class One{
public:
One(int a,int b):adad1(a),adad2(b){}
private:
int adad1;
int adad2;
};
class Two{
public:
Two(int input[]){
for (int i=0;i<10;i++)
araye[i]=input[i];
}
private:
int araye[10];
};
considering objects with static storage duration, I t...
Is there any free, small, fast, thing for compiling C# .net 3.5 console apps on Windows? I want something to write c# windows consol apps using ffmpeg (using tao framework) on my home eee pc; can anyone help me with it?
...
I'm building a web site and have multiple js files all in one directory. When I save any one of the js files I want a script to run that will compile and compress all files using the google closure compiler jar.
Example from Google Closure Compiler README:
java -jar compiler.jar --js=in1.js --js=in2.js ... --js_output_file=out.js
Is ...
Suppose that the purpose of an assignment is to write a compiler that works on a subset of C language (you can assume a subset of whatever language, just supporting basic scripting expressiveness without having complex things as objects).
What kind of intermediate code could be used to verify the correctness of the compiler? I was talki...
I'm trying to compile an executable (ELF file) that does not use a dynamic loader. I built a cross compiler that compiles mips from linux to be used on a simulator I made. I asserted the flag -static-libgcc on compilation of my hello.cpp file (hello world program). Apparently this is not enough though. Because there is still a segmen...
I'm working on a project that already contains the gzip library as follows:
zlib\zlib.h
zlib\zlib.lib
zlib\zconf.h
I would like to use the gzip functions from this .lib but am getting the following errors:
Compress.cpp
Linking...
Compress.obj : error LNK2001: unresolved external symbol _gzclose
Compress.obj : error LNK2001: unr...
Is it common for compilers (gcc for instance) to generate an instruction that loads some empty memory element into a register? Like... lw at,0(sp) where memory[sp + 0] = 0. This basically just places 0 into $at ($R1.) I ask because I'm looking through an executable file's hex dump (executable file is the result of the compilation of a...
I'd like to read some text about the compile-link-load process of a executable.
In general web-texts I found are not so detailed oriented as I'd like.
And no... I'm sure a book about compilers&linkers,etc it would be too much. I want a general knowledge especially how things are in practice.
Any reference would be appreciated... I'm su...
Why is there a difference in the output produced when the code is compiled using the two compilers gcc and turbo c.
#include <stdio.h>
int main()
{
char *p = "I am a string";
char *q = "I am a string";
if(p==q)
{
printf("Optimized");
}
else{
printf("Change your compiler");
}
return 0...