Could someone explain these references I keep seeing to compiling with "-O2"?
#2
Settings like
-O2
,
-O3
, etc. are C++ compiler optimization settings. Generally speaking, they speed up (and usually decrease the size) of the compiled program by perform optimizations when compiling the C++ code. Theoretically it doesn't matter what it does because as a QB64 developer you're not writing the C++ code anyway.

Personally, if you're not familiar with what those flags do then I'm not sure I would recommend using it at this point, as it's still not extremely clear how stable QB64 programs are when compiled with that setting. That said a fair number of community members have been using them and I don't think I've seen any issues reported yet, so that is a good sign.

To use
-O2
you can simply check the 'Compile program with C++ optimization flag' option in that dialog. To use any other option besides
-O2
you'll have to put it into the compiler flags yourself.
Reply


Messages In This Thread
RE: Could someone explain these references I keep seeing to compiling with "-O2"? - by DSMan195276 - 06-09-2022, 09:17 PM



Users browsing this thread: 2 Guest(s)