Skip to main content
gamedev.net
🔒 Locked

Optimizations

Started by RelisH 0 replies 300+ views
Original Post
RelisH
RelisH
What sorts of optimizations does the Visual C++ 6 compiler (enterprise version) do? The ones that about which I am most curious is whether it removes redundant brackets (i.e a = "(1+(6*9));") and if it doesn''t include any functions that aren''t used
-RelisH!
SteveC
SteveC
parenthesis, eg. ''('' and '')'' don''t generate code themselves, they can control the order of the code generation.

So basically on that front you have nothing to worry about.

As far as removing functions that aren''t used from a binary image, that is the job of the linker.

''strip dead code'' or some other such optimizations for the linker will help reduce code size. but that has no direct impact on performance of the code - it may impact the performance of the application - if it fits in a smaller memory footprint there could be less swap file activity.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.