New FreeBASIC beginners website
Re: New FreeBASIC beginners website
Thanks for the explanation. I have posted your explanation on the blog post, I hope you don't mind.
Re: New FreeBASIC beginners website
On the other hand, it is not because one reduces the size of the variable used ("Byte" for example) compared to the basic size "Integer" (32 bits or 64 bits depending on the platform) that this improves the execution speed (on any platform). The only speed gain would be if one goes from a 64-bit variable to a 32-bit variable on a 32-bit platform.St_W wrote:... Integer is especially tricky because it is 32-bits on a 32-bit platform and 64-bits on a 64-bit platform. That is why one should be very careful when using Integer. If you want a fixed-size data type (like for writing something to a file, which should not be platform dependent usually) use e.g. Long or (better readable) Integer<32>.