bootstrap code

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

bootstrap code

HackTheHack
hello,

I'm currently working on chapter 08 vm implementations (functions). I am having some problem with bootstrap code - with it, function code like FibonacciElement works but then old code like SimpleAdd breaks. What exactly does calling Sys.init do?
Reply | Threaded
Open this post in threaded view
|

Re: bootstrap code

HackTheHack
also, is it really possible to put bootstrap code & simpleadd code in 60 instructions as demaned by test scripts?
Reply | Threaded
Open this post in threaded view
|

Re: bootstrap code

Uli Kastlunger
Hi

IMHO the first 3 tests (BasicLoop, FibonacciSeries & SimpleFunction) will fail with Bootstrap-Code, which is also mentioned in the book:

[...] Implementing a later stage before an early one may cause the test programs to fail. (Note at the end of chapter 8).