Skip to content

LLVM backend: WIP#776

Closed
Araq wants to merge 6 commits into
masterfrom
araq-llvm
Closed

LLVM backend: WIP#776
Araq wants to merge 6 commits into
masterfrom
araq-llvm

Conversation

@Araq

@Araq Araq commented Mar 14, 2025

Copy link
Copy Markdown
Member

No description provided.

@mrgaturus

mrgaturus commented Mar 14, 2025

Copy link
Copy Markdown
Contributor

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

Araq commented Mar 14, 2025

Copy link
Copy Markdown
Member Author

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

@Araq

Araq commented Mar 14, 2025

Copy link
Copy Markdown
Member Author

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.

@Araq Araq closed this Apr 5, 2026
@Araq Araq deleted the araq-llvm branch April 5, 2026 15:37
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