Search
 
SCRIPT & CODE EXAMPLE
 

CPP

g++ optimization flags

-O0			//optimization for compilation time (default)	
-O1 or -O	//optimization for code size and execution time
-O2			//optimization more for code size and execution time
-O3			//optimization even more for code size and execution time
-Os			//optimization for code size	
-Ofast		//O3 with fast none accurate math calculations
Comment

PREVIOUS NEXT
Code Example
Cpp :: C++ convert integer to digits, as vector 
Cpp :: how to traverse a linked list in c++ 
Cpp :: how to use string variable in switch case in c++ 
Cpp :: remove first element from vector c++ 
Cpp :: remove last character from string c++ 
Cpp :: how to compare lower case character to uppercase cpp 
Cpp :: how to run a msi file raspbrain 
Cpp :: find last occurrence of character in string c++ 
Cpp :: c++ read image opencv in folder 
Cpp :: max of two elements c++ 
Cpp :: c++ string comparison 
Cpp :: take pieces of a string in c++ 
Cpp :: c++ vector average 
Cpp :: c++ nested switch statements 
Cpp :: how to make a loop in c++ 
Cpp :: how to declare a function in c++ 
Cpp :: c++ fizzbuzz 
Cpp :: cpp Sieve algorithm 
Cpp :: how to store pair in min heap in c++ 
Cpp :: iterate over 2 vectors c++ 
Cpp :: cpp cin 
Cpp :: divide and conquer based algorithm to find maximum and minimum of an array 
Cpp :: c++ friend class 
Cpp :: c++ triple 
Cpp :: c++ power 
Cpp :: c++ encapsulation 
Cpp :: remove specific element from vector c++ 
Cpp :: cpp vs c# 
Cpp :: classes and objects in c++ 
Cpp :: c++ map insert 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =