compiler

What does compiling permutation mean in GWT?

When a Web App Project is compiled, 6 permutations are compiled. What are those permutations, and what do they mean? ...

Compiling as 16-bit (for ms-dos) with visual studio

Is this possible? If it is, how? And if not, which compiler that does allow that do you recommend? Thanks! ...

Compiler validation suite for Fortran 2003?

Is there a test suite out there that checks whether a Fortran compiler fully implements the Fortran 2003 standard? ...

what's the ELF object file size limitation on 64bit platform?

Assume the x86 64 and linux platform. If you look into the ELF header, the offset are all 64bit. So it's easy to create an object file larger than 4G with relocatoin R_X86_64_64. This means a static .o file and executable can be as large as 64bit can represent. However, for shared library, like gcc , we only have R_X86_64_PLT32 reloca...

Implementing a security typed variant of Scala - which method is best?

Hio there Scala folks, I'm actually writing my master thesis and I have to implement a security typed language in Scala. So this means I have to add annotations to specify the special permissions levels for the variables and other programming constructs in Scala. The idea to add this comes from Jif (a real security typed language http://...

XCode compiler doesn't set my variable (and pointer) initial value to 0 or nil!

Hi, sthis is very annoying, since now my values are stored as if they contain somethin by default (like in c). All my OO stuff are now broken since my delegate are always somethin. I was wonderin why XCode do this to me, since by default XCode always set the variable value to 0 or nil. So if i do NSArray* anArray; and then NSLog(%@"...

Interesting Compiler Projects

I am looking at a semester long project in compilers that could also evolve into my graduate thesis. I do not have much experience in this field (I have written a small "translator" for Pascal as part of my undergraduate work) --- I have been more into Machine Learning, and AI. The idea is to take this up as a challenge, and learn someth...

CodeBlocks MinGW on XP noob. Is it possible to overwrite the same exe every time I compile? Further explanation inside...

I have looked through both the CodeBlocks and MinGW FAQ and wiki to no avail. As stated above I am a noob. I want CodeBlocks to act like a Unix compiler in that it overwrites a single output file every time it compiles unless told to do otherwise. In Unix: [cc example.c] -> [a.out], [cc example2.c] -> [a.out]. If I want to save the ou...

Any way to reuse an identifier within a scope?

Normally using the same identifier like name of a variable for something like another variable within the same scope generates error by compiler, Is there any technique to actually indicate to compiler that in this scope up to this specific point this name has its own purpose and is used to refer to this variable but after this point the...

Clojure compile-time escape mechanism

The language Forth offers a "compile-time" escape mechanism where code can be executed immediately, while the compiler is running (not at run-time). You can include print statements, for example, to debug tricky syntax or type errors). Does Clojure have anything similar? I am getting a compile-time IllegalArgumentException in one of my ...

What is compiler, linker, loader ?

Hi I wanted to know in depth meaning and working of compiler, linker and loader. With reference to any language preferably c++. thanks in advance ! ...

Visual Studio 2010 - Is there a plugin for customizing the compiler output?

Basically, our solution is composed of about 30 sub-projects.. and growing. Compiling this monster is fast and compiler warnings/errors/general output just scrolls by in a mishmash of ... well, poo. On unix it's easy to write a filter to "pretty-ify" the compiler output into something readable and, ultimately, useful. Has anyone done th...

How to implement a built in compiler in Java/Swing?

I'm writing a text/code editing program for my own use in Java/Swing, and was wondering how I would go about setting up a built-in C compiler inside it. I would likely use GCC or TCC as the compiler. Anyway, my question is- how would I actually implement the compiler? Would I use a library that gives Java access to command line commands?...

Top-Down Parser want to have decent case example left-recursion in a 'Code'

Hello fellow stack over flow members. I'm studying for compiler class. I did understand Top-Down Parser should avoid left-recursion, and transform into right-recursion way. Questions are, a) am I understanding right Top-Down Parser is equal to LL and Bottom-Up Parser is equal to LR ? b) I've found out left-recursion is Rule that cal...

Define Keywords in ANTLR grammar

Hi, I want to build a simple lexical analyzer for a specific language which has reserved words like (if, else, etc.) using ANTLR. I went through several tutorials and was able to find the ways of defining all the options except reserved keywords. How to define reserved keywords in the grammar file in ANTLR ? Thanks in advance Shamika ...

Grammars in compilers.

How to generate rules to translate 1 form of grammar into another?? for example: GRAMMAR 1: BLOCK: while ( id:=N) { BLOCK } | id:=N N: 1 | 2 | 3 | 4 | 5 GRAMMAR 2: BLOCK: while id:=N DO BLOCK END | id:=N N: 1 | 2 | 3 | 4 | 5 I want 2 generate a translation such that I can translate a statement in Grammar 2 into the corresponding ...

Storing vars and constants during compilation. (sample language)

Background: I'm making a compiler, the scanner and parser is already done. We have our formal grammar, which defines a program as: program = declarations procedureDeclarations main  (  ){   declarations statementSequence } So you can notice that declarations can be either global or local to the main method. So as I pa...

How do I write a compiler in C?

Hi. This amu. I want to write a compiler in C. Whats basics do I have to learn for creating a compiler? ...

How it is possible to reach a variable from a different code-block expression than the block where the variable was declared ?

Hi, Can someone explain the working principle of asp.Net below? I have 2 separate code-block asp.Net expressions in an aspx markup, with an html content between (span element in the example below). In the first code-block, there is "i" as an increment variable for the for loop. Then the code-block is cut with an html content. And a...

Lexical analysis in MRI Ruby 1.9.2

I'm learning some compiler theory and practice at the moment. Ruby is my every day language of choice, and so I went to look at its lexer and parse grammar. Does ruby have a separate lexer? If so, which file is it described in? ...