summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkokke <spam@rowdy.dk>2014-06-02 22:35:03 +0200
committerkokke <spam@rowdy.dk>2014-06-02 22:35:03 +0200
commitcde9cf2e6507bff9c81173b11061a8b120837c79 (patch)
treef963ca21f26ab6372e0dd1ab4f6a73a7e6bc1b78
parentUpdate README.md (diff)
downloadtiny-AES-c-cde9cf2e6507bff9c81173b11061a8b120837c79.tar
tiny-AES-c-cde9cf2e6507bff9c81173b11061a8b120837c79.tar.gz
tiny-AES-c-cde9cf2e6507bff9c81173b11061a8b120837c79.tar.bz2
tiny-AES-c-cde9cf2e6507bff9c81173b11061a8b120837c79.tar.lz
tiny-AES-c-cde9cf2e6507bff9c81173b11061a8b120837c79.tar.xz
tiny-AES-c-cde9cf2e6507bff9c81173b11061a8b120837c79.tar.zst
tiny-AES-c-cde9cf2e6507bff9c81173b11061a8b120837c79.zip
-rw-r--r--README.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/README.md b/README.md
index 0076869..a3dce0a 100644
--- a/README.md
+++ b/README.md
@@ -17,12 +17,25 @@ GCC size output when compiled for ARM:
$ size aes.o
text data bss dec hex filename
1079 0 204 1283 503 aes.o
+
$ arm-none-eabi-gcc -O2 -c aes.c -o aes.o
$ size aes.o
text data bss dec hex filename
1024 0 204 1228 4cc aes.o
+And if we're compiling for the Thumb ISA:
+
+ $ arm-none-eabi-gcc -O2 -c -mthumb aes.c -o aes.o
+ $ size aes.o
+ text data bss dec hex filename
+ 856 0 204 1060 424 aes.o
+ $ arm-none-eabi-gcc -Os -c -mthumb aes.c -o aes.o
+ $ size aes.o
+ text data bss dec hex filename
+ 867 0 204 1071 42f aes.o
+
+
Somehow, -O2 is a bit smaller than -Os with this compiler. I am using Mentor Graphics ARM toolchain: