On 02/08/2019 18:37, Chris Cannam wrote:
The program is one that has been exported to an object and compiled to a native binary using polyc - the problem doesn't seem to occur when running from the repl directly (because of all the allocation that happens in compiling beforehand?) but producing a standalone binary is a goal.
So this feels like a stupid question, but can I pass runtime arguments like --minheap through the compiler, so that they're applied on startup by the binary produced by polyc? It appears that runtime-related arguments passed to poly are not retained in the binary produced by polyc from the dumped image.
No, but arguments such as --minheap are picked up by the run-time system whether you are running through the repl or as a stand-alone binary.
David