Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
tcc / tiny c compiler
08-09-2013, 06:25 PM
Post: #1
tcc / tiny c compiler
Hi,

did somebody already try to package the Tiny C compiler (tcc)? It is very small in memory and disk footprint, and incredibly fast compared to gcc.

Of course the optimization of the generated code is not as good as the one from gcc, but hey, small software is beautiful, right?

http://bellard.org/tcc/
Find all posts by this user
Quote this message in a reply
08-12-2013, 12:10 AM
Post: #2
RE: tcc / tiny c compiler
(08-09-2013 06:25 PM)delicatestuff Wrote:  Hi,

did somebody already try to package the Tiny C compiler (tcc)? It is very small in memory and disk footprint, and incredibly fast compared to gcc.

Of course the optimization of the generated code is not as good as the one from gcc, but hey, small software is beautiful, right?

http://bellard.org/tcc/

Hi.

not yet. wanna try?
Visit this user's website Find all posts by this user
Quote this message in a reply
08-12-2013, 08:49 AM
Post: #3
RE: tcc / tiny c compiler
(08-12-2013 12:10 AM)tavvva Wrote:  
(08-09-2013 06:25 PM)delicatestuff Wrote:  Hi,

did somebody already try to package the Tiny C compiler (tcc)? It is very small in memory and disk footprint, and incredibly fast compared to gcc.

Of course the optimization of the generated code is not as good as the one from gcc, but hey, small software is beautiful, right?

http://bellard.org/tcc/

Hi.

not yet. wanna try?

Good question :-) Yes, indeed, but my stuff-to-do-list is too long and first I want to create a ngIRCd package for Delicate.

Regards
Find all posts by this user
Quote this message in a reply
08-28-2013, 12:03 AM
Post: #4
RE: tcc / tiny c compiler
(08-12-2013 08:49 AM)delicatestuff Wrote:  Good question :-) Yes, indeed, but my stuff-to-do-list is too long and first I want to create a ngIRCd package for Delicate.

Regards

Hello :]

Do you have any news? If you need help or if you have questions, do not hesitate to ask. You can catch me on the IRC channel if you wanna discuss things online.
Visit this user's website Find all posts by this user
Quote this message in a reply
01-12-2015, 09:44 PM
Post: #5
RE: tcc / tiny c compiler
The package builds, but I neither installed it, nor checked tcc for compiling a file.
I know, it is an old thread.

Code:
# $Id$
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer : Gergely Imreh <imrehgATgmailDOTcom>
# Contributor : dschauer <dschauerATgmailDOTcom>
# Contributor : Stefan Husmann <stefan-husmann@t-online.de>
# Contributor : Jeremy Cowgar <jeremy@cowgar.com>

pkgname=tcc
pkgver=0.9.26
pkgrel=2
pkgdesc="Tiny C Compiler"
url="http://bellard.org/tcc/"
license=('LGPL')
makedepends=('gcc' 'texinfo')
source=(http://download.savannah.nongnu.org/releases/tinycc/${pkgname}-${pkgver}.tar.bz2)
md5sums=('5fb28e4abc830c46a7f54c1f637fb25d')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}

  # sed fixes from Gentoo ebuild, cheers!
  # Don't strip
  sed -i -e 's|$(INSTALL) -s|$(INSTALL)|' Makefile

  # Fix examples
  sed -i -e '1{
    i#! /usr/bin/tcc -run
    /^#!/d
  }' examples/ex*.c
  sed -i -e '1s/$/ -lX11/' examples/ex4.c

  ./configure --prefix=/usr
  make


#package()
  cd ${srcdir}/${pkgname}-${pkgver}
  make tccdir=${pkgdir}/usr/lib/tcc libdir=${pkgdir}/usr/lib \
    mandir=${pkgdir}/usr/share/man bindir=${pkgdir}/usr/bin \
    includedir=${pkgdir}/usr/include \
    docdir=${pkgdir}/usr/share/doc/tcc \
    install

  make clean
  make CFLAGS="-fPIC"
  ld -shared -soname libtcc.so -o libtcc.so *.o
  install -D -m 755 libtcc.so "${pkgdir}/usr/lib/libtcc.so"
}
Find all posts by this user
Quote this message in a reply
08-21-2015, 10:29 PM
Post: #6
RE: tcc / tiny c compiler
Im new to forum and pretty new to linux. I was reading when trying to decide which distribution would be best for some old computers of mine. I am trying to install on a pentium 133 with 16 mb and will use this to get used to the system, installing, partitioning, and compiling and installing new packages like tiny cc (i have some ethernet cards that i might see if i can get working too). I read about tiny cc with Damn Small Linux and just wondered if the libraries were part of the package you installed. Can you compile your own programs with gcc or is it mainly for installing the system. Is there a manual or book for Deli(cate) that i can reference and find out the specs for using one of these c compilers in linux/Deli(cate) linux in particular. Thanks!
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | DeLi(cate) Linux | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication