Skip to content

new linker implementation - #1058

Merged
redianthus merged 1 commit into
OCamlPro:mainfrom
redianthus:linker
Aug 20, 2026
Merged

new linker implementation#1058
redianthus merged 1 commit into
OCamlPro:mainfrom
redianthus:linker

Conversation

@redianthus

Copy link
Copy Markdown
Member

No description provided.

@redianthus
redianthus force-pushed the linker branch 8 times, most recently from 6cb1d63 to 1578234 Compare July 30, 2026 22:39
@redianthus
redianthus force-pushed the linker branch 3 times, most recently from 9b3bb29 to df89fa6 Compare August 20, 2026 10:38
@redianthus

redianthus commented Aug 20, 2026

Copy link
Copy Markdown
Member Author

Three things for the future:

  • return the env in case of failure, this will allow to pass some script tests related to linking, this is very annoying to do... we don't really care about analyzing things after a failure, so this does not really matter for now
  • bring back support for alloc/free and double-free, heap overflow etc. this can actually be done by storing the chunks in the symbolic monad instead of inside the memory, then, the symbolic_memory can simply update the monadic state, and the external functions do not have to return the runtime env, they can simply modify the monadic state! this shouldn't be too hard to do, but left for later as this PR is already way too big
  • fix globals in the abstract interpreter, I removed the fold and now the results are wrong but it should be easy to fix

@redianthus
redianthus merged commit 059ded1 into OCamlPro:main Aug 20, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant