benilla-re systems structs docs

s_fpInit

global · crt

Address
0x82f274 · 4 bytes, up to 0x82f277
Type
void *
Meaning
Points to __fpmath (0x409a11), which __cinit calls before the initializer tables; nothing writes it
Confidence
verified, proof one
Finding
crt/printf#the-conversion-slots

Finding: The conversion slots in crt: formatted output

The start-up fills the slots the floating-point paths call through: 0x82f3f8 _cfltcvt (0x40b7fe), 0x82f3fc _cropzeros (0x40b4a8), 0x82f400 _fassign (0x40b50e), 0x82f404 _forcdecpt (0x40b44e), 0x82f408 0x40b4f6, and 0x82f40c _cfltcvt again. Their file values are all _fptrap (0x410425), which ends the process with runtime error 2. __cinit calls __fpmath through 0x82f274 before the initializer tables, and __fpmath fills the slots first.

The derivation is in the doc.