[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] apple support

From: Christian Jullien
Subject: Re: [Tinycc-devel] apple support
Date: Fri, 25 Nov 2022 15:56:23 +0100

Herman, you've done an incredible job to make this happen.
Thank you very much for your time and your patience.

Let me precise that, macOS arm64 still supports --cpu=x86_64 and runs 
flawlessly the whole test suite.
Funny, on benchmarks made on my Ventura M1 machine, I see no significant 
differences between x86_64+Rosetta or native arm64.

I tested Herman's commit with the 5 following config on my Ventura M1, no error 
at all running the test suite!! This is rock solid

./configure --cpu=x86_64 --dwarf=5 --config-new_macho --config-codesign 
--cc=clang --prefix=/usr/local
./configure --cpu=x86_64 --dwarf=5 --config-new_macho --config-codesign 
--cc=clang --disable-static --prefix=/Users/jullien/tinycc/shared
./configure --dwarf=5 --config-new_macho --config-codesign --cc=clang 
./configure --dwarf=5 --config-new_macho --config-codesign --cc=clang 
--disable-static --prefix=/Users/jullien/tinycc/shared
./configure --dwarf=5 --config-new_macho --config-codesign --cc=tcc 

I would like to give ***** (five starts) to Herman.


-----Original Message-----
From: tinycc-devel-bounces+eligis=orange.fr@nongnu.org 
[mailto:tinycc-devel-bounces+eligis=orange.fr@nongnu.org] On Behalf Of Herman 
ten Brugge via Tinycc-devel
Sent: Friday, November 25, 2022 14:08
To: tinycc-devel
Cc: Herman ten Brugge
Subject: [Tinycc-devel] apple support

I recently added code to allow the apple m1 to work.

First I implemented the older apple code with position independent 
After that I implemented the newer macos code.

The old code is the default.
The new code can be selected with configure option '--config-new_macho'.
I suspect that after some time the old code is not needed any more because
every one has swicthed to the new code and then the old code and this
option can be removed.

For support of apple 13.0 (Ventura) I needed to add another option 
This was needed because on this target executables needs to be signed.
This is done by running 'codesign -f -s - executeble' after it is created.

The code now runs fine at least on x86_64(10.6, 13.0) and arm64(12.3,13.0).

Tinycc-devel mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]