25112 Rev. 3.06 September 2005

Software Optimization Guide for AMD64 Processors

2.12Use of Function Prototypes

Optimization

In general, use prototypes for all functions.

Application

This optimization applies to:

32-bit software

64-bit software

Rationale

Prototypes can convey additional information to the compiler that might enable more aggressive optimizations.

Chapter 2

C and C++ Source-Level Optimizations

29

Page 45
Image 45
AMD 250 manual Use of Function Prototypes