Skip to content
Snippets Groups Projects
Commit 8c4130e4 authored by Niels Möller's avatar Niels Möller
Browse files

Decimal output from list-obj-sizes.

parent 06fe7d83
No related branches found
No related tags found
No related merge requests found
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> 2012-04-18 Niels Möller <nisse@lysator.liu.se>
* x86_64/salsa20-crypt.asm: New file. * x86_64/salsa20-crypt.asm: New file.
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# #
# objdump -h libnettle.a # objdump -h libnettle.a
function hex2int (hex) { function hex2int (hex, n, i) {
n = 0; n = 0;
hex = tolower(hex); hex = tolower(hex);
for (i = 1; i<=length(hex); i++) for (i = 1; i<=length(hex); i++)
...@@ -18,7 +18,7 @@ function hex2int (hex) { ...@@ -18,7 +18,7 @@ function hex2int (hex) {
function output () { function output () {
if (name) if (name)
{ {
printf "%25s %6x %6x %6x\n", name, text_size, data_size, rodata_size; printf "%25s %6d %6d %6d\n", name, text_size, data_size, rodata_size;
text_total += text_size; text_total += text_size;
data_total += data_size; data_total += data_size;
rodata_total += rodata_size; rodata_total += rodata_size;
...@@ -63,5 +63,5 @@ BEGIN { ...@@ -63,5 +63,5 @@ BEGIN {
END { END {
output(); output();
printf "%25s %6x %6x %6x\n", "TOTAL", text_total, data_total, rodata_total; printf "%25s %6d %6d %6d\n", "TOTAL", text_total, data_total, rodata_total;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment