I've browsed through many JIT libraries. But I'd like to learn how to write one.
Softwire looked like nice. Though what the emitter interface should do? Can I do something better than existing libraries? How do I support inline caching?
...
I am using GNU ld's "-wrap" option to intercept calls in applications, but have ran into a scenario where the code implementing the wrapper indirectly calls the wrapped function, creating a circular reference.
Example
The goal is to wrap read calls that occur in Program Foo. This code can be recompiled/relinked, but not modified.
Prog...
http://timepedia.org/chronoscope/
I have a very specific charting need for a GWT application I am currently working on and found a reference to chronoscope in another stackoverflow post. I looked at it and tried to integrate it into my application but ran into this compiler error:
[ERROR] Errors in 'jar:file:/C:/dev/Viper/war/WEB-INF...
I'm going to try to write a compiler for a dynamic language. Preferably to some existing virtual machine --- I don't (yet) want to deal with garbage collection and the myriad other concerns a good VM handles for you. What VMs do you suggest?
I'm on Linux, so I don't know if .NET (via Mono) is that good an idea. I've heard that Parrot is...
List<int> list = ...
for(int i = 0; i < list.Count; ++i)
{
...
}
So does the compiler know the list.Count does not have to be called each iteration?
...
Hi ,
I am compiling my project in GWT with any target . I get the following error on Linux and Solaris . I can compile the Samples which came with GWT but get this error .
I am using GWT 2.0.3 and JDK 1.6.17
[java] Compiling module com.calix.ex1.webgui.ex1embeddedclient.Ex1EmbeddedGui
[java] [ERROR] Unexpected
[java] java.lang.N...
I'm simulating a biological model involving several (27) stiff ordinary differential equations using C++. My program runs perfectly under MS C++ 2010 expression compiler but fails under the g++ compiler (NetBeans 6.8, Ubuntu 10.04 LTS). The problem is that some of the variables become NaN. The following are the values of the variable Vm ...
In the book Fortran 95/2003 for Scientists and Engineers, there is much talk given to the importance of recognizing that the first column in a format statement is reserved for control characters. I've also seen control characters referred to as carriage control on the internet.
To avoid confusion, by control characters, I refer to the c...
This compiles
var fourGb = (long)4*1024*1024*1024;
But this fails
var fourGb = 4*1024*1024*1024;
With "The operation overflows at compile time in checked mode".
So if the compiler knows this will be an overflow why cant it infer that the variable type should be a long?
...
Is a standard-conforming C++ implementation allowed to implement some behavior that is said to be implementation-defined in the standard in such way that it is different between different runs of the same compiled once program with the same input data?
For example, is an implementation allowed to say "the behavior is this on weekends an...
According to C++ Standard, a reinterpret_cast of a pointer T* to some other type pointer Q* can change or not change the pointer value depending on implementation.
I'm very interested - it there any real example of a C++ implementation where casting a pointer to some other pointer type with reinterpret_cast changes the pointer? What and...
I have successfully compiled a C-program by GCC on Mac with GD2 library installed directly from sources. Now I am trying to do that with GD2 library installed via MacPorts and have the following error message:
plotgeometry.c:5:16: error: gd.h: No such file or directory
plotgeometry.c: In function 'PlotGeometry':
plotgeometry.c:28: erro...
Hey all, I'm trying to understand the python compiler/interpreter process more clearly. Unfortunately, I have not taken a class in interpreters nor have I read much about them.
Basically, what I understand right now is that Python code from .py files is first compiled into python bytecode (which i assume are the .pyc files i see occasio...
I'm trying to build a package on a RedHat system. First, I ran ./configure CXX=cpp, because /usr/bin/cpp is the C++ compiler on that system. But when I run make, it dumps:
cpp: "-c" is not a valid option to the preprocessor
When I do a Google search, I found a number of complaints, but no solutions. Anyone else encounter this?
...
I have to compile java code frequently, especially stuff like GWT which take ages to complete. I cannot avoid that overhead but I want to minimized it down with better hardware. Which factor will make these kind of compilation as fast as possible? (I know it's a little subjective, but when come to compilation, I'm sure that some factor a...
I tryied to build gcc 4.5.0 on Linux version 2.6.18-164.6.1.el5, and found the following problems that I couldn't find an answer on Google. I used the following command.
../gcc-4.3.5/configure --prefix=/usr --prefix=/apps --with-gmp=/apps --with-mpc=/apps --with-mpfr=/apps --enable-shared --enable-threads=posix
make -j 8
Here is the pa...
I am having 64 bit Windows 7 as my operating system and want to run some c programs. Is there a compiler for the same? I mean a 64 bit c compiler.
...
If there are any advantages at all... couldn't find anything conclusive in the docs.
Apparently armv7 is for newer version of iOS... is it faster? smaller? Better at X?
...
Probably a pretty vague and broad question, but do all C++ compilers compile code into C first before compiling them into machine code?
...
Im trying to define different ld and c flags for different arch.
im using this..
OTHER_CFLAGS[sdk=iphoneos*][arch=arm6] = blabla
and whatever is set here doesnt make it into the build.. even setting as arm7 doesnt make a difference.
Tested on both arm6 and arm7 devices.
BTW im using .xcconfigs for my project.
...