I compiled the program offline for the STM32F103VE target using the GCC_ARM toolchain with the following results:
Total Static RAM memory (data + bss): 1376(+1376) bytes
Total Flash memory (text + data): 17368(+17368) bytes
In case you use the online compiler ( see this for more info) or install the ARM Mbed Studio IDE then you’ll build you program with the ARM toolchain which is a more optimised tool and produces a program requiring less RAM and flash memory.