HEAP2EXEC(1)
π heap2exec β the manual page, but make it make sense
okay so bestie, welcome to the heap2exec(1) page β yes that's the section 1 of the manual, we love a general-commands era π
β¨ NAME β¨
heap2exec β bestie it literally generates a standalone executable from a SML/NJ heap image. that's the whole vibe. π
π¦ SYNOPSIS π¦
heap2exec [ -32 | -64 ] [ LINKMODE ] file
that's it. that's the whole invocation. icon behavior honestly.
πΈ DESCRIPTION πΈ
so under normal usage, SML/NJ represents a program as a heap-image file with a name of the form foo.arch-opsys β like, that's just how it do. and heap2exec generates a standalone executable from a heap image. you also get the option to specify a preferred linking mode, which is very main-character of you. β¨
the default is to link statically on FreeBSD and Linux. no cap.
π«Ά heads up bestie:heap2execis an optional component of the SML/NJ installation process that is not included by default. so if you're sitting there like "where is it π" β you gotta edit theconfig/targetsfile before installation to include it. iykyk.
π OPTIONS π
-32β run the 32-bit version of the program (currently the default). so if you don't say anything, this is lowkey what you're getting π-64β run the 64-bit version of the program. this option only applies to the x86-64 (aka amd64) architecture, so don't come for it on other arches bestie π-static,-linkwith-aβ statically link the program with the runtime system. static linking is the default on Linux and FreeBSD, so this is kind of the "i'm just confirming the vibe" flag π-dynamic,-linkwith-soβ dynamically link the program with the runtime system. the other flavor. the plot twist. π₯
π AUTHOR π
heap2exec was written by Matthias Blume. we stan. π«Ά
β SEE-ALSO β
sml(1)β go read that one next, bestie, it's giving lore
π BUGS π
okay so the tea: heap2exec is limited to the x86 and amd64 architectures and to the macOS, Linux, and FreeBSD operating systems. so if you're on something else... yeah. not me finding out the hard way π
π COPYING π
Copyright Β© 2020 The Fellowship of SML/NJ
this is free software; see the source for copying conditions. there is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. so like, no refunds, no notes, periodt. π
and that's the page bestie!! π§ this lil number is from SML/NJ, dated 2025-11-04, and it's the HEAP2EXEC(1) page β go forth and link something, you absolute icon πβ¨
π¦ where this page comes from
- arch rolling: smlnj 110.99.9-1 Β· SMLNJ
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms