Hi@NewbieStudy
Changes in the link address will cause some changes in the location where the code is stored in flash, which may lead to some differences in execution speed.I can't go into your question in depth.
The following are some optimization suggestions for improving performance of S32K3. I hope this will be helpful to you.
https://community.nxp.com/t5/S32K-Knowledge-Base/S32K3xx-How-to-optimization-APP-code-for-get-more-h...
As following have some suggestions:
1. Most of user code allocate to P-Flash and enable I-Cache
2. Allocate system stack to D-TCM and enable D-Cache
3. Execute code frequently allocate to I-TCM. E.g., ISRs etc.
4. OS' task stack allocate to D-TCM
5. vector table allocate to D-TCM
Please note:
1. Due to enable D-Cache, other masters(E.g., DMA, HSE, another APP cores) access theses area of cacheable will be impact. So, theses area need to allocate to non-cacheable area.
2. If another master(E.g., DMA, HSE and another APP cores) access the D-TCM need to over back door. E.g., core1/DMA/HSE access core0' DTCM needed to over backdoor.