I have installed G++ 4.8 with the C++11 standard.
Searching around the internet I found some flags that apparently should decrease compile time considerably. I have ended with this, it compiles fine but not sure if its entirely correct.
-std=c++0x -Ofast -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard
I am no G++/C++ expert and was wondering if there is anything I should change with that to get better compile performance on the Pi 2 or if there are any caveats I have not run into yet by using these arguments.
-Ofastmay make a difference but it comes with some caveats -- seeman gcc. Generally in development you want-O0to ensure that values are not optimized out when debugging. The default is I think-O2. – goldilocks Jun 08 '15 at 22:14make, the 2 is obviously faster. But 2 minutes for 100 lines is a bit much. Can you paste it anywhere? – goldilocks Jun 09 '15 at 10:11C++0xdiffernt toc++11? I use thec++0xto compile but also usedc++11before. Both compiled fine. – Piotr Kula Jun 09 '15 at 10:49c++0xis the same asc++11for compilers that support the latter; some < 4.7 gcc's only support the former, which was basically the 2011 standard before it was finalized. – goldilocks Jun 09 '15 at 10:51boost! Fantastic!!!! – Piotr Kula Jun 09 '15 at 11:12