Hi, each time I change something in one of my files I compile all the code files in my project - a process which takes a lot of time because I have dozens of files in my project. Is there a way to only compile the changed files, thus performing the compilation (and the all 'build' process) much faster?
Press the 'Build Target' button instead of the 'Rebuild all Target files' button. Note that using the SRC directive forces files to be translated every time, irrespective of changes. Note also that there's an 'Always Build' option for each file, that forces the file to be translated every time, irrespective of changes.
All files also recompile if you "Define" symbols on the C51 or the A51 tab of the project options.
"All files also recompile if you "Define" symbols on the C51 or the A51 tab of the project options." That should only happen on the 1st build after you add/change the definitions - thereafter they should not affect it. I have millions of such definitions, and my build does only retranslate changed files (and files dependant on changed files) - subject to the exceptions I noted earlier.
I should also have noted that it only appears to be true if you have multiple targets for the project. Even if I don't change targets or any of the source modules. Pressing "Build Target" causes a full recompile.
...and I should also have noted that, as well as the millions of defines, I also have multiple Targets - and no problems with the build building only the necessary files.