Re:A quick look at destination-driven code generation
by lboasso on Saturday November 11, 2023 @02:03PM
(#38233377)
You are right, but as you can see at page 11 (Figure 4 rightmost AST) of The Oberon System Family paper [0], Wirth's approach was extended to "hint" destinations as well.
[0] https://www.research-collection.ethz.ch/bitstream/handle/20....
Re:A quick look at destination-driven code generation
by i_don_t_know on Sunday November 12, 2023 @05:07AM
(#38238935)
Thanks for the pointer! I didn’t know that.
The relevant section is 10.2. But its mechanism is the “inverse” of destination driven code generation as I understand it. In Wirth’s Item approach the callee picks a location and tells the caller where to look. Whereas in destination driven code generation the caller tells the callee where to put the result.