Hi Chen,
'__HCS12X__' is defined in CPU definition. See below:

in above picture step 6,
__HC12__: always defined
__HCS12__: defined for the -CpuHCS12 and -CpuHCS12X options
__HCS12X__: defined for the -CpuHCS12X option
__HCS12XE__: defined for the -CpuHCS12XE option
By default, __FAR_DATA is not enabled. If you need enable __FAR_DATA, we can define it in compiler command line arguments. see example:

Have a great day,
Jennie Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------