Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
dmt
Commits
fecfdb2d
Commit
fecfdb2d
authored
Sep 19, 2019
by
Thanassis Tsiodras
Browse files
Skip computation of Source_Data_Size, to make taste-update-data-view 1000x faster.
parent
c287104a
Changes
2
Show whitespace changes
Inline
Side-by-side
dmt/asn2aadlPlus.py
View file @
fecfdb2d
...
@@ -246,12 +246,13 @@ def main():
...
@@ -246,12 +246,13 @@ def main():
sys
.
argv
[
ofs
]
=
'--aadlv2'
sys
.
argv
[
ofs
]
=
'--aadlv2'
try
:
try
:
optlist
,
args
=
getopt
.
gnu_getopt
(
sys
.
argv
[
1
:],
"hvkad"
,
[
'help'
,
'version'
,
'keep'
,
'aadlv2'
,
'debug'
,
'platform='
])
optlist
,
args
=
getopt
.
gnu_getopt
(
sys
.
argv
[
1
:],
"hvkad
f
"
,
[
'help'
,
'version'
,
'keep'
,
'aadlv2'
,
'debug'
,
'fast'
,
'platform='
])
except
getopt
.
GetoptError
:
except
getopt
.
GetoptError
:
usage
()
usage
()
bAADLv2
=
False
bAADLv2
=
False
keepFiles
=
False
keepFiles
=
False
bFast
=
False
for
opt
,
unused_arg
in
optlist
:
for
opt
,
unused_arg
in
optlist
:
if
opt
in
(
"-h"
,
"--help"
):
if
opt
in
(
"-h"
,
"--help"
):
...
@@ -261,6 +262,8 @@ def main():
...
@@ -261,6 +262,8 @@ def main():
sys
.
exit
(
0
)
sys
.
exit
(
0
)
elif
opt
in
(
"-d"
,
"--debug"
):
elif
opt
in
(
"-d"
,
"--debug"
):
configMT
.
debugParser
=
True
configMT
.
debugParser
=
True
elif
opt
in
(
"-f"
,
"--fast"
):
bFast
=
True
elif
opt
in
(
"-a"
,
"--aadlv2"
):
elif
opt
in
(
"-a"
,
"--aadlv2"
):
# Updated, June 2011: AADLv1 no longer supported.
# Updated, June 2011: AADLv1 no longer supported.
bAADLv2
=
True
bAADLv2
=
True
...
@@ -344,6 +347,7 @@ def main():
...
@@ -344,6 +347,7 @@ def main():
# CHOICEs, however, changed the picture... what to put in?
# CHOICEs, however, changed the picture... what to put in?
# Time to use the maximum of Native (SIZ2) and UPER (SIZE) and ACN (SIZ3)...
# Time to use the maximum of Native (SIZ2) and UPER (SIZE) and ACN (SIZ3)...
if
not
bFast
:
messageSizes
=
calculateForNativeAndASN1SCC
(
absASN1SCCpath
,
autosrc
,
asnParser
.
g_names
,
inputFiles
)
messageSizes
=
calculateForNativeAndASN1SCC
(
absASN1SCCpath
,
autosrc
,
asnParser
.
g_names
,
inputFiles
)
for
nodeTypename
in
list
(
messageSizes
.
keys
()):
for
nodeTypename
in
list
(
messageSizes
.
keys
()):
messageSizes
[
nodeTypename
]
=
[
messageSizes
[
nodeTypename
],
(
8
*
(
int
((
messageSizes
[
nodeTypename
]
-
1
)
/
8
))
+
8
)]
messageSizes
[
nodeTypename
]
=
[
messageSizes
[
nodeTypename
],
(
8
*
(
int
((
messageSizes
[
nodeTypename
]
-
1
)
/
8
))
+
8
)]
...
@@ -421,6 +425,7 @@ end Stream_Element_Buffer;
...
@@ -421,6 +425,7 @@ end Stream_Element_Buffer;
o
.
write
(
' Deployment::ASN1_Module_Name => "%s";
\n
'
%
g_AdaPackageNameOfType
[
asnTypename
].
replace
(
'_'
,
'-'
))
o
.
write
(
' Deployment::ASN1_Module_Name => "%s";
\n
'
%
g_AdaPackageNameOfType
[
asnTypename
].
replace
(
'_'
,
'-'
))
if
os
.
getenv
(
'UPD'
)
is
None
:
if
os
.
getenv
(
'UPD'
)
is
None
:
o
.
write
(
' Source_Language => (ASN1);
\n
'
)
o
.
write
(
' Source_Language => (ASN1);
\n
'
)
if
not
bFast
:
o
.
write
(
' -- Size of a buffer to cover all forms of message representation:
\n
'
)
o
.
write
(
' -- Size of a buffer to cover all forms of message representation:
\n
'
)
le_size
=
0
if
asnTypename
not
in
messageSizes
else
messageSizes
[
asnTypename
][
0
]
le_size
=
0
if
asnTypename
not
in
messageSizes
else
messageSizes
[
asnTypename
][
0
]
o
.
write
(
' -- Real message size is %d; suggested aligned message buffer is...
\n
'
%
le_size
)
o
.
write
(
' -- Real message size is %d; suggested aligned message buffer is...
\n
'
%
le_size
)
...
...
setup.py
View file @
fecfdb2d
...
@@ -11,7 +11,7 @@ from setuptools import setup, find_packages
...
@@ -11,7 +11,7 @@ from setuptools import setup, find_packages
setup
(
setup
(
name
=
'dmt'
,
name
=
'dmt'
,
version
=
"2.1.4
1
"
,
version
=
"2.1.4
2
"
,
packages
=
find_packages
(),
packages
=
find_packages
(),
author
=
'Thanassis Tsiodras'
,
author
=
'Thanassis Tsiodras'
,
author_email
=
'Thanassis.Tsiodras@esa.int'
,
author_email
=
'Thanassis.Tsiodras@esa.int'
,
...
...
Write
Preview
Supports
Markdown
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