Skip to content

Sketch size varies each compilation  #7278

Closed
@TheDoktar

Description

@TheDoktar

I'm using Arduino 1.9.0 Beta. LWiP varient 1.4 Higher Bandwidth. Board Generic ESP8266 Module.
The issue is that compiling the sketch results in different sketch sizes, can vary by up to 400 bytes.
I started to suspect that it was a comiler optimisation issue depending on if I declared a variable with #define, const int or int but actually it doesnt seem to be. The size of the sketch just varies. There are 4 or 5 values, and it can be the same twice running.
Here are some values fror my current sketch:
283915
283419
283419
283419
283915
283419
283923
283843
283419
283411
283419

These are consecuitive compilations, all I did was press the verify key again and again.

Now I think that its important that an embedded compiler should be deterministic. I mean why would it not be, and if its not this means that it could be possible that different compilations of the same sketch did different things and behaved differently?

I will try to include my sketch, but actually its not very interesting, it happens with every sketch I think.
Oh. file type unsupported. Humph.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions