Skip to content

Comments

[WIP] Feature/standalone executable#2095

Open
aleksisch wants to merge 7 commits intoGaijinEntertainment:masterfrom
aleksisch:feature/standalone-executable
Open

[WIP] Feature/standalone executable#2095
aleksisch wants to merge 7 commits intoGaijinEntertainment:masterfrom
aleksisch:feature/standalone-executable

Conversation

@aleksisch
Copy link
Contributor

No description provided.

@aleksisch aleksisch force-pushed the feature/standalone-executable branch 4 times, most recently from b1392a9 to 07fb504 Compare February 19, 2026 15:32
It was marked public by an accident and should be private.
Before this commit vscode extension didn't work with dasBinder,
if dll was not found, now it works.
Move JIT related code out of `simulate_nodes`. Final goal is
to make JIT independent from `simulate` part of daScript library.
@aleksisch aleksisch force-pushed the feature/standalone-executable branch from 07fb504 to da0ccc5 Compare February 19, 2026 15:32
With this commit we start support of standalone das executables.

Das file can be compiled to standalone binary using LLVM backend.
Although it has some limits:
- All type related nodes cannot be translated
- fmt cannot be translated (yet?) as it requires
dynamic nodes (addInterop)
Now we can create executable even if some part of it can't be
translated into binary. It can be needed if we beleive this
part is not reachable. If it turns out this part is reachable
we will fail in runtime in function `jit_trap`.

By default this option disabled and not exposed to CodeOfPolicies.
@aleksisch aleksisch force-pushed the feature/standalone-executable branch from da0ccc5 to f612824 Compare February 20, 2026 11:12
Now we can set path to output file (which includes path and
filename with no extension) in JIT. It will be used to
create binary, dll and object file.
Add simple test to ensure executable work.

[skip ci]
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.

1 participant