Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Nettle
nettle
Commits
8c4130e4
Commit
8c4130e4
authored
Apr 19, 2012
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Decimal output from list-obj-sizes.
parent
06fe7d83
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
ChangeLog
ChangeLog
+5
-0
list-obj-sizes.awk
list-obj-sizes.awk
+3
-3
No files found.
ChangeLog
View file @
8c4130e4
2012-04-19 Niels Möller <nisse@lysator.liu.se>
* list-obj-sizes.awk: Use decimal rather than hexadecimal output.
(hex2int): Use local variables.
2012-04-18 Niels Möller <nisse@lysator.liu.se>
* x86_64/salsa20-crypt.asm: New file.
...
...
list-obj-sizes.awk
View file @
8c4130e4
...
...
@@ -4,7 +4,7 @@
#
# objdump -h libnettle.a
function
hex2int
(
hex
)
{
function
hex2int
(
hex
,
n
,
i
)
{
n
=
0
;
hex
=
tolower
(
hex
);
for
(
i
=
1
;
i
<=
length
(
hex
);
i
++
)
...
...
@@ -18,7 +18,7 @@ function hex2int (hex) {
function
output
()
{
if
(
name
)
{
printf
"%25s %6
x
%6
x
%6
x
\n"
,
name
,
text_size
,
data_size
,
rodata_size
;
printf
"%25s %6
d
%6
d
%6
d
\n"
,
name
,
text_size
,
data_size
,
rodata_size
;
text_total
+=
text_size
;
data_total
+=
data_size
;
rodata_total
+=
rodata_size
;
...
...
@@ -63,5 +63,5 @@ BEGIN {
END
{
output
();
printf
"%25s %6
x
%6
x
%6
x
\n"
,
"TOTAL"
,
text_total
,
data_total
,
rodata_total
;
printf
"%25s %6
d
%6
d
%6
d
\n"
,
"TOTAL"
,
text_total
,
data_total
,
rodata_total
;
}
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