LCC based RV32I ANSI C compiler toolchain

299 views
Skip to first unread message

Michg

unread,
Mar 5, 2017, 2:23:13 PM3/5/17
to RISC-V SW Dev
Hello RISCV-community,
I would like to inform about a standalone C compiler toolchain, based on the LCC-compiler (https://github.com/drh/lcc).
The toolchain includes a RV32I backend for LCC and also an assembler and a linker. The toolchain can standalone generate machine code
without using gnu binutils. A libc library is provided and also support for single precision floating point emulation. Testcases executed as verilog
simulations running on picorv32 (https://github.com/cliffordwolf/picorv32) are included.
The sources are available at:
https://github.com/michg/riscv32_lcc
Usage, feedback, contribution are welcome (with increasing appreciation).
Michael

Bruce Hoult

unread,
Mar 5, 2017, 2:49:25 PM3/5/17
to Michg, RISC-V SW Dev
Nice!

--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+unsubscribe@groups.riscv.org.
To post to this group, send email to sw-...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/sw-dev/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/08b8b8fa-1657-467b-b8fc-1b083fc2d401%40groups.riscv.org.

Sober Liu

unread,
Mar 5, 2017, 10:30:03 PM3/5/17
to Bruce Hoult, Michg, RISC-V SW Dev

I see this words from Wikipedia “products derived from LCC may not be sold”.

I am not sure what’s the expected usage for LCC?

 

From: bruce...@gmail.com [mailto:bruce...@gmail.com] On Behalf Of Bruce Hoult
Sent: Monday, March 06, 2017 3:49 AM
To: Michg
Cc: RISC-V SW Dev
Subject: Re: [sw-dev] LCC based RV32I ANSI C compiler toolchain

 

Nice!

On Sun, Mar 5, 2017 at 10:23 PM, Michg <michae...@gmx.de> wrote:

Hello RISCV-community,
I would like to inform about a standalone C compiler toolchain, based on the LCC-compiler (https://github.com/drh/lcc).
The toolchain includes a RV32I backend for LCC and also an assembler and a linker. The toolchain can standalone generate machine code
without using gnu binutils. A libc library is provided and also support for single precision floating point emulation. Testcases executed as verilog
simulations running on picorv32 (https://github.com/cliffordwolf/picorv32) are included.
The sources are available at:
https://github.com/michg/riscv32_lcc
Usage, feedback, contribution are welcome (with increasing appreciation).
Michael

--

You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.

To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+un...@groups.riscv.org.

 

--

You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.

To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+un...@groups.riscv.org.


To post to this group, send email to sw-...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/sw-dev/.


This email message is for the sole use of the intended recipient(s) and may contain confidential information.  Any unauthorized review, use, disclosure or distribution is prohibited.  If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.

Tommy Murphy

unread,
Mar 6, 2017, 3:57:23 AM3/6/17
to RISC-V SW Dev, br...@hoult.org, michae...@gmx.de
On Monday, 6 March 2017 03:30:03 UTC, soberl wrote:

I see this words from Wikipedia “products derived from LCC may not be sold”.

I am not sure what’s the expected usage for LCC?


Doesn't that apply to compiler tools derived from the original LCC?
I doubt that it applies to programs compiler USING LCC? 

Michg

unread,
Mar 6, 2017, 4:19:31 PM3/6/17
to RISC-V SW Dev
The complete licence text for LCC is in the file CPYRIGHT:
https://github.com/michg/riscv32_lcc/blob/master/lcc/CPYRIGHT
The quote from Wikipedia is copied from here:
"
You may not sell lcc or any product derived from it in which it is a
significant part of the value of the product. Using the lcc front end
to build a C syntax checker is an example of this kind of product.

You may use parts of lcc in products as long as you charge for only
those components that are entirely your own and you acknowledge the use
of lcc clearly in all product documentation and distribution media..."

Sober Liu

unread,
Mar 7, 2017, 4:31:55 AM3/7/17
to Tommy Murphy, RISC-V SW Dev, br...@hoult.org, michae...@gmx.de

There could be both cases for compile binary with LCC for customers and export LCC toolchain to customers.

Anyway, let lawyers to handle that J

 

From: Tommy Murphy [mailto:tommy_...@hotmail.com]
Sent: Monday, March 06, 2017 4:57 PM
To: RISC-V SW Dev
Cc: br...@hoult.org; michae...@gmx.de
Subject: Re: [sw-dev] LCC based RV32I ANSI C compiler toolchain

 

On Monday, 6 March 2017 03:30:03 UTC, soberl wrote:

--

You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+un...@groups.riscv.org.
To post to this group, send email to sw-...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/sw-dev/.

Reply all
Reply to author
Forward
0 new messages