Optimization via compiler directives