Microcontroller with one terrabyte program

If you go the simulator route, also look at this: C-like interpreter that actually fits and runs inside most Arduino chips: wrench

You'll probably have recognised that the contribution from @afhomon (post #4 here) was pasted from ChatGPT.