emill / x25519-cortex-m4 Goto Github PK
View Code? Open in Web Editor NEWCurve25519 for Cortex-M4 and other ARMv7
License: Other
Curve25519 for Cortex-M4 and other ARMv7
License: Other
Hi. I hope I am missing something, but here
r8
is a source register, but it was not set before this instruction. In x25519-cortex-m4-keil.s:578 r8
was set to 0.
clang doesn't like the 2-operand form of adcs/sbcs/sbc, with errors like these:
../third_party/x25519-cortex-m4/x25519-cortex-m4-gcc.s:107:2: error: invalid instruction, any one of the following would fix this:
adcs r2,r8
^
../third_party/x25519-cortex-m4/x25519-cortex-m4-gcc.s:107:12: note: too few operands for instruction
adcs r2,r8
^
../third_party/x25519-cortex-m4/x25519-cortex-m4-gcc.s:107:10: note: operand must be a register in range [r0, r7]
adcs r2,r8
^
This regex converts all 2-operand instructions to 3-operand ones, and it compiles:
perl -0777 -pe 's/(adcs|sbcs|sbc) (r\d+),([^,]+)$/$1 $2,$2,$3/gm' < x25519-cortex-m4-gcc.s > x25519-cortex-m4-clang.s
Is there an easy way to port this library to the Cortex M0+ (or ARMv6-M in general)?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.