Re:Robot Game: Comparing 6502 C, Assembly, and Forth
by exikyut on Monday July 13, 2020 @12:32AM
(#23817194)
FWIW: The URL is being truncated right at the "...for-linux" part. I was mildly surprised.
This particular distribution also ships with GTK+.
That being said, a simple "3 2 1 ?" (I was unsure what word would dump the stack) SIGSEGVs quite consistently.
It's also 32-bit, and the backtrace handler produces "XXXX:XXXX" style addresses (?).
Re:Robot Game: Comparing 6502 C, Assembly, and Forth
by asguy on Monday July 13, 2020 @12:51AM
(#23817289)
You’re dereferencing an invalid pointer with a variable lookup; try “3 2 1 .s” ... there’re some good ANS Forth gems here [0].
[0] - https://1scyem2bunjw1ghzsf1cjwwn-wpengine.netdna-ssl.com/wp-...
I've written Forth compilers that generated output that was ~25% slower than optimized assembly, without putting that much work into it. There are companies that will sell you a much better compiler [0], at prices even approachable to hobbyists.
[0] - https://www.mpeforth.com/software/pc-systems/vfx-forth-for-l...