Re: [Tinycc-devel] Compile Libbtc for Apple M1 with tcc

2022-01-10 Thread Niklas Rosencrantz
Thank you. I'll try it a.s.a.p. The reason I don't try the change immediately is that I use my own experimental branch of TCC on my Apple M1. I installed it on the system for educational purposes. It might work to do ./configure CC=/tmp/path_to_mod_tcc/tcc but I didn't try to install several vers

Re: [Tinycc-devel] Re : Compile Libbtc for Apple M1 with tcc

2022-01-10 Thread Christian Jullien
Hi, tcc port on Apple M1 is not too bad as long as you accept it generates code for x86_64 which is then translated by rosetta. That said, your problem is that tcc does not define __LITTLE_ENDIAN__ as gcc does jullien@mobley:~ $ tcc -dM -E - < /dev/null | grep END | sort #define __BYTE_ORDER__

[Tinycc-devel] Re : Compile Libbtc for Apple M1 with tcc

2022-01-10 Thread david . koch
Hi, the M1 chip is an ARM64 processor, not a x86_64 one. Perhaps the ARM support of TCC is not up to par with its x86 counterpart. Good luck anyway. Regards. - Mail d'origine - De: Niklas Rosencrantz À: tinycc-devel@nongnu.org Envoyé: Mon, 10 Jan 2022 23:49:04 +0100 (CET) Objet: [Tinyc

[Tinycc-devel] Compile Libbtc for Apple M1 with tcc

2022-01-10 Thread Niklas Rosencrantz
Hello, Trying to compile Libbtc for Apple M1 with tcc. It worked with an Apple Intel machine and setting CC=tcc. Since tcc can build it on the Intel with macOS I try ask here if you might know the cause of the failure. With the Apple M1 the following message comes from make In file included from