This optimization method involves analyzing the source code to identify performance bottlenecks that can be addressed through adjustments to the compiler’s optimizations settings or specific compiler directives. Through compiler-based optimization, users can reach an optimal configuration for the specific hardware used for running the program.