New answers tagged optimization
1
vote
Optimizing code generation for expressions in a compiler
A common method when you have a very, very simple compiler is called “peephole optimisation”: You Look at tiny bits of code and see if you can replace them with something better.
Every time you see a ...
0
votes
Do compilers un-inline recurrent expressions?
The only thing reasonably similar that I have seen regularly: Say you have two places in the same C function with the statement "return x+2;". Normally each would be translated as "take ...
Top 50 recent answers are included
Related Tags
optimization × 394algorithms × 63
performance × 57
c++ × 49
compiler × 35
design × 21
c# × 20
c × 20
java × 17
database × 17
php × 12
architecture × 11
javascript × 11
python × 11
web-development × 11
design-patterns × 10
programming-practices × 9
math × 9
profiling × 9
object-oriented × 8
caching × 8
cpu × 8
memory-usage × 8
compilation × 8
sql × 7