Compiler compiles all files SDK5.0.2.1

5 posts / 0 new
Last post
DrNick1
Offline
Last seen:4 years 4 months ago
Joined:2014-07-01 11:55
Compiler compiles all files SDK5.0.2.1

When I build the bare-bones example, make a change and then rebuild target, the system rebuilds only the changed files and dependencies, (which is correct).

When I compile the empty peripheral template in exactly the same way, the compiler always rebuilds ALL files, not just the ones that have been changed.

I'm using Keil 5 on a fresh download of 5.0.2.1. All project options in both cases are identical as far as I can see.

Anybody know how to stop this behaviour?

Device:
JE_Dialog
Offline
Last seen:3 hours 21 min ago
Staff
Joined:2013-12-05 14:02
Hi DrNick, sorry for delay in

嗨DrNick,抱歉延迟回复:我会甲型肝炎e one of the team take a look at this question. BR JE_Dialog

MT_dialog
Offline
Last seen:6 days 8 hours ago
Staff
Joined:2015-06-08 11:34
Hi DrNick1,

Hi DrNick1,

According to keil there are two options that may cause this:

1. Either the Create Batch File option is enabled (Options for Target, Output tab).

2. Check the Cross-Module Optimization option (in Options for Target, Target tab).

Can you please check, i am not able to reproduce your issue on my keil with template example (only with these options enabled).

Thanks MT_dialog

DrNick1
Offline
Last seen:4 years 4 months ago
Joined:2014-07-01 11:55
Neither of those are ticked

Neither of those are ticked sadly! Its a mystery

MT_dialog
Offline
Last seen:6 days 8 hours ago
Staff
Joined:2015-06-08 11:34
Hi DrNick1,

Hi DrNick1,

The source code is compiled conditionaly, if you just add code in a file then the compiler is only going to compile the file you 've changed. But if you change any defines or add profiles then the compiler will re-compile all the related files. So it depends what you are changing.

Thanks MT_dialog