Skip to content

Calculating size of function #54

Description

@0152la

Suppose we have a function definition, in either C or assembly. Is it possible to calculate the size of such a function (presumably in byes) at compile time? One potential solution would be to have the functions whose sizes we want to calculate in a separate file, compile it, and perform the computation based on ELF data, but are there maybe easier solutions?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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