You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.
The constructors and destructors functions are stored in variables @llvm.global_ctors and @llvm.global_dtors.
Currently, we only support constructors. A suitable beginner task would be to also add destructors based on the current constructor implementation. Also see #174 for implementation hints.
The text was updated successfully, but these errors were encountered:
The GNU C extensions support attributes, with which one can implement constructors and destructors for C:
Using
mx su-clang -S -emit-llvm -o test.ll test.c
to compile, one gets the following bitcode:The constructors and destructors functions are stored in variables
@llvm.global_ctors
and@llvm.global_dtors
.Currently, we only support constructors. A suitable beginner task would be to also add destructors based on the current constructor implementation. Also see #174 for implementation hints.
The text was updated successfully, but these errors were encountered: