-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implements {.compile.}
#367
Conversation
49cd75f
to
4a12d3a
Compare
|
Have you considered to make Nimony emit |
@@ -0,0 +1,8 @@ | |||
{.compile: "foo.c".} | |||
{.compile("foo.c", "-fno-strict-aliasing") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{.compile("foo.c", "-fno-strict-aliasing") | |
{.compile("foo1.c", "-fno-strict-aliasing").} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Succeeded by #383 |
fixes #357
ref https://github.com/microsoft/mimalloc
.compile: "foo.c"
to Nimony so that we can also depend on C code like mimalloc..compile
in system.nim so we can use a decent memory allocator which offersallocatedSize()
so that our new super efficient strings and seq can use it.