Qbasicnews.com

Full Version: How does fbc compile...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Things like:

a = a + 1
a = a \ 256

When it converts them to asm would it make them:

ADD a, 1
IDIV a, 256

or

INC a
LSH a, 8?

I am also wondering if FB will ever support boolean as a data type?
compiles to this:
Code:
inc     dword ptr [_A_f]
sar     dword ptr [_A_f], 8

Which seems a fairly good compile for that.