This macro is defined by the -semihosting flag.
__SEMIHOSTING
The macro can be queried by the user's application to indicate that semihosting capability has been linked to the project via the semihosting runtime libraries.