assembler like nasm?

Mitchell Horne mhorne at freebsd.org
Tue Feb 2 14:32:47 UTC 2021


On Thu, Jan 28, 2021 at 2:38 AM Rich Dunkle <rdunkle at smallcatbrain.com> wrote:
>
> I have been working with the qemu and image for 13-CURRENT riscv64
> (20210107).  It appears to work well.  I was able to use Poudriere on
> amd64 to build shells/bash.
>
> I was wondering what program is the riscv equivalent of  nasm?
>

The version of clang included in the base system can be used to invoke
the assembler, e.g. the following should produce an object file:
$ clang -c foo.S

You could also make use of the standalone GNU assembler included in
the riscv64-none-elf-binutils package
(devel/binutils at riscv64_none_elf).

Cheers,
Mitchell



> _______________________________________________
> freebsd-riscv at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-riscv
> To unsubscribe, send any mail to "freebsd-riscv-unsubscribe at freebsd.org"


More information about the freebsd-riscv mailing list