A compiler is a program which translates one language into another. The tag [compiler] should be applied to questions concerning the programming of compilers or for questions about the detailed inner workings of compilers. Don't use [compiler] for questions about options and settings for a ...

learn more… | top users | synonyms (2)

2
votes
2answers
102 views

How to migrate to C++ 11 in an OpenSource IDE (codelite) [closed]

I am using CodeLite 5.1 on Ubuntu QQ. By default, based on what was intalled previously wth QQ and other tools, I have the gtCC and gt++ toolchains avialable. I always use gt++, which seems to get ...
3
votes
3answers
63 views

C# Performance penalty for Int32 literals to floats

In c#, you can define a number literal as either int or double Double var1 = 56.1; int var2 = 51; These are the default types the literals are assigned. However, the game engine I'm working ...
0
votes
1answer
17 views

Coffeescript: unexptected then in a switch statement

I'm trying to use a simple switch statement but it doesn't compile. Here's the code: tag = 0 switch tag when 0 then alert "0" when 1 then alert "1" The coffeescript ...
0
votes
1answer
36 views

Checking for a C++ compiler's presence

The GNU documentation for AC_PROG_CXX states that: Otherwise, if the macro is invoked without an argument, then search for a C++ compiler under the likely names (first g++ and c++ then other ...
0
votes
0answers
15 views

Any way to properly type Scala classes that were generated at runtime with ASM?

Noob here, I'd like to extend the class, get a class literal, use it as a type parameter, or cast to it. Currently I can instantiate my ASM generated class and invoke it's methods with reflection, ...
-1
votes
1answer
53 views

Online API to integrate C++ compiler to a website [closed]

I would like make a code editor with a C++ compiler integrated into my website. Are there any API to do the same
0
votes
1answer
45 views

Upper bound of the calculation ability of computer in c

I have a question about the number of bytes that a computer normally use to do calculation. First of all, i want you to see the source code below. source code printf("%d\n", sizeof(444444444)); ...
-1
votes
1answer
29 views

Compiling C code into a .bin file in Visual Studio 2012 Express

I was wondering if there was a way to set the compiler to compile my code into a .bin file which only has the 1's and 0's, no hex code as in a .exe file. I want the code to run on the processor, not ...
0
votes
1answer
26 views

C compiler cannot create executables in Ubuntu 12.04

I'm trying to configure cpuminer for litecoins and I get checking whether the C compiler works... no configure: error: in `/home/username/cpuminer-2.2.3': configure: error: C compiler cannot create ...
0
votes
4answers
81 views

C# Compile Visual Studio Program [closed]

I'm trying to create a program which compiles another program a bunch of times, each time adjusting some constant variables in one of the class source files (like hard coded configuration). I need ...
0
votes
0answers
26 views

Performance Analysis with PerfView

I just have created a simple console application emitting a bunch of code in memory. I’m trying to gather useful data using PerfView. When I want to drill down after the last static compile-time ...
0
votes
1answer
29 views

DLL include unordered_map is not compiling with visual studio compiler

I am trying to compile a DLL with MinGW and use it from an executable compiled with visual studio compiler. One of source files from DLL is using hash_map<> and it can be compile with MinGW ...
0
votes
0answers
13 views

Hard float vs. soft float linker warnings

I just compiled a new GCC (version 4.8.0) cross compiler for powerpc-eabi and with that I get the following warning compiling an eCos image: .../libgcc.a(_addsub_df.o) uses hard float, ...
0
votes
2answers
76 views

How to fix turbo c++ error “Cannot open include file: graphics.h: no such files or director”

I had been using turbo c++ compiler in windows xp but i have installed windows 7 yesterday and now i am having a small problem, turbo c++ is not working in window 7 ultimate 64bit. It say "Cannot open ...
1
vote
1answer
41 views

How do I get and use a class type from a Java class that I've dynamically created at runtime using ASM?

I'd like extend the class, get a class literal, use it as a type parameter, or cast to it. I already have a workaround, but I'm still curious. Currently I can define a class at runtime with ASM, ...
0
votes
1answer
43 views

Does ASC 2.0 recognize [Frame] metadata tags (ex: for Preloader factoryClass)?

I'm trying to use the new ASC2.0 compiler in the AIR SDK 3.7, but I seem to be running into a problem where it cannot detect my preloader class. If I use the non-ASC2.0 compiler, it recognizes and ...
3
votes
1answer
56 views

Syntax Tree Generation in Clojure

I'm writing a compiler, really for educational purposes. I have generated tokens from my input and want to generate an AST. I have a function that takes the list of tokens and recurses to generate ...
24
votes
3answers
464 views

If Int32 is just an alias for int, how can the Int32 class use an int?

Been browsing through .NET source code of .NET Framework Reference Source, just for fun of it. And found something I don't understand. There is a Int32.cs file with C# code for Int32 type. And ...
0
votes
1answer
18 views

printing parse Tree as a dynamic list in c language

I have written a code in C to implement LR(1) parse table, however now I am facing a problem in printing the parse tree. How do we do that in C? The tree can have variable children and since the ...
2
votes
1answer
47 views

Why do we put 'A' as the look ahead symbol when all have `$`?

I am using canonical LR Method to construct the Parsing table. Consider the grammar : s -> D C A s -> D a B a -> C s -> a A The book I am reading mentions the first closure state as : ...
-1
votes
0answers
20 views

Intermediate code generation compilers [closed]

so I am currently looking at intermediate code generation. I have come across these two terms 1) "template based translation" and 2) "The abstract translation scheme" are these the same? what is the ...
0
votes
0answers
20 views

