delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2026/09/24/09:29:27

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 68ODTR3Z3539390
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 68ODTR3Z3539390
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=kb/jTWMt
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6E2A64BAE7D9
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1790256549;
bh=9Tle2XUHoZWfHimKcDzHa2qssOlc+bqkiyDiMJ9Af2g=;
h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=kb/jTWMtziH6aJDDQOAhj0JSdmDgd0n7VSwOrbDmnOrRMlAEXxgcQ7Gm2OCwTxl7a
/6OpM6OeTaA4tGSpmB45UEUZasS3IlfQSk5AlAlBUP8XJxInOCl51ace+StRDQMx2b
iyeh3dZ0hodaNizPFPiibgHZ37ELXyEuqIrwFvyg=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 303884BB1C0B
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 303884BB1C0B
ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1790256529; cv=pass;
b=Pyla77Tk8eIoLBSXPVBCSLMSKzfyDLGLijpLasQhYXIhE6v2WNtkqxrg38ymKmeaXUvLiHBrkoFtZpIXNgDm2S51EMal3DZSQF7LH/49xJxLSSsEPfBJooG26fPZUi6S1m/Dt6PTjwNGr8SbgeKF48i/GVLl1anaN6QQT7DSTqw=
ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key;
t=1790256529; c=relaxed/simple;
bh=a5+9J6DDTtT820ewbN0uqUGBXQfwLcyi7KoDiH2RTqk=;
h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
b=ie/yhY2r91OPEjiE70YiwBelRYEBCvSHi8dGn1nGm1k/dFBTSY+dY1/StaFKbSOW1z4imM42nueZkX6zWkM52BxO2uVXNaTI1HhGQvGcvIWh31SNVPSgvj4YnkFjE77IPMyWYzkVwCgYiqlOw8pLXWzrBR9YxTxmcm2CjAN5O5M=
ARC-Authentication-Results: i=2; sourceware.org;
dkim=pass (2048-bit key, unprotected)
header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104
header.b=ZBKP5zFb
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 303884BB1C0B
ARC-Seal: i=1; a=rsa-sha256; t=1790256528; cv=none;
d=google.com; s=arc-20260327;
b=MMsuC4dm60jpq1ibl5p7Fj+t/Nvy7TwwoIzzJbc0gB190mkmG58x0HqYu2wQBdcWnp
/Vgg3DQI2XXNIT3r6C+eE7ReC2VnOe2B48A3f/bSxHu230koAHDYXuIaWjR+yYqTPVda
CQeii/L5ezea2fIloRDkcPqWHBK+Wnm9xc9euTOZ5sqbteJZPYBEWB9UWLsJe8or9f9V
yvSnJ+Gdv7GcKRqFMFT87PjtAw2E2b/1GOaaNk5LxBNbQHYEbf0s2v/ysvcp0aVcfxqy
Mf1LXnt+cMFQkmjOxd7hkVuIjZfHMVXw+N3JSSxXV7KowosSpH5irzHLnECw4AFwelWa
6XGw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20260327;
h=to:subject:message-id:date:from:mime-version:dkim-signature;
bh=a5+9J6DDTtT820ewbN0uqUGBXQfwLcyi7KoDiH2RTqk=;
fh=UKNFaOBO97U3RYl3PEse//nArTqr7SLJjCCEBz281Ew=;
b=RnjxC4AsnfHmUad1Tacg2ENrC6m9WrZn6e1645bgAcVDFBAVgdQWobvJKxXTSaI0Op
WDFr/VfdnFAa5hTTys80wLgh7NSnO0UVA+ILWeTOABH+rsSJGsM+ksyrIFkxYJewbKaS
eolnkfxFkES5FobUZsPSJ+EOFoGrq1AmPUSYdO15O9w4ZpW0shHq+z/2I9Wu4yT9O1da
XEpDD33uGAwj6zyBylZ5YSwayinEqK63rkmIJViPjcOMX/28Cg2ATIPRh04TdzdCROxk
PagNjS2JzBT9zZQlsiByvDRIKClhQGZ9sJ1LGS9o9IT+Ny03CxPcA+zgIHFSb2SMfEZP
OMaw==; darn=cygwin.com
ARC-Authentication-Results: i=1; mx.google.com; arc=none
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1790256528; x=1790861328;
h=content-type:to:subject:message-id:date:from:mime-version:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=a5+9J6DDTtT820ewbN0uqUGBXQfwLcyi7KoDiH2RTqk=;
b=i/MYHf/vERvzrsKzjZqUGCg1gQ98j37kcKT0U1WF5bL6ymtJoebgyM6mK8n89nCG3s
83TxC9ac3WsQ+6cCJrs0PYiJ1PL/wD/uDzQ0aBts3P9YdRxN6AI8H7gTj/o2pPI4S54y
pJAyTNXdwSWkOJXNPBEc+bPFgM/GSdJk5zOdmORYumVvJYp26jfk67qLFogK5//Kpf6u
MQjiMqPqUr8mnl1fTuBD/tg5ICjS4mufMPzAKYMvggwTlOm8eKmq6Yaxx1R8lybQFOay
ylO92fsKIG6r/5Vi0uxUE7I0GNcObvVzxvv5HH1zamfQFQKrYcM8BGKxJqrFWFSXmAIX
9WYw==
X-Gm-Message-State: AFuF++lGe61mKRF9kiIzT6m6vA83xALe0qTHK76k6rwQr4DcJnDnrvsn
fVxofVyoUKgPvmMi3T0YppBM6LeBjj3Mxqq89DhsHWfk2BmZBBoq36g/Xv+3taGRNZzC1Vd4zos
1CDnG/amUi47hnQMHAXqBgHy3WIT/xI8NBTg03zb+tQ==
X-Gm-Gg: AYBFou2PYSvF4/ej7Vil/87Iph4a1keOD06n5omQ+u/DUUSFhjPNdnF3T+bJCQcni+T
9T+Bjr1F8elqpH9xs64m9D/G+DGYqn0VDpU2gNBxxQE/jaBYm13lmi3fi2tfty3iGCsUNzIVwOa
n/QR9zd3vdJonZ4GrW5ufGjTjHRPscgIpKFLZXZP6ap8n7dY9XEjVxg3Wdzfq87/6YBxdTjlGY9
KATMozSgxJFMzc6xz01/tm1mRgCJJv/MvM+KXB2PQ06f50p7NYxlYCNkFpTs9l0VuWNFNRlaJK+
KIcYdycBaCAL9dcoyPltQHYyTxQvl7Avm530AZBi3wwKSJgn9Ha6JA==
X-Received: by 2002:a17:906:6a23:b0:c29:6c88:1213 with SMTP id
a640c23a62f3a-c2ac23dbdeamr215626366b.8.1790256527794; Thu, 24 Sep 2026
06:28:47 -0700 (PDT)
MIME-Version: 1.0
Date: Thu, 24 Sep 2026 15:28:34 +0200
X-Gm-Features: AclHuK_o4Cc5JScOyCZteBjhrdLXIUzn83p__WKUGYNugSsSBxxmugu6yG_6Ln8
Message-ID: <CADoX+a8sOuUDNKWbJRZn8TOHTx+383hLwnVnOZN-ca22v7mUaQ@mail.gmail.com>
Subject: =?UTF-8?Q?TCCygwin_=E2=80=94_TinyCC_port_targeting_the_Cygwin_runtim?=
=?UTF-8?Q?e?=
To: cygwin AT cygwin DOT com
X-Content-Filtered-By: Mailman/MimeDel 2.1.30
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: =?utf-8?q?Przemys=C5=82aw_Korcik_via_Cygwin?= <cygwin AT cygwin DOT com>
Reply-To: =?UTF-8?Q?Przemys=C5=82aw_Korcik?= <p DOT korcik AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

