9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] riscv toolchain update
@ 2020-11-09 16:34 Richard Miller
  2020-11-13 23:26 ` Pouya Tafti
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Miller @ 2020-11-09 16:34 UTC (permalink / raw)
  To: 9fans

There's an updated RISC-V compiler (plus assembler, linker, libmach and
other library additions, etc) in contrib/miller/riscv.tar on 9p.io 

The original release was just for the simple rv32i instruction set. It's now
expanded to full rv32gc and rv64gc support, including floating point (single
and double) and compressed instructions. Instruction compression is done
automatically by default in the linker; use the option '-c' if you want to
disable it. (Compressed instructions generally run faster in hardware but
slower in emulation.)

Because of a collision with my original choice of architecture letter, it's
been changed to 'i' for riscv and 'j' for riscv32. This does unfortunately
introduce a new collision: suffix '.i' was used historically for some firmware
files (etherm10g[24]k.i, sd53c8xx.i and uartaxp.i) in the pc kernel. These
will be erroneously identified as object files after the riscv update, so
'mk clean' in /sys/src/9/pc would delete them. The files are actually C
source code referenced in #include statements, so a straightforward solution
is to rename them from '.i' to '.h', and apply patch/pc-rename-i-suffix on 9p.io
which will correct the relevant #include statements.


------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T4943bad991203d32-Md8b063389a49362009cdea13
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9fans] riscv toolchain update
  2020-11-09 16:34 [9fans] riscv toolchain update Richard Miller
@ 2020-11-13 23:26 ` Pouya Tafti
  0 siblings, 0 replies; 2+ messages in thread
From: Pouya Tafti @ 2020-11-13 23:26 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 930 bytes --]



On Mon, 9 Nov 2020, at 17:34, Richard Miller wrote:
> There's an updated RISC-V compiler (plus assembler, linker, libmach and
> other library additions, etc) in contrib/miller/riscv.tar on 9p.io 
> 
> The original release was just for the simple rv32i instruction set. It's now
> expanded to full rv32gc and rv64gc support, including floating point (single
> and double) and compressed instructions. Instruction compression is done
> automatically by default in the linker; use the option '-c' if you want to
> disable it. (Compressed instructions generally run faster in hardware but
> slower in emulation.)

This is fantastic!  Thank you!  I look forward to trying them out.

Pouya

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T4943bad991203d32-Mcb0a847b4ee967ebe546d4b1
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[-- Attachment #2: Type: text/html, Size: 1815 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-13 23:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-09 16:34 [9fans] riscv toolchain update Richard Miller
2020-11-13 23:26 ` Pouya Tafti

9fans - fans of the OS Plan 9 from Bell Labs

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/9fans

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 9fans 9fans/ http://inbox.vuxu.org/9fans \
		9fans@9fans.net
	public-inbox-index 9fans

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.9fans


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git