How do I generate a DAG of instruction dependencies for x86/x64 assembly?

I'm writing a scheduling optimizer for x86/x64 assembly code. It would take as input either a assembly.s source or compiled.o object file, and determine the optimum instruction ordering for a given ...
-1
votes
1answer
94 views

Advantage of llvm for a pure C++ software? [closed]

I have been hearing LLVM around and people say it is good. As far as I understand, it allows front ends for multiple languages and share the same back-end. What I am confusing is, if I work on a C++/C ...
-1
votes
2answers
108 views

Understanding stack frame of function call in C/C++? [closed]

I am new to C/C++ and assembly lang as well. This could also be very basic question. I am trying to understand how stack frames are built and which variables(params) are pushed to stack in ...
6
votes
4answers
65 views

Questions about C Function Prototypes and Compilation

With the following code: int main(){ printf("%f\n",multiply(2)); return 0; } float multiply(float n){ return n * 2; } When I try to compile I get one warning: "'%f' expects 'double', ...
0
votes
1answer
19 views

What is a synthesized attribute?

What is a Synthesized Attribute ? I understand the meaning of inherited attribute but am unable to understand, what does synthesized attribute mean. Explain with the help of a simple example.
2
votes
0answers
70 views

What is the simplest way of parsing C++ source code (extracting meta-info) in Java?

I need to extract classes, methods and parameters from .c/.cpp files in Java code. I've reviewed: Antlr (can't find any ready c++ grammar for Java target), gccxml (probably works but i can't test ...
0
votes
0answers
18 views

Running mach_inject with Qt in OSX Mountain Lion

On OSX Mountain Lion I'm able to compile mach_inject and the included test project. That works as expected with injection functioning perfectly. I'm now trying to use the same mach_inject framework ...
0
votes
0answers
33 views

Executing a java program having input statements through another java program

Hi all I am trying to make online java compiler. As a initial POC I am able to compile and run program having no input statements but I dont'd know what to do if there are input statements also. I ...
0
votes
1answer
19 views

when I compile with Scite, command prompt won't show up, why?

when I compile with Scite, command prompt won't show up, why? I am programming a c program, and it wouldn't pop up once I complied is it because its not connected? or do I have to connect it, if so ...

1 2 3 4 5 221
15 30 50 per page