tobogganSe connecter

louise

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

Core, codegen: one table of the runtime's externs (issue #62)

tilc_core::externs lists every runtime extern with whether it may
unwind, is blocking or is owned. Codegen's PANICKING and DECLARED lists
are gone: the yield check after a call (emit and the never-unwinds
analysis) asks externs::may_unwind, and only a binding's externs get a
prototype, since tilrt.h declares the runtime's. A tl_ symbol missing
from the table is now treated like a binding's, as may unwind, instead
of silently never unwinding.

Generated C changes only by the prototypes of Bytes, Array and
string_join externs, which tilrt.h now declares (code-health H1).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

olivier · il y a 1 mois · cb896725befdb78cf86181540defd86bdbede595

Parents a87bd25

4 fichiers modifiés, 188 ajouts, 92 suppressions

Mcrates/tilc_codegen_c/src/emit/mod.rs+4−77
Mcrates/tilc_codegen_c/src/unwind.rs+5−13
Acrates/tilc_core/src/externs.rs+175−0