tobogganSe connecter

louise

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

Codegen: emit a function's statements in a loop (issue #34)

Emitter::expr recursed once per statement. A debug build uses about
8 KiB of stack per frame, so a function of a few hundred statements
(tests/run/html.til) came within a few hundred KiB of overflowing the
2 MiB stack of a test thread. Straight-line statements, blocks in tail
position and empty literal switches now continue a loop; recursion is
left for nested blocks and branches. The generated C is unchanged.

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

olivier · il y a 1 mois · 007bc197d7542156626e9ecc99721f9023a756d1

Parents fa0a46b

1 fichiers modifiés, 140 ajouts, 130 suppressions

Mcrates/tilc_codegen_c/src/emit.rs+140−130