Runtime lib functions
commit12265da6cd24bd48ce6e40b60fac1dc62eeee156
authorDaniel Glöckner <daniel-gl@gmx.net>
Fri, 5 Sep 2008 19:07:46 +0000 (5 21:07 +0200)
committergrischka <grischka>
Fri, 12 Sep 2008 20:22:36 +0000 (12 22:22 +0200)
treed181cedfa63eb65d06aa2ad3a78129a8ecc898f4
parent2c657f6608fd192e785d5b2eed2594007777842b
Runtime lib functions

Yesterday I felt the urge to change a few things in TinyCC.
This is the first and biggest change of all of them.

- use __aeabi_*divmod functions in ARM EABI to make binaries depend
  solely on standardized library functions

- refactor ARM floating point <-> integer conversion a bit

- rename long long->float and shift library functions to correspond to
  the names used by GCC

- compile more tokens conditionally to reduce the size of TinyCC

The intention is primarily to allow users of the ARM target to use
libgcc (which is usually available as a shared library) instead of
libtcc1 (which can't be compiled for ARM due to lack of an inline
assembler).

Changing the EABI target to use the divmod functions in theory allows
to use it without libtcc1 on any (not necessarily GCC based) ARM EABI
system.

  Daniel
arm-gen.c
libtcc1.c
tcc.c
tcctok.h