Skip to content

Function overhead #23762

@ekeew

Description

@ekeew

In 0.14.0, the function overhead appeared. For example, a function that returns its argument produces:

push    rbp         ; why do we need that?!
mov     rbp, rsp    ; ?!?
mov     eax, edi
pop     rbp         ; ?!?
ret

The correct assembly was in 0.13.0:

mov     eax, edi
ret

https://godbolt.org/z/9z1d5hsoK

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