Does GCC inline C++ functions without the ‘inline’ keyword?
Yes. Any compiler is free to inline any function whenever it thinks it is a good idea. GCC does that as well. At -O2 optimization level the inlining is done when the compiler thinks it is worth doing (a heuristic is used) and if it will not increase the size of the code. At -O3 … Read more