Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
a TON of source code and projects archived from PlanetSourceCode.com
#26
(09-07-2022, 02:46 PM)aurel Wrote: QB64 have only one ugly feature..it is slow in compilation
when FreeBasic and OxygenBasic can compile 5000 lines of code in less than second
:
Well, QB64 inherits from C++ which is notoriously slow compiling because of all the syntax rules and other stuff inherited from C such as having to catch multiple errors in one pass. Not like Turbo Pascal which was designed to complain at the first thing it disliked LOL.

In addition, QB64 has to create a bunch of code snippets and helper text files and figure out how to put it all together into command lines for "g++", "ld" and programs like that. Recently I discovered "DATA" statements are enrolled into a text file which is parsed by this certain program, now forgot what it's called, and that program produces a file with extension "dot-o" which then gets linked along with the QB64 source code and libraries.

One thing to add is that QB64 allows a programmer to never declare variables before using them, could always do a$, i&, bigu&&, point%& and stuff like that and must be done while defining a "FUNCTION" anyway. Freebasic forces the programmer to declare variables without exception which could contribute to its better speed. But how about if those 5k lines had nothing to do with OOP? If the preprocessor (more complex than that of QB64, eg. supports macros) is included in the speed tests then the speed of Freebasic is impressive.
Reply


Messages In This Thread
RE: a TON of source code and projects archived from PlanetSourceCode.com - by mnrvovrfc - 09-07-2022, 05:42 PM



Users browsing this thread: 5 Guest(s)