Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Ocarina
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
TASTE
Ocarina
Commits
4f68fc54
Commit
4f68fc54
authored
Jul 06, 2017
by
yoogx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Generate local variables as static one to reduce stack usage
For openaadl/ocarina#99
parent
5fb94bf6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
src/backends/ast_c/ocarina-backends-c_tree-nutils.adb
src/backends/ast_c/ocarina-backends-c_tree-nutils.adb
+3
-2
src/backends/po_hi_c/ocarina-backends-po_hi_c-activity.adb
src/backends/po_hi_c/ocarina-backends-po_hi_c-activity.adb
+3
-2
No files found.
src/backends/ast_c/ocarina-backends-c_tree-nutils.adb
View file @
4f68fc54
...
...
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
-- Copyright (C) 2008-2009 Telecom ParisTech, 2010-201
6
ESA & ISAE. --
-- Copyright (C) 2008-2009 Telecom ParisTech, 2010-201
7
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
);
...
...
src/backends/po_hi_c/ocarina-backends-po_hi_c-activity.adb
View file @
4f68fc54
...
...
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
-- Copyright (C) 2008-2009 Telecom ParisTech, 2010-201
6
ESA & ISAE. --
-- Copyright (C) 2008-2009 Telecom ParisTech, 2010-201
7
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
:=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment