[PATCH] wireguard-tools: allow compiling with MIPS16 instructions
Jason A. Donenfeld
Jason at zx2c4.com
Fri Jul 24 04:12:46 EDT 2020
On Fri, Jul 24, 2020 at 10:03 AM Rui Salvaterra <rsalvaterra at gmail.com> wrote:
>
> The wg utility compiles and runs without issues in MIPS16 mode, despite setting
> PKG_USE_MIPS16:=0 in the makefile. Let's remove this, allowing for a substantial
> size reduction of the wg executable. Since wg is a just a configuration utility,
> it shouldn't be performance-critical, as the crypto heavy-lifting is done on the
> kernel side.
>
> wg sizes for both modes:
>
> MIPS32: 64309 bytes
> MIPS16: 42501 bytes
Seems probably fine to me, but would you let me know if the
performance of `wg pubkey` suffers as a result? I'm far from home at
the moment without any access to MIPS hardware to test myself.
Jason
More information about the openwrt-devel
mailing list