armのc++コンパイル

$ arm-none-eabi-g++ -mcpu=arm7tdmi main.cpp -T generic-hosted.ld

か、

$ arm-none-eabi-gcc -mcpu=arm7tdmi main.cpp -T generic-hosted.ld -lstdc++