In my main() code I have code that reads from a file on my host PC. I also have code that initializes registers on the microcontroller, starts a counter, etc. The code that reads the file is being run on the host PC, obviously. The rest of the code is either being run on the ucon programmer or the ucon itself. My question is: How does the compiler know which code is to be run where? Are separate executables created for the host PC, programmer and ucon? I am just a bit confused.
Dan