Skip to content

Regression in Zig/C comparison #431

Open
@vegerot

Description

@vegerot

The website mentions this comparison between C and Zig.

In more recent versions, while Zig still uses faster instructions, it actually uses one more instruction which makes the comparison look less cool.

Of course it's just doing some stack management which is way faster than an imul, but just thought it was worth pointing out :)

https://godbolt.org/z/qWGvEo9o6

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