9
голосов
3ответов
5321 просмотров

self-taught compiler courses / good introductory compiler books?

Does anyone know of online course / university lectures that comprise a typical compiler course? I've had theory of computing but unfortunately my school didn't offer a course in compiler construction. I know there are lectures out there; I was hoping for recommendations for particularly good...

2
голосов
9ответов
553 просмотров

C# Compiler Behavior Question?

Hey everyone, in the following code, what should the result of d be after the second expression? int d = 1; d += d++; One would assume d is 3 afterwards but the unary increment d++ doesn't seem to take effect and d retains a value of 2. Is there a name for this bug? Does it ...

17
голосов
4ответов
750 просмотров

Shouldn't you treat the bin folder as being transient?

I've always taught myself and others to think of the bin folder as being transient. That is you should be able to delete it and next time you rebuild it gets recreated and any references get copied into it without any hassle And not to put your eggs all in one basket. Or in this case don't put ...

5
голосов
4ответов
488 просмотров

Is there any none .NET/CLI based implementation of a C# compiler?

I just want the ECMA language translated into native code with the fundamental runtime (garbage collector) etc. I'm not talking about .NET just the language specification of C#. Using C# like any other native compiling language as a langauge alternative for Delphi, D or C++ because it offers gen...

6
голосов
4ответов
1342 просмотров

What is the good approach to build a new compiler?

I have an experience about the compiler phrases and I interested in Programming Languages & Compilers field and I hope somebody gives me some explanation about what is the good approach to write a new compiler from scratch for a new programming language ? (I mean STEPS).

1
голосов
6ответов
6717 просмотров

Conditional Jump instructions?

Doing a compiler design course: What is meant by a conditional jump instruction? I am C/C++ based programmer so if there is any code samples in that paradigm you could share to help me understand this better. What do they mean by unlimited conditional jump instructions? An example of a stateme...

2
голосов
2ответов
326 просмотров

hardware environment for compilation performance

This is a rather general question .. What hardware setup is best for large C/C++ compile jobs, like a Linux kernel or Applications ? I remember reading a post by Joel Spolsky on experiments with solid state disks and stuff like that. Do I have to have rather more CPU power or more RAM or a f...

9
голосов
19ответов
2346 просмотров

How to create a language these days?

I need to get around to writing that programming language I've been meaning to write. How do you kids do it these days? I've been out of the loop for over a decade; are you doing it any differently now than we did back in the pre-internet, pre-windows days? You know, back when "real" coders coded...

1
голосов
1ответов
257 просмотров

Symbolic Constants: How are they stored and what are their types?

C++ allows you to use the #define preprocessor directive to define symbolic constants which the compiler will replace before compilation. My question is, how do compilers typically store these internally and do they have data types?

0
голосов
4ответов
120 просмотров

what is composite instructions?

I'm doing the class compiler design at the chapter of intermediate code. By doing some research online, i came across this sentence: Recursive interpretation is necessary when the source program can include composite instructions. I cannot find what a composite instruction is on google.

0
голосов
7ответов
810 просмотров

Compiling C++ programs

Should I use Visual C++ Express to write and compile or should I write in Notepad++ and compile it? I like using Notepad++ because of its clean interface and speedy start-up as compared to Visual which is a considerably heavier program. If I do write in Notepad++ how do I compile it using Visual?

6
голосов
11ответов
917 просмотров

I need a C++ Compiler

If possible I want one that's free, popular (so support on forums will be faster) and.... just good. I don't really know much about compilers so I don't know what exactly is good.

34
голосов
8ответов
2128 просмотров

What _did_ the C operators /\ and \/ do?

Anyone can "declare" ones own operators in C.... that is if one is a C compiler guru and has the source code to the C compiler! ;-) Further questions to puzzle: How are these operations done in C99? gcc? ... And why were /\ & \/ dropped? Which types were the /\ and \/ operators valid for? ...

0
голосов
5ответов
128 просмотров

Normalizing .net generics

While rewriting an assembly if I were to instruct a compiler to generate a nongeneric type for each generic instance would the application just get bigger in code and yet have the same performance?

6
голосов
2ответов
3427 просмотров

Why does the caller have to clear the stack in the cdecl calling convention?

