Author Topic: chicken or egg  (Read 108 times)

jcfuller

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
chicken or egg
« on: February 09, 2020, 08:14:10 AM »
Kevin,
  Great job on the new version. Wow lot's of good stuff.

How do You compile new versions.
It appears we have a situation with which came first chicken/egg.
I tried compiling 7.4.2 with 7.4.1 and get a lot of
'LEFTSTR': identifier not found

I can always use the 7.4.2 exe to compile 7.4.2 bas ( I want my own VSCPP version)

James

MrBcx

  • Administrator
  • Sr. Member
  • *****
  • Posts: 264
    • View Profile
Re: chicken or egg
« Reply #1 on: February 09, 2020, 08:52:47 AM »
Kevin,
  Great job on the new version. Wow lot's of good stuff.

How do You compile new versions.
It appears we have a situation with which came first chicken/egg.
I tried compiling 7.4.2 with 7.4.1 and get a lot of
'LEFTSTR': identifier not found

I can always use the 7.4.2 exe to compile 7.4.2 bas ( I want my own VSCPP version)

James

When the translator relies on a new run-time (like in your observation) that hasn't been
incorporated yet, one must manually insert the new "c" run time code and prototypes into Bc.c
prior to compile pass one.  Pass two should emit the new run time, so manual seeding
is not needed, pass three is the sanity check. 

Easier to wait until new functions are completely folded in before making BCX reliant on them :-)


jcfuller

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
Re: chicken or egg
« Reply #2 on: February 09, 2020, 09:01:00 AM »
Yup now I remember.
It was such a PIA with UbxBasic I ended up just writing it in c++.

James