Posts: 2
Threads: 1
Joined: Jun 2023
Reputation:
0
06-04-2023, 09:48 PM
I got the itch to do some Basic again and found out about the split and decided to follow along with QB64PE. I'm on Windows 11 and on both a rather old laptop (Thinkpad T480 but 8th gen i5) and a very new AMD system the compiler seems slower than I remember on my old desktop.
I suspect it's the compiler start up time since I don't notice a difference between very small programs and larger samples I've downloaded, so there may be nothing I can do but felt I should ask. Searching didn't turn up anything.
Thanks.
Troy.
Posts: 2
Threads: 1
Joined: Jun 2023
Reputation:
0
Four seconds for a four line program, three seconds after edit/save/recompile. Pythagoras.bas from Terry's tutorials was about the same. If that's the norm, I can handle it.
And thanks for the welcome. Glad to be here.
Posts: 1,510
Threads: 53
Joined: Jul 2022
Reputation:
47
Welcome to the forums.
You have to understand QB64 has to translate BASIC code to C++ to then relay it to "g++" and other tools that comprise the GNU Compiler Collection ("gcc"). That takes time. If you take a short look at "(qb64pe)/internal/temp" directory, you will notice a few hundred text files which is the result of the translations. "(qb64pe)" is the directory where you installed QB64PE.
Each version of QB64 has compiled to executable slower than the previous, but because of the way the programming system has expanded. The Phoenix Edition v3 is more complex than Galleon's efforts before QB64 hit version 1. There are many more programs involved in the creation of executables, and perhaps some Python and some other interpreter. Before v0.98 on Windows, a bunch of DLL files were required pre-installed so the user executable could run. Now everything that is needed by the executable is packed into it which increases compilation and linking time. But computers these days have plenty of RAM, and if nothing else really heavy is being done by another program or by one written with QB64 then the wait shouldn't be as long as the first time from a fresh desktop session.