miracl / MIRACL

MIRACL Cryptographic SDK: Multiprecision Integer and Rational Arithmetic Cryptographic Library is a C software library that is widely regarded by developers as the gold standard open source SDK for elliptic curve cryptography (ECC).
https://miracl.com
652 stars 242 forks source link

The issue about assembling mrmuldv.c #120

Open mtxd-cmd opened 1 year ago

mtxd-cmd commented 1 year ago

When I use riscv-nulei-elf-gcc to assemble the mrmuldv,compiler does not recognize instructions and syntax in assembly code.

1686551904083
mcarrickscott commented 1 year ago

Well no, its Intel x86 assembly language, not RISC-V assembly language.

So you either need to write a version of mrmuldv.s in RISC-V assembly language, or else use the C version mrmuldv.ccc

Mike

On Mon, Jun 12, 2023 at 10:39 AM mtxd-cmd @.***> wrote:

When I use riscv-nulei-elf-gcc to assemble the mrmuldv,compiler does not recognize instructions and syntax in assembly code. [image: 1686551904083] https://user-images.githubusercontent.com/82493292/245052435-999fb4eb-1113-4393-93de-7b48ded733fa.png

— Reply to this email directly, view it on GitHub https://github.com/miracl/MIRACL/issues/120, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAU3ZDWEB43VUVJQFIZFDZLXK22QRANCNFSM6AAAAAAZC42JSM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

mtxd-cmd commented 1 year ago

I have tried to assembly mrmuldv.ccc, it still have problem. Now, I want to ask if I write mumrldv.c in risc-v assembly language ,do I need to use inline assembly? Thanks!