tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Building TCC statically


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
Sent: jeudi 23 février 2017 15:27
To: address@hidden
Subject: Re: [Tinycc-devel] Building TCC statically

 

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?

 

Sent: Sunday, February 12, 2017 6:42 PM

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
Sent: dimanche 12 février 2017 17:20
To: address@hidden
Subject: [Tinycc-devel] Building TCC statically

 

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.


_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel


reply via email to

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