From: http://en.wikipedia.org/wiki/X86_calling_conventions push c push b push a call function_name add esp, 12 ;Stack clearing mov x, eax Why do we need to explicitly add 12 to ESP to clear the stack since the called function should have poped the parameters off the stack therefore restoring t...

0
голосов
1ответов
1223 просмотров

What are map files generated during compilation

What info map file contain generated during compilation of project and how i enable /map option in makefile. Language : c++ compiler : vc6

3
голосов
1ответов
1497 просмотров

Scala: comparing fresh objects

I was browsing scala tests and I don't understand why the compiler produces a warning when you compare "two fresh objects". This is the test' outputs: http://lampsvn.epfl.ch/trac/scala/browser/scala/trunk/test/files/neg/checksensible.check Example: checksensible.scala:12: warning: comparing a ...

1
голосов
3ответов
154 просмотров

Minimal project rebuild?

I'm using a 3rd party cross-platform project builder which utilizes various compilers. This project builder always rebuilds the project fully and I'm trying to implement a "smart-rebuild" machanism. I thought of running the preprocessor on each .cpp, crc the result and compare it against the CRC...

14
голосов
3ответов
5095 просмотров

Does Python have a "compile only" switch like Perl's -c?

Perl has the -c switch to compile the code without running it. This is convenient for debugging compile errors in Perl. Does Python have a similar switch?

1
голосов
3ответов
9928 просмотров

What are some examples of errors a lexical analyzer could detect?

What are some examples of errors a lexical analyzer could detect in a given piece of code in a language like Java, C++ or C?

3
голосов
2ответов
6968 просмотров

What is a command line compiler?

What is a command line compiler?

2
голосов
1ответов
677 просмотров

How do I build a static library for iPhone?

I think that I've looked everywhere for an answer to my problem but without any luck. I'm trying to create a simple static lib to run on the iPhone device but I keep ending up with XCode saying that "file is not of required architecture" and I've tried every build flag that I found without any l...

28
голосов
9ответов
8935 просмотров

Declaring and initializing a variable in a Conditional or Control statement in C++

In Stroustrup's The C++ Programming Language: Special Edition (3rd Ed), Stroustrup writes that the declaration and initialization of variables in the conditionals of control statements is not only allowed, but encouraged. He writes that he encourages it because it reduces the scope of the variab...

33
голосов
5ответов
21986 просмотров

What does vectorization mean?

Is it a good idea to vectorize the code? What are good practices in terms of when to do it? What happens underneath?

15
голосов
10ответов
6843 просмотров

Learning how programming languages work

I've been programming for years (mainly Python), but I don't understand what happens behind the scenes when I compile or execute my code. In the vein of a question I asked earlier about operating systems, I am looking for a gentle introduction to programming language engineering. I want to be ab...

9
голосов
3ответов
3622 просмотров

Quick Java Optimization Question

Will the Eclipse compiler automatically convert multiplication by a power of two into a bit shift, or should I do that manually? Thanks for the help.

8
голосов
9ответов
5538 просмотров

Would a cloud-based compiler be feasible?

Would it be any practical benefit to write a cloud-based compiler, that would spread compiled units of code on different machines in the cloud? Could there be a benefit from obtaining a software-as-a-service architecture right within the app just after compiling, or would the inherent latency mak...

11
голосов
2ответов
10056 просмотров

Using visual studio c++ compiler in netbeans

I want to develop a few assignments in C++ on Windows, but Visual Studio does not provide a few user functions that make development a real pain to go without. Can someone help me with setting up the Netbeans C++ environment to use the same compiler that Visual Studio is using?

10
голосов
2ответов
20136 просмотров

library not found for -lrt with QtCreator [mac os]

i'm getting some troubles with QT it builds with option "-lrt" i'm using mac os 10.6 with QT creator 1.2.1, heeeeeeelp ! this is the full build command : g++ -headerpad_max_install_names -o AMiningCoreTest main.o tokenizer.o DictionnaryToolBox.o mysql.o btree.o BTreeDataTable.o tca...

0
голосов
2ответов
1008 просмотров

Are there any libraries for loading and processing/disassembling Direct3D shader bytecode?

Are there any libraries for loading and processing/disassembling the Direct3D (10,11) shader bytecode files generated by fxc? I know that many developers (and hardware vendors) have internal tools to load and process the D3D shader bytecode formats, but since the shader bytecode format is privat...