Tagged Questions
3
votes
1answer
476 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
5answers
3k 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 ...
2
votes
0answers
140 views
CoffeeScript translates to JavaScript. Is there something like it for C? [duplicate]
Possible Duplicate:
Is there a language that transcompiles to C with a better syntax?
There are many language implementations which compile to C. However, most of them have some language ...
1
vote
3answers
213 views
Integer sign and compilation via C
I'm writing a compiler that uses the time-honored strategy of using a C compiler as the back end, and I'm trying to figure out exactly how to handle integer sign.
I'm using machine word integers as ...
4
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 ...
0
votes
4answers
747 views
Computation Program Not Running at 100% CPU Utilization
I have a program which has a GUI and performs some very heavy mathematical computations for a couple of minutes and then outputs a result. When I try to directly interface it through its DLL's, it ...
15
votes
3answers
4k views
How could the first C++ compiler be written in C++?
Stroustrup claims that Cfront, the first C++ compiler, was written in C++ (Stroustrup FAQ).
However, how is it even possible that the first C++ compiler be written in C++?
The code that makes up the ...
4
votes
3answers
383 views
Role of linking, object files and executables
For a C or assembly program that does not require any other library, will linking
be necessary? In other words, will conversion from C to Assembly and/or from Assembly to an object file be enough ...
8
votes
5answers
2k views
Do Fortran compilers really generate faster code than C compilers?
When I was studying in the university I often heard the idea that Fortran compilers produced faster code than C compilers for an equivalent program.
The key reasoning went like this: a Fortran ...
12
votes
5answers
2k views
Are C++ templates just a kind of glorified macros?
From different comparisons among C++ templates and C#/Java generics like this one-
...
7
votes
3answers
1k views
Is Clang/LLVM ready for prime time?
Clang is able to be used instead of gcc? What your experience on that? What disadvantages there are yet?
Performance of compilation is very better than gcc but about performance of code generated ...