Hi Cygwin Community,

I would like to share a project I have been working on: **TCCygwin**, a
port of the Tiny C Compiler (TCC) targeting the Cygwin runtime.

Project: https://github.com/Muras69/TCCygwin

The interesting part is that TCC is able to produce native Cygwin
executables linked against `cygwin1.dll`, while keeping the compiler itself
extremely small and portable.

Some results so far:

* Fully self-hosting through a 4-stage native bootstrap process.
* Works with substantial Cygwin/Newlib header trees, including
`<unistd.h>`, `<signal.h>`, and `<pthread.h>`.
* Tested POSIX functionality includes `fork()`, `wait()`, anonymous pipes,
and `pthread_mutex_timedlock()`.
* Generates small Cygwin executables, with examples around **9 KB**.
* The complete compiler package is approximately **2 MB** unpacked.
* No traditional compiler installation is required for the resulting
portable package.

The project currently follows the latest bleeding-edge commits from TCC's
`mob` branch.

I found the interaction between TCC's compiler/runtime assumptions and the
Cygwin/Newlib header and library environment particularly interesting.
Getting the compiler to bootstrap itself under Cygwin was also an important
milestone.

I am sharing this mainly to get feedback from people familiar with Cygwin
and POSIX compatibility on Windows. I would be interested in hearing
whether this could be useful for lightweight C development, testing,
experimentation, or other Cygwin-related use cases.

Feedback and technical suggestions are very welcome.

Best regards,
Muras

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2026   by DJ Delorie     Updated Sep 20 2026