Skip to content

hotfpc 1.2.1

Latest

Choose a tag to compare

@github-actions github-actions released this 26 Nov 19:50
· 1 commit to main since this release
4abb458
  • A variable of a unit's interface that only code outside the unit uses, such as the
    program's, now needs a restart when it changes its type at the same size (Integer to
    Single), on every system while the check of layouts is on (a ppudump that reads the
    units), and on Windows when it grows within its padding (Word = 1 to LongInt = 1
    before an Int64).
    The unit's object file came out the same, and the driver checked layouts, and on Windows
    sizes, only for units whose object file changed, so the program's recompiled code was
    swapped in on the variable's old storage and read it as the new type. Every unit fpc
    compiled again in a save, as its .ppu shows, now gets those checks
    (#45,
    #47).
  • On macOS, a variable that grows within the padding before the next one now needs a
    restart, as on Linux: Small: Word before an Int64 saved as LongInt, in
    the program file, or in a unit while the check of layouts is off, also when a save removed
    the variable and a later one brings it back larger. Nor was a unit loaded at all when only
    the program's code used such a variable of its interface, as its object file came out the
    same: not even the check of layouts saw it. A Mach-O object states no symbol
    sizes, and the agent took a variable's size from the distance to the next symbol, 8 bytes
    before and after, so it swapped the new code in on the old storage. hotfpc now has fpc keep
    the assembler it assembles each object from (-a, <unit>.s beside <unit>.o), and the
    agent reads each variable's size there. A variable the new code would share with the
    program needs a restart when its size can't be read there for the version the program
    runs, the new one or both: the size of variable <name> is unknown: ...
    (#43).
  • A variable added or removed next to another no longer needs a restart on macOS and Linux
    arm64. The agent restarted when the distance from a variable to the next symbol changed
    (variable MAIN.FLAG changed size from 8 to 1 bytes) although its size didn't. The size
    a datum states, in the ELF symbol or in fpc's assembler on macOS, now decides, and such a
    swap no longer notes that the variable changed
    (#43).
  • Homebrew installs hotfpc on Intel Macs and on Linux arm64 too, from 1.2.0 on: brew install frostney/tap/hotfpc. On an Intel Mac, where Homebrew has no prebuilt fpc, fpc
    comes from the freepascal.org installer
    (platforms).