The compiler tag has no wiki summary.
1
vote
1answer
276 views
Do compilers have to be written for each model of CPU?
Do you need to take account of the different processors and their instructions when writing a compiler? Have instructions been standardised? Or what tools and techniques are available to assist with ...
0
votes
5answers
541 views
why compiler design/coding design considered the highest level activity in programming? [closed]
In some recent articles I have read I have found that in the programming ladder compiler design is always considered as highest level activity. Why is this so? Why not database design or network ...
1
vote
5answers
423 views
How to write a very basic compiler [closed]
Possible Duplicate:
Best Online resources to learn about Compilers?
What would be the best way to learn about compilers, and executable formats?
Advanced compilers like gcc compile codes ...
0
votes
6answers
515 views
Can I get a C++ Compiler to instantiate objects at compile time
I am writing some code that has a very large number of reasonably simple objects and I would like them the be created at compile time. I would think that a compiler would be able to do this, but I ...
2
votes
5answers
234 views
How are operators organized in memory
How are operators organized/saved in the memory in context of a programming language. Are they procedures/functions saved somewhere and compilers just manipulate things to call these procs whenever ...
5
votes
4answers
294 views
Programming Language Parser (in Java) - What would be a better design alternative for a special case?
Background
I'm currently designing my own programming language as a research project.
I have most of the grammar done and written down as context-free grammar, and it should be working as is. - Now ...
5
votes
5answers
658 views
Why is it called Just In Time?
I know what the JIT compiler is but how about why is it called that, it obviously catches exceptions Just in Time, but how and why should it be called this?
Sorry if this sounds a bit vague.
3
votes
5answers
352 views
Understanding hand written lexers
I am going to make a compiler for C (C99; I own the standards PDF), written in C (go figure) and looking up on how compilers work on Wikipedia has told me a lot. However, after reading up on lexers ...
10
votes
3answers
263 views
How compilers know about other classes and their properties?
I'm writing my first programming language that is object orientated and so far so good with create a single 'class'. But, let's say I want to have to classes, say ClassA and ClassB. Provided these ...
0
votes
2answers
340 views
Is there a more modern program than lex or yacc, which does not require JVM?
Is there a "modern" bison and flex equivalent which does not require the JVM or .NET or similar "heavy" runtimes?
Thanks for comments, edit:
By modern, I mean for example Antlr and another one in ...
4
votes
3answers
528 views
Is there a language that transcompiles to C with a better syntax?
CoffeeScript is a language with a very clean Ruby-like syntax that transcompiles to JavaScript. Does the same thing exists with C? Then writing more readable and as fast as original C programs would ...
1
vote
1answer
155 views
what's the most efficient emacs workflow for compilation and interactive execution cycles (C++/makefile)
I try not to cross-post, but the only response I got at stack-exchange was to post here...
What's the preferred practice for a compile-run cycle in emacs?
Previously, I used alt-x compile (mapped to ...
-1
votes
1answer
176 views
Why is my output GDB? [closed]
I have been having some trouble compiling in Xcode... I am teaching myself c++ from the book C++ programming in easy steps.
When ever I compile my code I get the output "GDB".
The code I typed from ...
1
vote
2answers
247 views
Converting ANTLR AST to Java bytecode using ASM
I am currently trying to write my own compiler, targeting the JVM.
I have completed the parsing step using Java classes generated by ANTLR, and have an AST of the source code to work from (An ANTLR ...
5
votes
3answers
217 views
Should a standard include header be specified in each file or as a compiler parameter?
I've got a file such as this:
#ifndef STDINCLUDE
#define STDINCLUDE
#include <memory>
#include <stdexcept>
#endif
I want this file to be included in every header file, because I use ...