compilation

Write another language above Javascript VM?

I wonder if it's possible to write a new language above Javascript VM so that you could embed your language - which is based on javascript - and it will work together with native javascript. Example: var person_exists = true; // native js Animal eats banana // my language console.log(person_exists) // native js I've seen Cappuccino...

How can I generate code when compiling?

There are some tools, like PostSharp, that generates code when compiling. How is it done? Can anyone provide some simple example? ...

Plugin compiler structure?

Im making a modular program, and it supports dynamic compilation of source files in the plugin directory. What I would like to do, to speed up loading times, is save compiled assemblies to a separate folder. When my program loads, and comes across a source file to compile, i would like it to check if there is an already compiled assembl...

compilation processes and initialization

I was looking for some good articles in net but found nothing, I know that firstly all programs pass through preprocessor -> compilation -> assembler -> linker -> loader, but what exactly my compiler do during every stage, for example when(which stage) it initializes all global and static variables? which order? thanks in advance, P.S. ...

FSC recompiles every time

FSC recompiles my .scala files every time even there is no need - I can compile it twice without editing anything between attempts and it recompiles them! For example, I have 2 files Hello.scala class Hello{ print("hello") } And Tokens.scala: abstract class Token(val str: String, val start: Int, val end: Int) {override def toSt...

Why is this C# code not compiling?

Why is this C# code not compiling? public static Dictionary<short, MemoryBuffer> GetBulkCustom(int bufferId, int startSecond,out int chunksize, out int bardatetime) { //const string _functionName = "GetNextBulkWatchData"; UserSeriesCard currentCard = GetUserSeriesCard(bufferId); Dictionary<short, MemoryBuffer> result =...

Can I apply PL/SQL beautifer rules from command line?

Topic is self-explanatory. My goal is to automate the process of code beautification, so a program like SQLPlus will compile code after it has been beautified. ...

What is a good book to learn about the compilation/build process?

Possible Duplicate: The Definitive C++ Book Guide and List I have a basic knowledge of C++, but I am not a Computer Science major. I was looking for a good book for beginners that explains what happens to the code once I click compile or build. Specifically I am trying to make sense of terms like objects, building, compiling,...

Compiling & linking multiple files in C++

One of my "non-programmer" friends recently decided to make a C++ program to solve a complicated mechanical problem. He wrote each function in a separate .cpp file, then included them all in the main source file, something like this: main.cpp: #include "function1.cpp" #include "function2.cpp" ... int main() { ... } He then compile...

ASP.NET - Dynamic compilation of aspx-files stopped working?

Hi, I recently ran into some strange problems. Changes to files that are not code-behind (and not gets compiled to a DLL) should not require you to recompile the whole website, and this has never been I problem for me. These should actually get compiled dynamically when you first access the resource, e.g. the first time when browsing a...

compile rapidxml under linux with g++

The following simple program can't be compiled with gcc 4.4.3 include "rapidxml.hpp" include "rapidxml_utils.hpp" include "rapidxml_print.hpp" include "rapidxml_iterators.hpp" int main() { return 0; } ------------------------------------------------------------ Compile produces following errors: rapidxml_iterators.hpp:21: e...

ASP.NET and C# compilation error while attempting to instantiate a new object from a class

I have this simple ASP.NET page here: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Tree.aspx.cs" Inherits="CoconutTree.One" %> <html> <head> <title>Planting Trees</title> <script runat="server"> protected void Page_Load(Object Source, EventArgs E) { string msg = "Let's plant some trees!<br/>"; ...

lib curl symbol not found

Really stupid C question. I'm trying to build the source code here so I can start on modifying it for myself http://curl.haxx.se/libcurl/c/ftpget.html I download the file, then run gcc -o test ftpget.c and get Undefined symbols: "_curl_global_init", referenced from: _main in ccFchguB.o "_curl_easy_perform", referenced fr...

Qt: why is compilation so long&

Hello, I cannot understand so strange thing - now the compilation takes about 10 minutes! The application has only one (1) form and maybe 100 or 200 lines of user code. How can it be compiled for 10 minutes? Help, please. Thanks Upd: Windows, debug, mingw32, Qt 4.6.3 What else? ...

The type or namespace 'MyNamespace' does not exist etc...

I have the usual type or namespace name does not exist error, except that I have referenced the assembly, the using statement does not show as incorrect and the classes I am referencing are public. In fact, I reference and using the same assembly in a different solution to do the same thing and it works fine. This is VS2010 by the way. ...

Not just another inherited code base question.

There seem to be enough threads on how to get a grip on a new rather larger than you're used to code base. I intend to ask Stack Overflow, how many of you deal with inheriting code bases for which the whole development environment needs to be recreated? I'm talking like, out of production dev tools fetched, parts of a project built wit...

VS2010 build times Win XP vs. Win 7

Hello, I am trying to determine which OS is the best one for VC++ VS2010. I know that Microsoft recommends Win7 x64 however I did some testing and the results are quite confusing: Build times (single threaded compilation on q9650 CPU) of reference VC++ project under different OS: Win XP 32bit: 00:02:50.95 Win 7 32bit: 00:03:09.99 Wi...

Compact Framework compilation problem

Hey all, I'm brand new to Compact Framework and I need to compile a small project for a Windows CE 6.0 device (on which I already installed CF 3.5). I'm using Visual Studio 2005. When creating a new project like : "Other languages -> Visual Basic -> SmartDevice -> Windows CE 5.0", I can compile a simple form, put it on my mobile device...

VS 2008 Professional, Smart Device .NET C# project - slow build

Hello I have VS 2008 Professional and a Smart Device .NET C# project. I have ~100 cs files in total. The build takes very long time, I have to wait for linker approx. 1min (60s) every time i compile the project. I have Core i3, 4GB RAM, 7200rpm disk. What may be the reason and how to optimize the build? Any Visual Studio options? Rega...

Compilation error in Makefile, includes not showing up

I have a makefile as follows: CC = gcc CFLAGS = -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" $(INCLUDES) ifdef DEBUG CFLAGS += -g3 endif INCLUDES = \ -I../config.include \ -I../log.include \ -I../services.include SRC_DIR = src BIN_DIR = bin BINARY = report SRCS = $(shell ls $(SRC_DIR)/*.cpp) OBJS = $(SRCS:%.cpp=%....