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
+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
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
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
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
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.
>
>
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
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,
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
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
>
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
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
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
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]: ***
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
15 matches
Mail list logo