1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

A new port for TinyCC, a small and fast C compiler.

Tcc's features include:
  * 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.
  * Compile and execute C source directly. No linking or assembly
    necessary. Full C preprocessor and GNU-like assembler included.
  * C script supported : just add '#!/usr/local/bin/tcc -run' at
    the first line of your C source, and execute it directly from the
    command line.
  * With libtcc, you can use TCC as a backend for dynamic code
    generation.
This commit is contained in:
Joseph Koshy 2006-05-16 01:42:47 +00:00
parent 3cc6b36726
commit 2dae626b2e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=162507
6 changed files with 74 additions and 0 deletions

View File

@ -283,6 +283,7 @@
SUBDIR += swi-pl
SUBDIR += sxm
SUBDIR += t3x
SUBDIR += tcc
SUBDIR += tcl-manual
SUBDIR += tcl80
SUBDIR += tcl81-thread

25
lang/tcc/Makefile Normal file
View File

@ -0,0 +1,25 @@
# New ports collection makefile for: tcc
# Date created: 16 May 2006
# Whom: Joseph Koshy <jkoshy@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= tcc
PORTVERSION= 0.9.23
CATEGORIES= lang
MASTER_SITES= http://fabrice.bellard.free.fr/tcc/ \
${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= jkoshy
MAINTAINER= jkoshy@FreeBSD.org
COMMENT= A small and fast C compiler
USE_GMAKE= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX}
MAN1= tcc.1
ONLY_FOR_ARCHS= i386
.include <bsd.port.mk>

3
lang/tcc/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (tcc-0.9.23.tar.gz) = ba925bf241b0980a581bbc6ad3d5b9a1
SHA256 (tcc-0.9.23.tar.gz) = 074632c574116004c63b32798048c73c184d123d8cf96cce849765296b255991
SIZE (tcc-0.9.23.tar.gz) = 423807

View File

@ -0,0 +1,11 @@
--- Makefile.orig Tue May 16 06:33:17 2006
+++ Makefile Tue May 16 06:33:28 2006
@@ -5,7 +5,7 @@
CFLAGS=-O2 -g -Wall
ifndef CONFIG_WIN32
-LIBS=-ldl
+#LIBS=-ldl
BCHECK_O=bcheck.o
endif
CFLAGS_P=$(CFLAGS) -pg -static -DCONFIG_TCC_STATIC

20
lang/tcc/pkg-descr Normal file
View File

@ -0,0 +1,20 @@
Tcc is a small and fast C compiler with the following features:
* 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.
* Compile and execute C source directly. No linking or assembly
necessary. Full C preprocessor and GNU-like assembler included.
* C script supported : just add '#!/usr/local/bin/tcc -run' at
the first line of your C source, and execute it directly from the
command line.
* With libtcc, you can use TCC as a backend for dynamic code
generation.
WWW: http://www.tinycc.org/

14
lang/tcc/pkg-plist Normal file
View File

@ -0,0 +1,14 @@
bin/tcc
include/libtcc.h
lib/tcc/include/stdarg.h
lib/tcc/include/stddef.h
lib/tcc/include/stdbool.h
lib/tcc/include/float.h
lib/tcc/include/varargs.h
lib/tcc/include/tcclib.h
lib/tcc/libtcc1.a
lib/tcc/bcheck.o
lib/libtcc.a
%%DOCSDIR%%/tcc-doc.html
@dirrm lib/tcc/include
@dirrm lib/tcc