Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By lotus49
#86766 I find it hard to believe that this isn't a common question but the only similar question I could find was asked years ago and wasn't answered satisfactorily.

When I click Upload, my sketch is compiled and uploaded. This makes sense if the sketch has been changed since it was last compiled but why is the sketch recompiled when none of the code has changed since the last compilation? My programmes are all small so compilation is fairly quick but I don't understand why it happens at all.
User avatar
By btidey
#86784 The first compile and link in a session takes longer but the results are cached so that libraries etc are not recompiled on subsequent builds which are much faster. I don't know why the overall compile / link is not skipped if nothing whatsoever has changed but in practice if one is just changing sketch code then the build is pretty fast.