Skip to content
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

LLVM backend: WIP #776

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

LLVM backend: WIP #776

wants to merge 5 commits into from

Conversation

Araq
Copy link
Member

@Araq Araq commented Mar 14, 2025

No description provided.

@mrgaturus
Copy link
Contributor

mrgaturus commented Mar 14, 2025

it's possible use some of libclang to allow llvm backend use c header files to make {.header.} pragma working with llvm backend, Zig uses it for @cImport, @cDefine and @cInclude ffi features

@Araq
Copy link
Member Author

Araq commented Mar 14, 2025

No, I'm not interested in this "we need a C compiler for good" business.

@Araq
Copy link
Member Author

Araq commented Mar 14, 2025

Instead you can decide for every module whether to compile the module to C or to LLVM. You then get not as good debug info for your Nim code that compiles to C (POSIX wrappers?) but then who needs that. This design keeps the overall complexity low as no new language pragmas needs to be introduced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants