[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Building Mach-O binaries/object files
From: |
Michael Matz |
Subject: |
Re: [Tinycc-devel] Building Mach-O binaries/object files |
Date: |
Thu, 2 May 2019 23:26:34 +0200 (CEST) |
User-agent: |
Alpine 2.21 (LSU 202 2017-01-01) |
Hi,
On Tue, 30 Apr 2019, Ivan Medoedov wrote:
However it's possible to "run" the C program on macOS:
tcc -run hello.c
How does this work? Is it like an emulator running ELF on macOS? Where can I
find this code?
It works because for -run no file formats enter the picture. Libraries
(like the implicit use of the C library in above hello world example) are
dealt with via dlopen, and source files are simply compiled into memory
blobs, without being written to files (and if going via intermediate .o
files they are generated as ELF files, and those are understood natively
by TCC itself).
Is it possible to use this code to build Mach-O binaries?
No.
I'd like to contribute. I think it's very important to support such a
major OS.
Contributions for supporting Mach-O would be welcome.
Ciao,
Michael.
- Re: [Tinycc-devel] Building Mach-O binaries/object files,
Michael Matz <=