Commit 4f68fc54 authored by yoogx's avatar yoogx

* Generate local variables as static one to reduce stack usage

        For openaadl/ocarina#99
parent 5fb94bf6
......@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
-- Copyright (C) 2008-2009 Telecom ParisTech, 2010-2016 ESA & ISAE. --
-- Copyright (C) 2008-2009 Telecom ParisTech, 2010-2017 ESA & ISAE. --
-- --
-- Ocarina is free software; you can redistribute it and/or modify under --
-- terms of the GNU General Public License as published by the Free Soft- --
......@@ -1738,7 +1738,8 @@ package body Ocarina.Backends.C_Tree.Nutils is
(Map_C_Variable_Name
(F,
Request_Variable => True)),
Used_Type => M);
Used_Type => M,
Is_Static => True);
Append_Node_To_List (Declaration, Declarations);
......
......@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
-- Copyright (C) 2008-2009 Telecom ParisTech, 2010-2016 ESA & ISAE. --
-- Copyright (C) 2008-2009 Telecom ParisTech, 2010-2017 ESA & ISAE. --
-- --
-- Ocarina is free software; you can redistribute it and/or modify under --
-- terms of the GNU General Public License as published by the Free Soft- --
......@@ -591,7 +591,8 @@ package body Ocarina.Backends.PO_HI_C.Activity is
Make_Variable_Declaration
(Make_Defining_Identifier
(Map_C_Variable_Name (F, Port_Request => True)),
RE (RE_Request_T));
RE (RE_Request_T),
Is_Static => True);
Append_Node_To_List (N, Declarations);
L :=
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment