Hi,

 

On macOS, tcc has several limitations and it supports only x86_64 backend.

On M1, it works thanks to Rostetta translation.

You can compile tcc with a boostrapped tcc if you use –cpu=x86_64 ./configure 
flag

 

I don’t think we are too far from a native arm64 backend as we have already all 
the stuff for it but nobody is working on it AFAIK.

I’m ready to help volunteers but I have no enough knowledge on the binary forma 
to do it myself. 

 

From: Tinycc-devel [mailto:[email protected]] On 
Behalf Of Niklas Rosencrantz
Sent: Saturday, September 11, 2021 03:54
To: [email protected]
Subject: [Tinycc-devel] Can tcc compile itself with Apple M1?

 

Hello,
It worked to compile and run tcc with Apple M1 but I could not make it compile 
itself. 

I get the following error message

error: 'tcc' failed to compile conftest.c.

 % ./tcc conftest.c 

tcc: error: R_AARCH64_(JUMP|CALL)26 relocation failed (val=100001176, 
addr=1000010cc)

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to