[Tinycc-devel] rv32 support in tcc

2022-02-27 Thread Sagar Acharya via Tinycc-devel
Hello folks, I saw tcc and there are a few riscv64 files in the project. README states that they would be used for compiling on a riscv64 system. I need a compiler that could compile for riscv32. Can tinycc do that currently? If not, are there any plans to introduce rv32 compilation? Thanks

Re: [Tinycc-devel] ReĀ : Lock-free tcc

2023-09-13 Thread Sagar Acharya via Tinycc-devel
+1. This term "toy compiler" is an offensive term. It belittles people who write small compilers whichare objectively superior to big compilers. If 2 lines of code gets the same result as 200lines of code, the latter isn't that of an expert but of an oversmart fool! tcc is amazing and I agree

[Tinycc-devel] Building for rv32

2023-01-14 Thread Sagar Acharya via Tinycc-devel
I do see rv64 code in tcc's repo. Can tcc also be built for rv32. There seem to be some variables pointing to 32 bit within tcc files? Thanking you Sagar Acharya ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org

[Tinycc-devel] Can't build for riscv64 or arm64

2023-02-02 Thread Sagar Acharya via Tinycc-devel
Dear folks, I am unable to build tcc for riscv64 cpu. I get an error in bcheck.c:1077: warning: implicit declaration of function '__ctype_b_loc' error: pointer expected Any help in appreciated. Thanks. Thanking you Sagar Acharya https://designman.org

[Tinycc-devel] How do I build it?

2023-02-05 Thread Sagar Acharya via Tinycc-devel
I do not want to tamper with system's gcc. I'm on voidlinux musl based on RPI3 aarch64. How do I solve building this? Also, isn't there an issue with having 2 signal.h files? Thanking you Sagar Acharya https://designman.org ___ Tinycc-devel mailing

Re: [Tinycc-devel] How do I build it?

2023-02-05 Thread Sagar Acharya via Tinycc-devel
Is there a way to fetch a certain version of musl and build it first and then use it for building? Thanking you Sagar Acharya https://designman.org 5 Feb 2023, 23:14 by tinycc-devel@nongnu.org: > I do not want to tamper with system's gcc. > > I'm on voidlinux musl based on RPI3 aarch64. > >

[Tinycc-devel] Cross compiling for riscv64 on arm64

2023-02-06 Thread Sagar Acharya via Tinycc-devel
I built an older commit successfully for --config-musl Can you help me with how to build tcc on arm64 to cross-compile a program for riscv64? Thanking you Sagar Acharya https://designman.org ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org

Re: [Tinycc-devel] Cross compiling for riscv64 on arm64

2023-02-06 Thread Sagar Acharya via Tinycc-devel
I built a cross-compiler with ./configure --config-musl make cross-riscv64 On using the built riscv64-tcc to compile, I get, tcc: error: file 'crt1.o' not found tcc: error: file 'crti.o' not found error: include file 'stdint.h' not found Please help. Thanking you Sagar Acharya 6 Feb 2023,

Re: [Tinycc-devel] Cross compiling for riscv64 on arm64

2023-02-07 Thread Sagar Acharya via Tinycc-devel
musl isn't compiled for riscv64. I tried to compile musl-1.2.3 with cd musl-1.2.3 ./configure --target=riscv64 CC=riscv64-tcc make It shows an error which has asm module __asm__(); I think current riscv64 cross compiler doesn't support asm. Is riscv64-asm.c for physical hardware based on

Re: [Tinycc-devel] Cross compiling for riscv64 on arm64

2023-02-10 Thread Sagar Acharya via Tinycc-devel
I have this feature request. Can you please add asm support for riscv64 cross compiler built on arm64? Thanking you Sagar Acharya https://designman.org 7 Feb 2023, 21:22 by sagaracha...@tutanota.com: > musl isn't compiled for riscv64. I tried to compile musl-1.2.3 with > > cd musl-1.2.3 >

[Tinycc-devel] Code to cross compile

2023-02-14 Thread Sagar Acharya via Tinycc-devel
Folks, I'm sure most of you have an aarch64 or arm64 system. Help me out here with a small Hello World blinking LED C program which can be cross-compiled for FPGA based riscv64 core. I have pointed out the errors I face and I'm quite stuck. I tried compiling gcc but it has 4200 lines of

[Tinycc-devel] FWD: Can't build for riscv64 or arm64

2023-02-02 Thread Sagar Acharya via Tinycc-devel
After make clean I configured with --cpu=riscv64 --config-musl On make, I get the following error, There are 2 signal.h files, one in /usr/include/ and /usr/include/bits/ When building lib/bt-exe.c , it imports ../tccrun.c Which throws error /usr/include/bits/signal.h:14: error ';' expected

Re: [Tinycc-devel] Calling for Release 0.10.0

2023-05-31 Thread Sagar Acharya via Tinycc-devel
Tinycc is no "toy compiler". Let us not assign such names please. A small compiler is always superior to a big compiler. As long as tinycc generates least number of instructions being reasonably good doing so, it is a full fledged minimal compiler. In my view, it should keep updated with

[Tinycc-devel] Error in latest mob on aarch64-musl build

2023-07-24 Thread Sagar Acharya via Tinycc-devel
I'm building tcc on voidlinux with gcc as below ./configure --config-musl make On 'make test' +In file included from 124_atomic_counter.c:3: +In file included from /usr/include/stdlib.h:19: +/usr/include/bits/alltypes.h:18: error: incompatible redefinition of 'wchar_t' make[3]: ***

[Tinycc-devel] bcheck:1075-1077 on arm32

2023-06-28 Thread Sagar Acharya via Tinycc-devel
I'm facing this error while building latest master with gcc on armv7 alpine linux. ../tcc -c bcheck.c -o ../bcheck.o -B.. -I.. -g bcheck.c:1075: warning: implicit declaration of function '__ctype_b_loc' bcheck.c:1077: error: pointer expected make[1]: *** [Makefile:85: ../bcheck.o] Error 1