compiler

How to know which project is loading first

when I include some projects in my solution and change the references to Project References, some times it is still loading the wrong assembly because there is something else that is calling it FIRST, and that thing is not included in my solution. when number of projects increases it gets harder and harder to find out those porjects... ...

MSIL question about field reference.

I have a class which has a private variable of type generic Stack. Inside the class I've declared a Foo method. After examining the IL I've noticed that the target of the method Push is actually the method call set_Property2 rather then the field of the class. How does the compiler actually make the connection between the two? public ...

Obtaining line numbers for diagnostics when writing a scripting-language compiler?

I'm currently writing a scripting language compiler using LLVM that can compile to executable code and use a JIT too. The problem I have is to show line numbers in diagnostic messages. Here is some sample code which might be output by my backend (not exactly, but roughly) ; allocate three values. Two for the operands and one for the r...

Need Compilers on Server

Hello, I'm looking to build a web service that can compile some entered code (probably C/Java) and can run some tests on it. What kind of design should I follow? What compiler can I place on my server to do the job? Recommendations? Pros? Cons? ...

Float, Double, Char, C++ Errors. What is wrong?

I am learning C++, but I ran into an error which I don't understand. Here is my source code, comments included (personal reference as I am learning.) #include "stdafx.h" #include <iostream> using namespace std; int main() { float h; //a float stands for floating point variable and can hold a number that is a fraction. I.E. 8.5 doub...