1. A method comprising: receiving source code by a compiler to be compiled into an executable program; converting the source code into an intermediate representation; generating a multi-threaded executable; executing the multi-threaded executable on a cache coherent non-uniform memory access (cc-NUMA) platform and collecting profiling data by sampling during execution using a profiling tool; determining a triggering condition associated with a load expression based on the collected profiling data; generating a service routine to move data from a first node of the cc-NUMA platform to a second node of the cc-NUMA platform when the triggering condition is satisfied; generating a monitor instruction to enable runtime remote access monitoring to determine whether the triggering condition is satisfied during execution; and generating a thread-data affinity optimized executable by inserting the monitor instruction into the intermediate representation.