are there pre-compiler options in GCC for setting up specific compiler flags? (for example if I want to set -O1 for a specific function, is there a stack of attributes for doing that on a per line basis?). The problem is that a specific function with many loops halves its execution time only with a specific compiler flag. Setting that flag for the whole project is not a choice because if I setup that flag for the whole project the game slow drammatically down (10%). I tried to google around without luck
Please don't tell me to don't do that. Tell me just only if it is possilbe and how.
