compiler

Best GUI compiler for C++

Possible Duplicate: Best C++ IDE or Editor for Windows There are couple of GUi compilers for C++ to work on Windows platform like VC++,Dev C++, etc. which one is the best used for testing some sample programs for a quick analysis of any small applications.I am presently using Dev C++ But is there a better compiler that anybody...

Which java compiler is used by NetBeans?

If I tell NetBeans (6.9) to compile on save, NetBeans warns me the compiled classes are not identical to classes compiled with JDK's compiler. The Java platform is set to "JDK 1.6" in the same dialog. Which compiler is used by NetBeans? Why doesn't NetBeans use the JDK compiler? ...

Help ... LL Grammar And Recursive descent parser

I'm using ANTRL and this is my some grammar which give error to me. statement : (name)( | BECOMES expression | LPAREN (expression (COMMA expression)*)? RPAREN | SHIFTLEFT name LPAREN (expression ( COMMA expression )*)? RPAREN ) | OUTPUT LPAREN expression ( COMMA expression)* RPAREN | IF expression THEN state...

Why doesn't size of struct is equals to sum of sizes of its individual member types?

Possible Duplicate: Why isnt sizeof for a struct equal to the sum of sizeof of each member? I guess similar (duplicate) questions must have been asked on SO before. But I'm unable to find them. Basically I don't know what to search for. So asking it here. Why doesn't size of struct is equals to sum of sizes of its individual...

Possible to use [Obsolete] .NET 1.1 API to format source code for viewing on the web? (...Or any other API)

I'd like to get some source code properly formatted (indents) and color coded to either VS2010 or Eclipse color coding and formatting for display in a browser. I have various languages (.NET, Java, JavaScript, CSS, XML) and can't find any free software that will do this. I vaguely remember an obsolete API that was used in .Net Framewor...

Compile PHP into Java?

...like GWT, but PHP as output (instead of Javascript) So I can code in java while the webserver executes PHP. -- I don't want to mix Java with PHP. In runtime there will be only PHP, but at compile time there should be only Java. It is like GWT does. it takes java and converts it as Javascript for the browser. This is just to take ...

How to compile .c file with OpenSSL includes?

I am trying to compile a small .c file that has the following includes: #include <openssl/ssl.h> #include <openssl/rsa.h> #include <openssl/x509.h> #include <openssl/evp.h> In the same folder where i have the .c file I have a /openssl with all those files (and more), also in synaptic package manager I see OpenSSL installed, I am tryin...

If you are forced to simplify C# looping keywords, choose only one you want to preserve.

If you are forced to simplify C# keywords that can be used for looping, choose only one you want to preserve. for do-while while goto-label-if foreach Is there any performance consideration regarding your decision? Actually I don't know the internal mechanism of them, so here I want interview those of you know the details. However...

Optimizing the compiler for iPhone apps

The "Build" section of project info in XCode offers lots of compiler settings. I'm seeing good improvements in performance (up to about 20%) when I choose the LLVM GCC 4.2 compiler with the "FASTEST-O3" setting. Are there other settings that also improve performance when compiling for the iPhone? ...

Building a compiler or interpreter using Python

Right now I'm writing my PhD proposal to build a language processor for a new specification language for Java (cf. JML, or Spec# for C#) and need to nail down an implementation tool to start development. The research aspects of the language (syntax, semantics, theoretical results) are orthogonal to my choice of implementation, so I'd lik...

Project is always out of date? (Visual C++ Express 2010)

I've been working on a project, and for some reason after a added a new file for my new class. I tried to compile it, and as expected it built the project. But then every time I tried to run it, it would compile. I changed to the default settings and it told me every time I tried running, my project was out of date. I tried even deletin...

Is Intel Software Development Suite worth the cost ?

(this is a partial duplicate of Are the Intel compilers worth it?) The Intel Software Development Suite includes the C++ compiler, IPP, VTune, Thread Checker. The Intel Parallel Studio includes the composer, the inspector and the amplifier. Those two packages cost almost $4000, but I'll still be a student for 1 month and as such pas on...

Avoiding the main (entry point) in a C program

Is it possible to avoid the entry point (main) in a C program. In the below code, is it possible to invoke the func() call without calling via main() in the below program ? If Yes, how to do it and when would it be required and why is such a provision given ? int func(void) { printf("This is func \n"); return 0; } int main(vo...

Write recursive-descent parsing to parse epsilon(ε) in Java

For example, EBNF A ::= B c; B ::= T1 | T2 | ε T1 ::= a T2 ::= b parseA() { switch(currentToken.kind){ case Token.a : parseT1(); case Token.b : parseT2(); break; case <epsilon> : break; default: // report error break; } } How to write the parser parse the epsilon ( set of empty string ) in Java? ...

Create a JVM programming language

I have created a compiler in C (using lex & bison) for a dynamic typed programming language that supports loops, functions declarations inside functions, recursive calls etc. I also created a virtual machine for that runs the intermediate code created by the compiler. I was now thinking instead of compiling to my own intermediate code...

Compilers used for commercial products

What kind of compilers do big software companies such as Adobe use for their commercial products like Photoshop? ...

C/C++ - is returning void a valid code?

I found out that the following code gets accepted by Visual C++ 2008 and GCC 4.3 compilers: void foo() { } void bar() { return foo(); } I am a bit surprised that it compiles. Is this a language feature or is it a bug in the compilers? What do the C/C++ standards say about this? ...

Where might I begin on this optimization problem?

I have a simple program which reads a bunch of things from the filesystem, filters the results , and prints them. This simple program implements a domain specific language to make selection easier. This DSL "compiles" down into an execution plan that looks like this (Input was C:\Windows\System32\* OR -md5"ABCDEFG" OR -tf): Index Succe...

Java compiler optimization for repeated method calls?

Does the java compiler (the default javac that comes in JDK1.6.0_21) optimize code to prevent the same method from being called with the same arguments over and over? If I wrote this code: public class FooBar { public static void main(String[] args) { foo(bar); foo(bar); foo(bar); } } Would the method f...

Is there C# compiler for Mac OS X?

I want to build my ASP.NET C# Desktop Application on Mac OS and output must be application running on Mac OS.How can I do that?Is there any compiler? ...