Skip to content

Compiler Option: -t


Set stack size in kilobytes

Syntax

-t< stack size >`

`

Parameters

stack size

Stack size in kilobytes.

Description

The -t compiler option sets the stack size in kilobytes (defaults to 1024 KBytes for 32-bit targets, and 2048 KBytes for 64-bit targets). The local arrays are created in the stack, so 1 MB or 2 MB of stack is not always enough.

Version

  • Before fbc 1.08.0, the default stack size for 64-bit targets was also 1024 KBytes.

Platform Differences

  • Supported on Windows, Cygwin and DOS only.

See also

Back to DocToc

Translated from FreeBASIC official docs. Contact us for removal if infringed.
FreeBASIC is an open-source project, not affiliated with Microsoft