Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Ismael Luceno (697296af3b53adffb14d3ec30627ada329b69a8f)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Ismael Luceno <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Ismael Luceno (697296af3b53adffb14d3ec30627ada329b69a8f)
  • Date: Thu, 21 May 2015 20:11:08 -0500

GIT changes to master grimoire by Ismael Luceno <ismael AT sourcemage.org>:

ChangeLog | 1 +
devel/smallerc/BUILD | 1 +
devel/smallerc/DETAILS | 38 ++++++++++++++++++++++++++++++++++++++
devel/smallerc/HISTORY | 2 ++
devel/smallerc/INSTALL | 1 +
devel/smallerc/Makefile | 19 +++++++++++++++++++
devel/smallerc/PREPARE | 2 ++
7 files changed, 64 insertions(+)

New commits:
commit 697296af3b53adffb14d3ec30627ada329b69a8f
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

smallerc: new spell, Simple C compiler

diff --git a/ChangeLog b/ChangeLog
index 933cee8..4a6b804 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@

2015-05-18 Ismael Luceno <ismael AT sourcemage.org>
* devel/intel2gas: new spell, Intel to AT&T assembly syntax converter
+ * devel/smallerc: new spell, Simple C compiler

2015-05-17 Pavel Vinogradov <public AT sourcemage.org>
* disk/udevil: new spell, a command line passwordless mount utility
diff --git a/devel/smallerc/BUILD b/devel/smallerc/BUILD
new file mode 100755
index 0000000..ea8869e
--- /dev/null
+++ b/devel/smallerc/BUILD
@@ -0,0 +1 @@
+make -f "$SPELL_DIRECTORY/Makefile"
diff --git a/devel/smallerc/DETAILS b/devel/smallerc/DETAILS
new file mode 100755
index 0000000..dfa04aa
--- /dev/null
+++ b/devel/smallerc/DETAILS
@@ -0,0 +1,38 @@
+. "$GRIMOIRE/FUNCTIONS"
+ SPELL=smallerc
+ VERSION=$(get_scm_version)
+ SOURCE="$SPELL-git.tar.bz2"
+ SOURCE_URL[0]=git://github.com/alexfru/SmallerC.git:$SPELL-git
+ SOURCE_IGNORE=volatile
+ FORCE_DOWNLOAD=on
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-git"
+ WEB_SITE="https://github.com/alexfru/SmallerC";
+ LICENSE[0]="BSD"
+ ENTERED=20150518
+ KEYWORDS=""
+ SHORT="Simple C compiler"
+cat << EOF
+Smaller C is a simple and small single-pass C compiler, currently supporting
+most of the C language common between C89/ANSI C and C99 (minus some C89
+and plus some C99 features).
+
+Currently it generates 16-bit and 32-bit 80386+ assembly code for NASM that
+can then be assembled and linked into DOS, Windows and Linux programs.
+
+Code generation for MIPS CPUs is also supported (primarily for RetroBSD).
+Code generation for TR3200 CPU assembly code for VASM (read about Trillek)
+
+The compiler is capable of compiling itself.
+
+The core compiler comes with a linker and a compiler driver (the driver
+invokes the core compiler, the assembler, and the linker and supports options
+similar to those of gcc).
+
+There's no decent preprocessor in Smaller C as of now, but the compiler
+driver can invoke gcc (or gcc.exe) for preprocessing if instructed.
+
+The standard C library is work-in-progress and it's close to completion.
+
+See the Wiki for more up-to-date details:
+http://github.com/alexfru/SmallerC/wiki
+EOF
diff --git a/devel/smallerc/HISTORY b/devel/smallerc/HISTORY
new file mode 100644
index 0000000..7d227bd
--- /dev/null
+++ b/devel/smallerc/HISTORY
@@ -0,0 +1,2 @@
+2015-05-18 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD, DETAILS, INSTALL, PREPARE, Makefile: spell created
diff --git a/devel/smallerc/INSTALL b/devel/smallerc/INSTALL
new file mode 100755
index 0000000..c44a3c4
--- /dev/null
+++ b/devel/smallerc/INSTALL
@@ -0,0 +1 @@
+make -f "$SPELL_DIRECTORY/Makefile" prefix="$INSTALL_ROOT/usr" install
diff --git a/devel/smallerc/Makefile b/devel/smallerc/Makefile
new file mode 100644
index 0000000..51992a7
--- /dev/null
+++ b/devel/smallerc/Makefile
@@ -0,0 +1,19 @@
+prefix = /usr
+bindir = $(prefix)/bin
+
+VPATH = $(CURDIR)/v0100
+
+CC = gcc
+override CFLAGS += -DHOST_LINUX
+
+targets = smlrc smlrl smlrcc
+
+all: $(targets)
+
+install: all
+ install -m755 -t $(bindir) $(targets)
+
+%: %.c
+ $(CC) $(CFLAGS) -o $@ $<
+
+.PHONY: all install
diff --git a/devel/smallerc/PREPARE b/devel/smallerc/PREPARE
new file mode 100755
index 0000000..86a5079
--- /dev/null
+++ b/devel/smallerc/PREPARE
@@ -0,0 +1,2 @@
+. "$GRIMOIRE/FUNCTIONS" &&
+prepare_select_branch



  • [SM-Commit] GIT changes to master grimoire by Ismael Luceno (697296af3b53adffb14d3ec30627ada329b69a8f), Ismael Luceno, 05/21/2015

Archive powered by MHonArc 2.6.24.

Top of Page