|
From: | Christian Jullien |
Subject: | Re: [Tinycc-devel] Building TCC statically |
Date: | Fri, 24 Feb 2017 06:36:24 +0100 |
Tony, I’m not quite sure to understand. tcc.exe, as it is built from Cygwin+Mafile IS a truly standalone binary. You can copy this binary alone anywhere and you’ll be able to run it: F:\>tcc -v tcc version 0.9.27 (x86_64 Windows) However, as any C compiler I know, you also need to get access to all *.h that your program includes. Of course, when your C files are compiled, you also need to link with C libraries found in .a This is true for VisualC and gcc for example that have many .h and .lib/.a C. From: Tinycc-devel [mailto:address@hidden On Behalf Of Tony Papadimitriou Hmm, I’ve been thinking whether the related libtcc1.a (32-bit or 64-bit, depending) could also be part of the single stand-alone executable? This would make a compiler that is truly self-contained in a single portable executable, right? From: Christian Jullien Sent: Sunday, February 12, 2017 6:42 PM To: address@hidden Subject: Re: [Tinycc-devel] Building TCC statically The win32/Makefile I pushed today build standalone binaries that require no runtime. You need a working Cygwin toolchain to bootstrap them. Christian From: Tinycc-devel [mailto:address@hidden] On Behalf Of Tony Papadimitriou Hi, Is is possible to build TCC statically (no LIBTCC.DLL dependency) for Windows so that I have a single stand-alone executable of tcc.exe? If so, please tell me how. Thank you. _______________________________________________ |
[Prev in Thread] | Current Thread | [Next in Thread] |