compilation

The Dragon Book

Is the Dragon book a good introductory textbook for a compiler class? It seems to be famous, and our professor likes it, but it's not one of the textbooks that we use. ...

Open Watcom C++ Compiler Compilation Problem

I'm trying to compile a basic "hello world" file with the Open Watcom C++ compiler for Windows. Here's the error I get: wpp386 hello.cpp Open Watcom C++32 Optimizing Compiler Version 1.8 Portions Copyright (c) 1989-2002 Sybase, Inc. All Rights Reserved. Source code is available under the Sybase Open Watcom Public License. See http://w...

Compiling the mxml file inluding other mxml and .as files using ant.

Hi All, I have an mxml application that is in flex_src directory and parallel to that i have two folders in which i have my action scripts files in certain package hirarchy like com.citi....something.I hv written a build.xml for this.For a simple stand alone mxml file it is creating swf file but in my case i m getting the following erro...

Grails and Local Maven Dependencies

Hi All, I'm developing a small web frontend in Grails. It is basically a "ultra light-weight" client app that is connected async through JMS. I have two dependencies in the project that I would like to pull from a Maven repository. They is activemq and acme-adapter-api, a inhouse dependency, not available at the remote repository. I ...

What is RVA and VA?

Please explain what RVA and VA means ...

How to manage large projects without Visual Studio?

How does one go about keeping track of source files, resources, references, assemblies, etc.. if they didn't want to use Visual Studio. I know you can compile code with csc, and use csc to add all of the references, etc.. but it becomes quite painful to add these references as the project grows. How do you manage it when splitting the ...

C++: Forward declaration of class doesn't seem to work?

The follwing code is compiled in VC++6. I don't understand why I am getting the compilation error "C2079: 'b' uses undefined class 'B'" for the following code? //Class B Source #include "B.h" void B::SomeFunction() { } //Class B Header #include "A.h" struct A; class B { public: A a; void SomeFunction(); }; /...

Compile a string to Ruby bytecode for better performance -- like compile() in Python

I have a string (authenticated, trusted, etc.) containing source code intended to run within a Ruby loop, quickly. In Python, I would compile the string into an abstract syntax tree and eval() or exec() it later: # Python 3 example given_code = 'n % 2 == 1' pred = compile(given_code, '<given>', 'eval') print("Passed:", [n for n in rang...

Pre-compile specific directories in ASP.NET website project

I have an ASP.NET website project which has a mixture of updateable pages and pages that do not change. Is it possible for me to pre-compile certain directories that contain pages/controls that will not be updated? If so, how could I designate these directories as such? Edit 2009.12.17 My project is structured like this: /cms_pag...

android dex library

I've an Android application which use a lot of librairies (in jar files). When I compile my application in dex file with the dex.bat tool, it's take a very long time because of the conversion of the jar libraries into dex format. So, my question is : how can I link librairies in dex format to my application instead of linking jar libra...

Optimization for division on "extern const int"

Hi, I work in project in which I have the following code: file1.c extern const int z; int x; do_some_stuff_to_calculate_x(); y = x / z; do_some_stuff_with_y(); file2.c const int z = Z_INIT_VALUE; // some value defined in some .h file. The point of interest is the division in file1.c . Since z is extern, so it is not known in comp...

Visual studio project/solution compilation with only .net SDK (without installed VS)

Is it possible? And if possible, is it possible to compile created in VS azure cloud project, having only .net35 and azure SDKs installed, also without VS? ...

Installing cygwin with compilers and development packages

I need to compile kannel for windows and I installed cygwin. It says I don't have compilers to compile with cygwin. How do I resolve this ? Is there any full-featured cygwin image available anywhere on the internet ? Please help. SOS! I'm following this tutorial to compile kannel with cygwin. http://saurabhsachdeva.wordpress.com/2008...

Using a static library compiled by MingGW in Visual Studio.

I'm working on a 100% C project for which the windows port is compiled using visual studio 2008 express edition. My project uses a couple of linux libraries which I was able to statically compile using MingGW. I'd like to know if it's safe to link my project to those libraries and what were the possible trouble I might encounter. I cou...

what is the difference between linking and loading in c language

Does linking and loading of the the dynamic libraries both happen at runtime? or is it that only loading of the library happens at run time? ...

Dynamic Java Compilation: BeanShell, Janino, JavaCompiler?

I am about to start developing a small Java desktop app. The app is just an engine for which the user provides Java classes to do the work (translating input to output). I would like the user to provide actual Java classes as files that can be loaded (and reloaded) on the fly. For this particular use, is there any reason why Java woul...

mysql-python: building a completely standalone _mysql.so on Mac OS X?

I'm running a database server in a Linux VM (Ubuntu 9.10) under VMware Fusion, but coding Django on the Mac side. Installing mysql-python requires that MySQL is installed on the Mac for compiling _mysql.so into site-packages. However, after this is done, I have no further use for MySQL on the Mac side, and would rather just delete it. O...

ASP.NET compilation element, assemblies element

Hello It's my first post on stackoverflow so at the beginning I would like to say Hello or probably it would be better to say Hello world :). My question is what does this mean <compilation debug="false" strict="false" explicit="true"> <assemblies> <add assembly="" /> in quotes are info about assemblies <add assembly=...

Inclusion of unused symbols in object files by compiler in C vs C++

This might be a dumb question, but maybe someone can provide some insight. I have some global variables defined in a header file (yes yes I know that's bad, but this is just a hypothetical situation). I include this header file in two source files, which are then compiled into two object files. The global symbols are not referenced anyw...

Compiling with /EHa: any problems with 3rd party .lib/.dll?

I'm considering using the /EHa compiler switch when building in Debug and Release. I'm using a bunch of 3rd party static libraries and DLLs, which I'm assuming didn't get compiled with /EHa. Will I be running into any problems? ...