First time poster long time lurker.
So I have been using the GNU ARM Embedded Toolchain for a while and compiling my embedded C++ code using arm-none-eabi-g++, because it is what we did in my embedded systems university courses. For my computer science courses we used just g++ to compile C++ code. I have been poking around the GCC manual and found that there are ARM architecture compilation options for GCC. My question is what is the difference between using arm-none-eabi-g++
binary provided by ARM and g++
with the -mcpu=cortex-m4 -march=armv7
compile option for cross-compiling? It appears you can cross-compile for ARM using gcc (gcc that comes with Ubuntu) and I have been hard pressed so far to find a straight answer to this question on the internet.