answersLogoWhite

0

Code optimisation is aimed at achieving efficient performance with minimum memory consumption. In some cases, a compromise is necessary depending on which is more important. For instance, on limited memory systems it was common practice to implement doubly-linked lists using the "xor-trick" to store two pointers in a single variable, thus reducing overall memory consumption. However, the cost of the extra computation required to separate the pointers at runtime reduced performance. To achieve maximum performance we must sacrifice memory to do so, but if we cannot then we must sacrifice performance.

User Avatar

Wiki User

9y ago

What else can I help you with?

Related Questions

What has the author T C Claypole written?

T. C. Claypole has written: 'Construction, operation and optimisation of a furnace for the economic burning of low calorific value gases'


What are the similarity between c and c plus plus compiler?

When Bjarne Stroustrup developed the first version of C++ in 1979 (which was originally called 'C with Classes'), his custom-built compiler did nothing more than convert his C++ source code into C-compliant code which could then subsequently be compiled by the standard C compiler to produce the required object files. Nowadays, the C++ compiler handles everything itself, but does more or less the same job, with the addition of specialised optimisation routines to produce object files efficiently, without the need to convert to an intermediate C source.


The 4th Amendment is particularly aimed at?

C.


Which idea did the NAACP promote?

achieving racial equality for African Americans. ~c


Is C plus plus preprocessor software?

Sometimes, it is. Some implementations compile C++ code into C code, and then compile the C code.


Is MySpace is not for kids?

It`s aimed at teenagers :) X C


Suction d and c cpt code?

wat is the code for SUCTION d and c


How do you Open a text file as C plus plus source code?

All C++ source code is is a text file with the .cpp extension. So if you save your code as *****.cpp then it is automatically C++ source code.


Discrete fourier transform of an image in c code?

i want c code for fourier transform?


What has the author C E Harvey written?

C. E Harvey has written: 'Achieving an acceptable standard of land reclamation for surface mining'


Getting source code of c?

C is a programming language, so it doesn't have source code.(On the other hand, C compilers do have source code, but you, as a beginner in programming, could not understand them.)


Can the c plus plus language compiler also be used for the c language?

Yes, but you must tell the compiler that the code is C otherwise it will be treated as if it were C++, which could lead to subtle runtime errors where the languages contain "silent differences", or compilation errors where valid C code would be invalid in C++.Although you can mix C and C++ code in the same source, it makes sense to use separate translation units for each. Thus, when a header contains C code, you can include that header in a C++ program using the following construct:extern "C"{#include "c_header.h"}Everything between the opening and closing braces will be treated as C code and will be compiled as such.