Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Toolchain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
Zipr Toolchain
Commits
4ed4994f
Commit
4ed4994f
authored
7 years ago
by
an7s
Browse files
Options
Downloads
Patches
Plain Diff
Add support for structured stack auto-initialization
Former-commit-id: b3432f6a05bc38118c81300e894a84f8a402b9e9
parent
221d303a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/cfar.sh
+12
-0
12 additions, 0 deletions
tools/cfar.sh
with
12 additions
and
0 deletions
tools/cfar.sh
+
12
−
0
View file @
4ed4994f
...
...
@@ -30,6 +30,7 @@ structured_noc=0
structured_nog
=
0
structured_nos
=
0
structured_ds
=
0
structured_stack_init
=
0
# auto stack initialize
config_name
=
"unspecified"
backend
=
"strata"
...
...
@@ -62,6 +63,8 @@ do
# this option is for cfar, handle it and remove it from the ps_analyze arguments.
elif
[
"
$i
"
==
"--structured_ds"
]
;
then
structured_ds
=
1
elif
[
"
$i
"
==
"--structured_stack_init"
]
;
then
structured_stack_init
=
1
# this option is for cfar, handle it and remove it from the ps_analyze arguments.
elif
[
"
$i
"
==
"--config_name"
]
;
then
seq
=
$(
expr
$seq
+ 1
)
...
...
@@ -154,6 +157,15 @@ do
per_variant_options+
=(
--step-option
duck_season:
"--barrier
$sharepath_key
"
)
fi
if
[
$structured_stack_init
-eq
1
]
;
then
# check even/odd status of variant number.
if
[
$(
expr
${
seq
}
% 2
)
=
0
]
;
then
per_variant_options+
=(
--step-option
stack_initialize:
"--initvalue 0x00000000"
)
else
per_variant_options+
=(
--step-option
stack_initialize:
"--initvalue 0xffffffff"
)
fi
fi
# options to stack_stamp to create non-overlapping stamps
if
[
$structured_stack_stamp
-eq
1
]
;
then
# check even/odd status of variant number.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment