diff options
author | Tristan Gingold <tgingold@free.fr> | 2018-11-23 04:28:44 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2018-11-23 04:29:21 +0100 |
commit | f2c4cfadb13dd5eef1979069317e5c6ee224c908 (patch) | |
tree | 501db6bae01657d120a033f3ff2414b011e9135e /src/vhdl/translate/translation.ads | |
parent | 3d81a74f66c2440ebde7efc64415d6c5510e94ee (diff) | |
download | ghdl-f2c4cfadb13dd5eef1979069317e5c6ee224c908.tar.gz ghdl-f2c4cfadb13dd5eef1979069317e5c6ee224c908.tar.bz2 ghdl-f2c4cfadb13dd5eef1979069317e5c6ee224c908.zip |
Add --max-stack-alloc option, check stack allocation of complex object.
Fix #692
Diffstat (limited to 'src/vhdl/translate/translation.ads')
-rw-r--r-- | src/vhdl/translate/translation.ads | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vhdl/translate/translation.ads b/src/vhdl/translate/translation.ads index 4c9b2ff27..ffaabd3bf 100644 --- a/src/vhdl/translate/translation.ads +++ b/src/vhdl/translate/translation.ads @@ -80,6 +80,10 @@ package Translation is -- support nested subprograms. Flag_Unnest_Subprograms : Boolean := False; + -- If > 0, emit a call for large dynamic allocation on the stack. Large + -- defined by the value. + Flag_Check_Stack_Allocation : Natural := 32 * 1024; + type Foreign_Kind_Type is (Foreign_Unknown, Foreign_Vhpidirect, Foreign_Intrinsic); |