Skip to content

Feature request: Support __attribute__((constructor)) for easy module loading #1722

Closed
@gabrielschulhof

Description

@gabrielschulhof

Related to #1717 would it be possible to implement support for constructors (__attribute__((constructor))) in jerry's C library? I think that's where it needs to be implemented, in the jerry-asm.S file.

Having support for constructors makes it easy to register modules independently of the main program, since all you have to do is compile in a module and it will be available at runtime without any additional code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestRequested featurejerry-libc(Deprecated) Related to the jerry-libc library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions