totalspectrum/spin2cpp

Unitialized bedata error in BC when using certain expressions

Wuerfel21 opened this issue · 1 comments

PUB main()

DAT
a
b
long 0[@a-@b]
bad-bedata.spin:6: error: BCgetDAToffset: bedata for module Bad_bedata uninitialized
bad-bedata.spin:6: error: BCgetDAToffset: bedata for module Bad_bedata uninitialized

Something trying to resolve data size before the backend is ready?

The expression evaluator was trying to fully evaluate the addresses @A and @b to find how big the DAT section needs to be, which is before the backend is ready. In this particular case though we don't need accurate addresses, just relative ones. I've checked in a fix for this, thanks.