12 February 2008 | LINuX For you | www.
openITis.
com
c m y k
Insight
hen can we write highly
efficient code? It is when we
understand how the underlying
machine works and make best
use of that knowledge.
One
well-known way to write highly efficient code...
More
12 February 2008 | LINuX For you | www.
openITis.
com
c m y k
Insight
hen can we write highly
efficient code? It is when we
understand how the underlying
machine works and make best
use of that knowledge.
One
well-known way to write highly efficient code
is to write code in assembly.
There are many
disadvantages with this; for example, we
cannot port the programs easily, it is difficult
to maintain the code, etc.
So, we need to look
W
for alternatives to write efficient code.
We can write in low-level programming
languages like C to get write code, whose
efficiency is often comparable to the
equivalent code written in assembly.
For this
reason, C is often referred as a ‘high-level
assembler’.
In this article, we’ll look at various
programming constructs from the perspective
of efficiency.
We’ll consider general machine
architecture for illustration; and for specific
How many programmers can actually write assembly programs? With the rising popularity
of high-level languages (lik
Less