The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Possible String issue? (*solved*)
#6
britlion Wrote:Someone mentioned me?

I'm glad you swapped to mercurial. It's what we use at work, so I'm starting to be familiar with it - even though I'm not in development, so I tend to limit what to do to hg -u pull Smile
Heyyyy, Welcoooooooooooooooooooooome :!: Big Grin Big Grin Big Grin

You can pull the ZX Basic compiler (click above to have a look at the repos), with:
Code:
hg clone https://boriel.dyndns.org/hg/zxbasic
or using TortoiseHg.

Also, the compiler is rather unstable now (see download page). It turns out you were right. I was puzzled about asm code generation you pointed out somewhere in this forum. The compiler was generating very obfuscated asm code. Eg.
Code:
DIM a as UInteger DIM b as UByte LET b = a AND a
Generates
Code:
ld hl, (_a) push hl ld hl, (_a) ex de, hl pop hl call __AND16 ld (_b), a
Instead of
Code:
ld hl, (_a) ld de, (_a) call __AND16 ld (_b), a
It turns out I wasn't aware of it because I was using -O3 parameter on many tests (which effectively cleans up the code a lot). Now I'm fixing this, because cleaner code not only is better, but also allows -O3 to optimize even better and more. :roll:
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)