Tuesday, March 8, 2011

Code Optimization Techniques

1. Inline functions - Eliminates the runtime overhead associated with the function call. (For functins with few lines of code)
2. Table lookups - A table of pointers to functions
3. Hand-coded assembly - Compiler not aware of special instructions
4. Register variables - Place variable in general-purpose register rather than on stack
5. Fixed-point arithmetic - Avoid using a floating point library which contains software subroutines which will emulate floating-point instructions.
6. Variable size -Use processor's native register width for variables whenever possible.
7. Loop unrolling - Unrolling duplicates the body of the loop multiple times.

2 comments:

tike mik said...

From the statistics, a large percentage of SEOs receive a low income something that suggests low pricing of SEO services. Leads

tike mik said...

You learn faster, and you will be able to find out what works and what does not in your particular line of work. Even your mistakes cannot be considered as failures if you learn from them and use that knowledge to better yourself. Offertes aanvragen