Thanks. Since I am already pre-preprocessing the macros that generate the
FORTH builtin words (no token pasting in K&R C), I can trivially split them
out into individual files each with a single short function.
On Thu, Aug 6, 2020 at 10:49 PM Warner Losh <imp(a)bsdimp.com> wrote:
It's likely too many. Ld used to have lots of
fixed sized arrays... I had
to hack on the 2.10.1BSD to change supported ar formats and noticed. Also
had to tweak some of the constants to get something much bigger compiling.
The BSD ld had overlay suppot merged into it, but was otherwise quite
similar to V7, though I've not done a deep dive into ld from v7...
Tl;dr: chances are good more, smaller files will work.
Warner
On Thu, Aug 6, 2020, 10:30 PM Adam Thornton <athornton(a)gmail.com> wrote:
> So maybe I missed a symbol when I was trying to make everything unique in
> 8 chars? There are no external symbols; all that's in my forth.h are
> macros and typedefs.
>
> Adam
>
> On Thu, Aug 6, 2020 at 5:35 PM Warner Losh <imp(a)bsdimp.com> wrote:
>
>>
>>
>> On Thu, Aug 6, 2020, 9:48 AM Paul Winalski <paul.winalski(a)gmail.com>
>> wrote:
>>
>>> On 8/5/20, Adam Thornton <athornton(a)gmail.com> wrote:
>>> >
>>> > $ cc -o 4th forth.c
>>> > ld:forth.o: Local symbol botch
>>>
>>> I hate error messages like that. Would it have been that much extra
>>> trouble for ld to tell you which symbol caused the problem?
>>>
>>
>> It's a relocation entry it can't find a symbol for that's the
issue...
>>
>> Warner
>>
>>> -Paul W.
>>>
>>