tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] tcc can now build from separate objects


From: grischka
Subject: [Tinycc-devel] tcc can now build from separate objects
Date: Thu, 14 Jan 2010 21:29:10 +0100
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Hi all,

Inspired by the ideas of k1w1 (http://repo.or.cz/w/tinycc/k1w1.git)
I've done some further refactoring such that tcc can now be build
from separate objects.

The related commit is
    http://repo.or.cz/w/tinycc.git/commitdiff/88a3ccab

It is not enabled by default but you can test it using
    make NOTALLINONE=1

There is only one more file for now (tccrun.c).  All the prototypes
are in tcc.h, ordered by file of implementation.   To get the target
specific definitions for i386 etc.  the xxx_gen files are included
into tcc.h for their definitions only.  That basically means that
they eventually include themselves, which is maybe somewhat kludgy
but has the advantage that definitions and implementation can stay
in one file.

There is also some other stuff I changed just while being at it,
for instance:
* warn about redefinition
* Missing #endif error
* Fix the issue with -run and large distance calls on win64 (as
  pointed out recently by Michael Kuklinski)
* Usage of r8/r9 as load/store registers on x86_64
* ...
See http://repo.or.cz/w/tinycc.git

Happy new year,

--- grischka





reply via email to

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