summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkokke <spam@rowdy.dk>2014-06-03 00:09:11 +0200
committerkokke <spam@rowdy.dk>2014-06-03 00:09:11 +0200
commita50ee935e439d28294bafeaafe02ce74ade41358 (patch)
treef3168d89c4d33430c9d12e9bd868e922ada0be41
parentUpdate aes.c (diff)
downloadtiny-AES-c-a50ee935e439d28294bafeaafe02ce74ade41358.tar
tiny-AES-c-a50ee935e439d28294bafeaafe02ce74ade41358.tar.gz
tiny-AES-c-a50ee935e439d28294bafeaafe02ce74ade41358.tar.bz2
tiny-AES-c-a50ee935e439d28294bafeaafe02ce74ade41358.tar.lz
tiny-AES-c-a50ee935e439d28294bafeaafe02ce74ade41358.tar.xz
tiny-AES-c-a50ee935e439d28294bafeaafe02ce74ade41358.tar.zst
tiny-AES-c-a50ee935e439d28294bafeaafe02ce74ade41358.zip
-rw-r--r--README.md21
1 files changed, 2 insertions, 19 deletions
diff --git a/README.md b/README.md
index a3dce0a..cb1b915 100644
--- a/README.md
+++ b/README.md
@@ -13,31 +13,14 @@ I've successfully used the code on 64bit x86, 32bit ARM and 8 bit AVR platforms.
GCC size output when compiled for ARM:
- $ arm-none-eabi-gcc -Os -c aes.c -o aes.o
- $ 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
-
+ 1107 0 204 1311 51f aes.o
-Somehow, -O2 is a bit smaller than -Os with this compiler. I am using Mentor Graphics ARM toolchain:
+I am using Mentor Graphics ARM toolchain:
$ arm-none-eabi-gcc --version