Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
An interesing thought
#14
(07-26-2024, 10:45 AM)mdijkens Wrote: Much easier would be to permit main code/declarations between and after subs/functions so we don't need *.bi and *.bm anymore but only one include that contains the declarations and subs/functions
I agree with your point, but the benefits of allowing easier QB64 code inclusion via `'$include` are a bit different from allowing compiling code into static libraries, dlls, `.o` files, etc.

For one, like @Doppler mentioned at the very beginning of the thread, if you compile to a `.dll` or `.a` then you could potentially expose a set of functions to be called from other languages. It's unclear what exactly that would look like, but it's possible we could support it in some fashion.

The even bigger thing would be the build advantages. If you could compile a `.bas` file to a `.o` or `.a` then you could compile all of your `.bas` files separately and link them together at the end. This would be faster as you could run the builds in parallel or only build the parts that changed, and it would also be more memory efficient compared to what we do now. It also has advantages over the .bi and .bm solution because you would have the ability to only expose a subset of the functions in the `.bas` file to the rest of the code, something that's currently impossible.
Reply


Messages In This Thread
An interesing thought - by doppler - 07-22-2024, 07:19 PM
RE: An interesing thought - by Jack - 07-23-2024, 02:02 AM
RE: An interesing thought - by Jack - 07-23-2024, 02:11 AM
RE: An interesing thought - by Jack - 07-23-2024, 02:16 AM
RE: An interesing thought - by Pete - 07-24-2024, 12:53 AM
RE: An interesing thought - by doppler - 07-24-2024, 01:46 AM
RE: An interesing thought - by Jack - 07-24-2024, 07:09 AM
RE: An interesing thought - by luke - 07-24-2024, 08:12 AM
RE: An interesing thought - by Jack - 07-24-2024, 01:13 PM
RE: An interesing thought - by DSMan195276 - 07-25-2024, 05:30 AM
RE: An interesing thought - by Jack - 07-25-2024, 10:57 AM
RE: An interesing thought - by DSMan195276 - 07-25-2024, 03:54 PM
RE: An interesing thought - by mdijkens - 07-26-2024, 10:45 AM
RE: An interesing thought - by DSMan195276 - 07-26-2024, 02:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Thought I would share something interesting doppler 8 612 02-22-2026, 08:59 PM
Last Post: yaoiniymalchik
  IDE - just a thought on Next and Out of Subscript Dimster 18 3,359 05-15-2023, 02:35 PM
Last Post: Dimster

Forum Jump:


Users browsing this thread: 1 Guest(s)