Tagged Questions
-3
votes
1answer
80 views
Digital Mars vs Borland [closed]
I've heard both are fast but I don't exactly know which is better. I can't find anything that states the differences. Does anyone know which one is newer and better?
3
votes
2answers
192 views
Implementing non-fixed length array support in a compiler
I'm thinking of building a language for PIC microcontrollers. I want to be able to use non-fixed size arrays, like this:
Declare the variable as int[]
Wait for input from serial connection
Make the ...
3
votes
3answers
524 views
Understanding stack frame of function call in C/C++?
I am trying to understand how stack frames are built and which variables (params) are pushed to stack in what order? Some search results showed that the C/C++ compiler decides based on operations ...
3
votes
1answer
516 views
What is the Ken Thompson Hack? [duplicate]
I read some stuff like cm bell labs but i couldn't get it all. How does it work really? What is the logic in that?
1
vote
1answer
168 views
Brief explanation for executables in a GNU/Clang Toolchain?
I roughly understand that cc, ld and other parts are called in a certain sequence according to schemes like Makefiles etc. Some of those commands are used to generate those configs and Makefiles. And ...
2
votes
5answers
4k views
How to write a very basic compiler [duplicate]
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 ...
3
votes
5answers
776 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 ...
3
votes
6answers
1k views
Is there a language that transcompiles to C with a better syntax? [closed]
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 ...
13
votes
5answers
3k views
What is the history of the C compiler?
When we say that "Dennis Ritchie developed C language", do we mean that he has created a compiler (using an 'already' developed other language) which can compile the source code written in C language?
...
11
votes
7answers
600 views
Do you read C or C++ compile errors after the first one?
I never understood why C and C++ compilers try to recover from errors and continue parsing. Almost always, the first error generates a stream of bogus errors that will disappear as soon as the first ...