mirror of
https://github.com/kokke/tiny-AES-c
synced 2024-11-22 05:21:52 +03:00
Update README.md
This commit is contained in:
parent
5c68431126
commit
cde9cf2e65
13
README.md
13
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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user