Merged
Conversation
Pure and inline ASM for the PowerPC 32-bit.
04a7498 to
c39f1fe
Compare
Contributor
Author
|
retest this please |
Slower but smaller SHA-256 assembly code implementation enabled with: WOLFSSL_PPC32_ASM_SMALL. (--enable-ppc32=small or --enable-ppc32=inline,small)
Contributor
Author
|
libspdm failing as https://git.cryptomilk.org/ not available. |
Contributor
Author
|
retest this please PRB-single-flag.txt_25: java.io.StreamCorruptedException: invalid stream header |
dgarske
approved these changes
Jun 20, 2025
Contributor
There was a problem hiding this comment.
Code Size Comparison
| Configuration | Text | Data | BSS | Total (Dec) | Total (Hex) | Filename |
|---|---|---|---|---|---|---|
| c (-Os) | 41,555 | 116 | 5,172 | 46,843 | b6fb | wolfboot.elf |
| cslow | 40,919 | 116 | 5,168 | 46,203 | b47b | wolfboot.elf |
| ppc-asm-small | 43,247 | 116 | 5,176 | 48,539 | bd9b | wolfboot.elf |
| ppc-asm | 44,655 | 116 | 5,176 | 49,947 | c31b | wolfboot.elf |
SHA2-256 Performance Result (hashing 3,170,724 bytes)
Benchmarking on Freescale/NXP P1021 e500v2 at 800MHz
| Configuration | Time (ms) | Throughput (KB/sec) |
|---|---|---|
| c -Os | 124 | 24,970 |
| c -O2 | 121 | 25,590 |
| cslow | 240 | 12,902 |
| ppcasm-small | 118 | 26,242 |
| ppcasm | 110 | 28,148 |
Note: cslow = USE_SLOW_SHA256
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Pure and inline ASM for the PowerPC 32-bit.
Testing
./autogen.sh
./configure --disable-shared LDFLAGS=--static --host=powerpc CC=powerpc-linux-gnu-gcc --enable-ppc32-asm
./configure --disable-shared LDFLAGS=--static --host=powerpc CC=powerpc-linux-gnu-gcc --enable-ppc32-asm=inline
Checklist