Login or Signup

Does Blitz compile programs into pure machine code?

Program flow, variable handling and the like are compiled into pure machine code, whereas the high-level commands are implemented as C++ library functions (which are called from the runtime library compiled into every Blitz-generated executable). Mark puts it best:

"... a section of code that doesn't call any 'command' functions, eg:

For k=1 To 1000
b(k)=k + MyFunc( t(k) )

Function MyFunc( t )
Return t*2
End Function

... will be 100% pure machine code. However, throw in a DrawImage, and it'll generate a call to DrawImage in the library."

Blitz BASIC Founders Fund