From owner-freebsd-riscv@freebsd.org Tue Feb 2 14:32:47 2021 Return-Path: Delivered-To: freebsd-riscv@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DDCF0534402 for ; Tue, 2 Feb 2021 14:32:47 +0000 (UTC) (envelope-from mhorne@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DVS2l5RzRz3Mbl for ; Tue, 2 Feb 2021 14:32:47 +0000 (UTC) (envelope-from mhorne@freebsd.org) Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com [209.85.219.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: mhorne) by smtp.freebsd.org (Postfix) with ESMTPSA id AE0AD2A284 for ; Tue, 2 Feb 2021 14:32:47 +0000 (UTC) (envelope-from mhorne@freebsd.org) Received: by mail-yb1-f178.google.com with SMTP id v123so4617677yba.13 for ; Tue, 02 Feb 2021 06:32:47 -0800 (PST) X-Gm-Message-State: AOAM530FcvK2DO7TykjbZnWVSXTzPZ+vvOdKB87kGRpe4wudo+KPq5dM jHHj5SpFat9Fx8h9ylAYHdEB9sdG05OeaYPliPg= X-Google-Smtp-Source: ABdhPJzAFotoeYofD7wdO/nhoQFQUpzsmxJbdCXdA98lJ7gBhe2KNMt4iU2ijabO02pu9NPaKEsqjPe1PesnadSRWEw= X-Received: by 2002:a25:3345:: with SMTP id z66mr33099839ybz.466.1612276367338; Tue, 02 Feb 2021 06:32:47 -0800 (PST) MIME-Version: 1.0 References: <4df37f7e-6ce8-7a48-7e48-1524c09a9065@smallcatbrain.com> In-Reply-To: <4df37f7e-6ce8-7a48-7e48-1524c09a9065@smallcatbrain.com> From: Mitchell Horne Date: Tue, 2 Feb 2021 10:32:36 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: assembler like nasm? To: Rich Dunkle Cc: freebsd-riscv Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-riscv@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: FreeBSD on the RISC-V instruction set architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Feb 2021 14:32:47 -0000 On Thu, Jan 28, 2021 at 2:38 AM Rich Dunkle 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@riscv64_none_elf). Cheers, Mitchell > _______________________________________________ > freebsd-riscv@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-riscv > To unsubscribe, send any mail to "freebsd-riscv-unsubscribe@freebsd.org"