Skip to content

SPEC 12.2, 12.3: the floating-point state is part of the image's convention - #63

Merged
Sunrisepeak merged 2 commits into
mainfrom
openkal-0.24.4
Nov 7, 2026
Merged

Sunrisepeak merged 2 commits into
mainfrom
openkal-0.24.4

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

Clause 12.2 gains a row: an image runs, at its entry and in each context, in its convention's floating-point state — on x86-64 the x87 control word 0x037F and MXCSR 0x1F80, on AArch64 FPCR zero. Clause 12.3 states that the loader establishes it at the entry, for initialisers and finalisers and in each context, and that a call from a program of the environment into an image's function is made in it with the caller's restored after it.

The System V convention already implied the state; one environment (Windows) begins a thread with the x87 at double precision, under which openkal-musl's strtod("0.4") gave 0x1.99999999998p-2. No declaration changes, so the specification stays at 0.24. The loader's side is mcpplibs/openkal-image#33 (0.5.3).

Sunrisepeak and others added 2 commits November 8, 2026 05:35
…ention

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…hen this version is in it

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
@Sunrisepeak
Sunrisepeak merged commit 808a3d3 into main Nov 7, 2026
15 checks passed
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