Skip to content
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.

Intrinsify the atexit C library function #264

Closed
mrigger opened this issue May 20, 2016 · 0 comments
Closed

Intrinsify the atexit C library function #264

mrigger opened this issue May 20, 2016 · 0 comments

Comments

@mrigger
Copy link
Collaborator

mrigger commented May 20, 2016

The C library function atexit allows a programmer to register a function that is called before a program terminates. We need to intrinsify this function in Sulong since we cannot simply pass a Truffle function to the native side (see #57). The implementation would be conceptually similar to the constructor and destructor attributes (see #214). In the LLVM test suite there is a test case test-suite-3.2.src/SingleSource/UnitTests/2003-05-14-AtExit.c that could validate the implementation.

pointhi added a commit to pointhi/sulong that referenced this issue Nov 2, 2016
pointhi added a commit to pointhi/sulong that referenced this issue Nov 4, 2016
pointhi added a commit to pointhi/sulong that referenced this issue Nov 8, 2016
pointhi added a commit to pointhi/sulong that referenced this issue Nov 8, 2016
pointhi added a commit to pointhi/sulong that referenced this issue Nov 9, 2016
pointhi added a commit to pointhi/sulong that referenced this issue Nov 9, 2016
mrigger pushed a commit that referenced this issue Nov 9, 2016
Intrinsify the atexit function, Closes #264
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant