Tiny CC [Was: svn commit: samba r5437 - in
branches/SAMBA_4_0/source: build/smb_build lib/events
libcli/auth rpc_server rpc_server/samr]
Christopher R. Hertel
crh at ubiqx.mn.org
Fri Feb 18 04:07:14 GMT 2005
On Fri, Feb 18, 2005 at 01:00:09AM +0100, Jelmer Vernooij wrote:
> On Thu, Feb 17, 2005 at 05:31:57PM -0600, Christopher R. Hertel wrote about 'Tiny CC [Was: svn commit: samba r5437 - in branches/SAMBA_4_0/source: build/smb_build lib/events libcli/auth rpc_server rpc_server/samr]':
> > On Thu, Feb 17, 2005 at 11:11:26PM +0000, jelmer at samba.org wrote:
> > > Author: jelmer
> > > Date: 2005-02-17 23:11:26 +0000 (Thu, 17 Feb 2005)
> > > New Revision: 5437
> > :
> > > Log:
> > > Allow Samba4 to be compiled by tcc (www.tinycc.org). It still crashes
> > > when linking though.
> > Sounds like I need to learn more about tinycc. I'm still puddling with
> > Samba4 on the NSLU2...
> I'm not sure tcc necessarily produces smaller or faster output then gcc, unless
> you want to compile Samba on the NSLU2. The
> following features are mentioned on the website:
>
> * SMALL! You can compile and execute C code everywhere, for example
> on rescue disks (about 100KB for x86 TCC executable, including C
> preprocessor, C compiler, assembler and linker).
> * FAST! tcc generates optimized x86 code. No byte code overhead.
> Compile, assemble and link several times faster than GCC.
> * UNLIMITED! Any C dynamic library can be used directly. TCC is
> heading torward full ISOC99 compliance. TCC can of course compile
> itself.
> * SAFE! tcc includes an optional memory and bound checker. Bound
> checked code can be mixed freely with standard code.
>
> Tcc is indeed quite fast. I can do a "make clean proto bin/smbd" in
> just over one minute (AMD Athlon XP 2000+ machine, plenty of RAM).
>
> What kind of processor does the NSLU2 have?
It's an X-Scale. I was thinking that tcc might be aimed at embedded
systems, but I guess not. I'll have to keep poking at it.
> Btw, the tcc build of Samba4 works now, if you disable kerberos.
Kewl. :)
Chris -)-----
--
"Implementing CIFS - the Common Internet FileSystem" ISBN: 013047116X
Samba Team -- http://www.samba.org/ -)----- Christopher R. Hertel
jCIFS Team -- http://jcifs.samba.org/ -)----- ubiqx development, uninq.
ubiqx Team -- http://www.ubiqx.org/ -)----- crh at ubiqx.mn.org
OnLineBook -- http://ubiqx.org/cifs/ -)----- crh at ubiqx.org
More information about the samba-technical
mailing list