smallc: remove literal buffer
authorAlan Cox <alan@linux.intel.com>
Wed, 20 Sep 2017 13:04:31 +0000 (14:04 +0100)
committerAlan Cox <alan@linux.intel.com>
Wed, 20 Sep 2017 13:04:31 +0000 (14:04 +0100)
commitc1b601af3c16a3f59e4de55d7c479998f9e329ef
tree9df558f31ac4c059ce848f5ab181e02ed09352a4
parent00df5deabf60c58284084852619277f280023fc5
smallc: remove literal buffer

Restructure the code so that literal data is generated inline relying upon the
assembler segment functionality to sort out the interleaving. A platform whose
assembler isn't good enough can always switch between two files...

This saves us about 3K and means that the literal space is no longer limited
to 2.5K per compiled file.

You stil can't initialize pointers but the framework is now there to do this.
Applications/SmallC/data.c
Applications/SmallC/data.h
Applications/SmallC/defs.h
Applications/SmallC/error.c
Applications/SmallC/gen.c
Applications/SmallC/initials.c
Applications/SmallC/main.c
Applications/SmallC/primary.c
Applications/SmallC/prototype.h
Applications/SmallC/sym.c
Applications/SmallC/while.c