compiler

Generating C++ code at runtime, compilling and running it.

Hi, is there a multiplatform c++ compiller that could be linked into any software ? Lets say I want to generate c++ code at runtime, compile it and run it. I'm looking for a compact solution (bunch of classes), preferably LGPL/BSD licence :) As far as I know it can be done in Java and c#. What about c++ ? Thanks ...

Where are operators defined (in C#)?

Just wondering where the rules for operators in C# are actually defined. E.g. where can I see the code which says that == checks the references of two objects? I can see the operator overloads in e.g. the String class but now i'm interested in seeing the 'base' case. Is it just something that the compiler explicitly knows what to do ...

How to count identifiers, no. of inputs and outputs in a Java program

I want to take a program as input and I want to find out: No. of identifiers No. of unique lines containing identifiers No. of identifiers in the set of unique lines No. of inputs and outputs According to control structures in the program I want to assign a value to control structures If I calculate this I can do my project. This is ...

foreach struct weird compile error in C#

namespace MyNamespace { public struct MyStruct { public string MyString; public int MyInt; public bool MyBool; } public class MyClass { private List<MyStruct> MyPrivateVariable; public List<MyStruct> MyVariable { get { if (MyPriv...

How do I run an incrementally-compiled NetBeans application from the command line?

I tend to develop a lot of console applications using NetBeans. Many of these applications use arguments from the command line, which I constantly change while testing and debugging, so it is frustrating to have to pull up a dialog box in NB every time I want to change the arguments. Furthermore, many of these arguments are filenames, ...

Questions about compiling Lua files.

Hi, I want to compile my lua files to LuaC (myfile.luac). I'm using the Scite for compiling Lua. I haven't started until now, I heard, that I cannot compile my lua files to a 64 bit binary luaC file on a 32 bit system. So how can I compile lua to 32 bit and 64 bit luaC on a 32 bit system, windows xp? Btw, are there any tipps for using L...

Does Python use a complier or interpreter or a combination?

Possible Duplicate: CPython is bytecode interpreter? My question is: Does Python use a compiler, an interpreter or a combination of them? ...

May a compiler ever generate code to unload parts of the code segment during execution ?

Apart from Dll concept that provides ability of loading/unloading methods or functions at run-time, I'm wondering if a compiler may ever say something like, ok as this particular part of the code takes considerable amount of space in code segment and is never gonna be used again after this point during program execution, it'd be good to ...

Is there a standardised way to get type sizes in bytes in C++ Compilers?

I was wondering if there is some standardised way of getting type sizes in memory at the pre-processor stage - so in macro form, sizeof() does not cut it. If their isn't a standardised method are their conventional methods that most IDE's use anyway? Are there any other methods that anyone can think of to get such data? I suppose I co...

Compilers Design in my Senior Project (books, codes, resources, etc..)

Hello I have to get a senior project for graduate from my university. And I think get my "Compilers Design" lesson. But I can't get a subject.. Is there anybody tell me a subject about Compilers Design? Do anybody tell me a subject about Compilers Design that i can find books, codes or resources on the Internet? Thanks ...

How to find some code to detect code packer?

I wanna check lots of execution files (*.exe) that made by packer or compilers. So I need a library or anything like that which could tell me witch compiler or packer has made the *.exe files. I have tried the exeinfo but it makes me lots of minute to wait becouse it works one by one. Is there any program or library to handle that all...

Warnings during compiling an Eclipse Project

Hey guys! I always get some warnings during my compilation. These hex addresses exist... There are a few more (6 right now), and while debugging its really annoying to see those warnings all the time. So, how to prevent that? I've heared, its a common known bug in eclipse... [ 09-27 11:16:49.982 66:0x4d W/ResourceType ] No...

Cannot run simple compiled java program?

I am on Arch Linux, I just installed JRE and JDK and all the proper bin files (javac and java) are in /opt/java/bin/ I simply compiled a standard hello world, and compiled it with javac running javac ./hello.java and that made a class. Now my problem is running it. I run java ./helloworld.class and it gives me an error, even if the fi...

Is there any free, small, fast, thing for compiling ActionScript-3 Flex apps on windows?

What I want is as small, as light and as powerfull as this for C# development environment for developing my AS3 RIA's on my EEE PC. On Windows. In general I need codehinting (at least like FlashDevelop has) And UI designer-builder (as similar as possible to one I have in Flash Builder at work,.. at leat like this but for Flex framewor...

Can't Find Framework .h File

I downloaded Andy Potion's "PFLetsMove" framework here and added the Xcode Project to my application's project. I then dragged the framework from that to the Link Binary with Libraries and Copy Files build phases. Now, if I compile the application with a call to PFMoveToApplicationsFolderIfNecessary() it works fine, so the framework is...

What are the internal processes involved for a C compilation ?

hi, I have a set of *.C files(embedded related). Could anyone please detail to me the steps/processes(internal information) involved while compiling followed by linking to create the final executable(I need the information/steps regarding what a preprocessor/compiler generally performs to a C src code) Also i just want to get an idea ...

help in solving Bus error c++

hey, i am trying to compile a c++ program in Linux, using the command in the shell g++ -Wall *.cpp -o prog and for some reason it keeps on giving me a weird error: g++: Internal error: Bus error (program cc1plus) Please submit a full bug report. See for instructions. i searched the net for this bus error, and it says that it has to d...

At what stage of compilation are reserved identifiers reserved?

Just a little curiosity at work, here. While working on something dangerous, I got to thinking about the implementations of various compilers and their associated standard libraries. Here's the progression of my thoughts: Some classes of identifiers are reserved for implementation use in C++ and C. A compiler must perform the stages of...

Missing dependent assemblies - how to get a compiler error rather than a runtime error

Situation Assembly Adam.dll has a reference to assembly Frank.dll. Adam.dll is placed in a shared assemblies folder and is then referenced by my application as a binary reference. If I run my application it will crash (and rightly so) because Frank.dll is missing. If however, I place Frank.dll in the shared assemblies folder the .n...

Adding new toolchain support to Visual Studio

I'm looking to add support for a non-Windows platform for Visual Studio 2008. It would need to build C++ using a non-Microsoft toolchain (essentially a customised gcc). I know the easy way is to use a Makefile project, but I'd at least like to explore adding support for a new toolchain directly to VS. I know it is possible; MS do it, ...