Skip to content

Should locals be implicitly set to 0 #504

Closed
@jcbeyler

Description

@jcbeyler

Dear all,

By design, locals have to be defined at 0. I understand that with a good compiler will remove unnecessary sets to 0 if the local variable is first defined and not used before.

However, in certain cases, this might be not trivial. Good compilers will be able to do it but not simple ones.

Are we doing this to try to reduce the binary size? The only case this helps is when you would use the variable as 0 for its first use. But how often does this occur?

Basically, just opening up a conversation about this "implicit set to 0".

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions