This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

General question about main().

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