Search found 3398 matches

by marcov
Mar 28, 2024 9:52
Forum: Windows
Topic: free basic how to load new form like vb6,and get form.item (public method or value)
Replies: 4
Views: 653

Re: free basic how to load new form like vb6,and get form.item (public method or value)

From version 5 of Windows NT (Windows 2000 Professional) The basic framework is included in the system libraries, instead in the old versions of Windows 98 and NT4. (and afaik went out again in Windows 2008, as there are server commandline versions again since then) But ok, so with the native frame...
by marcov
Mar 27, 2024 9:21
Forum: Windows
Topic: free basic how to load new form like vb6,and get form.item (public method or value)
Replies: 4
Views: 653

Re: free basic how to load new form like vb6,and get form.item (public method or value)

There are native Windows Framework libraries? (or for native app target). Url ?

Or do you mean Microsoft Foundation Libraries?
by marcov
Mar 26, 2024 10:13
Forum: Documentation
Topic: External Graphics File Formats (page to fill in Programmer's Guide)
Replies: 12
Views: 2643

Re: External Graphics File Formats (page to fill in Programmer's Guide)

So top down images (with negative height) ARE supported ? :D ha, I did not know. Turns out yes, negative height flips the image. ( I really was hoping for someone to dig through this. I don't even know what is common or normal with this format) RLE not supported though. So only uncompressed formats...
by marcov
Mar 01, 2024 23:15
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 227
Views: 20513

Re: Freebasic 1.20.0 Development

Side note: For wstrings, fbc generates a kind of wstring descriptor internally, just enough functionality to pass copies of wstring's and get function results. The problems to solve with wstrings and strings are virtually the same except the element size is different but currently each has varying ...
by marcov
Feb 25, 2024 19:37
Forum: Documentation
Topic: External Graphics File Formats (page to fill in Programmer's Guide)
Replies: 12
Views: 2643

Re: External Graphics File Formats (page to fill in Programmer's Guide)

That said, it might be worth specifying what exactly is the "BMP subset". (no RLE? Not all BPP?) You nailed it there. Plus there is some support for reading in gfx files originally saved by QB's BSAVE itself. Code is run time library implemented and doesn't use any win32 api calls so can ...
by marcov
Jan 31, 2024 10:26
Forum: Beginners
Topic: Is this legal?
Replies: 5
Views: 445

Re: Is this legal?

Probably parenthesis due to C style auto testing integers for 0 and same worth for bitwise and logical AND.

I.e. (mybyte) and (8=8) vs (mybyte and 8 )=8
by marcov
Jan 08, 2024 10:06
Forum: General
Topic: Free Basic program size
Replies: 9
Views: 837

Re: Free Basic program size

For most compilers, the limit you are more often practically limited by is the largest block of code (procedure or main program) rather than by the total application size. Register allocation often has some practical limits, which btw are sometimes also encountered when excessively inlining. Well, ...
by marcov
Jan 07, 2024 20:17
Forum: General
Topic: Free Basic program size
Replies: 9
Views: 837

Re: Free Basic program size

For most compilers, the limit you are more often practically limited by is the largest block of code (procedure or main program) rather than by the total application size. Register allocation often has some practical limits, which btw are sometimes also encountered when excessively inlining.
by marcov
Dec 23, 2023 17:27
Forum: General
Topic: Parallel for loop in freebasic idea
Replies: 7
Views: 898

Re: Parallel for loop in freebasic idea

I dunno if this would always be the case. Considering the original post appears to be referencing copying textures, it could be the case that these textures are small and could fit in L1/L2 cache. Many many modern architectures have per-core lower level cache. Usually 256KB. But yes, you can be rig...
by marcov
Dec 06, 2023 21:41
Forum: General
Topic: Parallel for loop in freebasic idea
Replies: 7
Views: 898

Re: Parallel for loop in freebasic idea

It seems that your code is basically a memory copy that will be memory, not CPU bound with sufficient enough operations. So IMHO this is not really a case for parallel for. Use memcpy or derivatives, or improve the compiler to unroll and optimize the three component RGB24 assignments to e.g. 3 32-bi...
by marcov
Nov 14, 2023 21:03
Forum: Linux
Topic: FreeBASIC broken following OS upgrade; generates problematic .asm files...?
Replies: 21
Views: 1937

Re: FreeBASIC broken following OS upgrade; generates problematic .asm files...?

bixbyru wrote: Nov 13, 2023 21:43 tablet.asm:1361: Error: operand size mismatch for `push'
Sounds like Intel assembler syntax being interpreted by an assembler expecting AT&T.
by marcov
Nov 10, 2023 22:03
Forum: General
Topic: I need a workaround for a DIR problem
Replies: 12
Views: 2594

Re: I need a workaround for a DIR problem

And if you have characters outside the current codepage, you either need to go to -W strings, or enable UTF8 application as per application manifest
by marcov
Oct 13, 2023 8:24
Forum: General
Topic: Concerning the lack of inline functions
Replies: 14
Views: 2312

Re: Concerning the lack of inline functions

FB does have inline functions (when using -gen gcc) . The keyword is PRIVATE (which is equivalent to 'static' in C). Marking a function PRIVATE indicates that the function is internal to that module and can't be called from outside it. (In my messages, I assumed gen gcc would already do inlining wi...
by marcov
Oct 09, 2023 20:46
Forum: General
Topic: Concerning the lack of inline functions
Replies: 14
Views: 2312

Re: Concerning the lack of inline functions

That's pretty much all you have to do. Inlines are basically suggestions to the compiler to do what amounts to fancy text substitution. Inlines and e.g. generics/templates can be done in several ways/levels. Using token replay (which is closer to the text), or using a stored node form (which is clo...
by marcov
Oct 09, 2023 11:39
Forum: General
Topic: Concerning the lack of inline functions
Replies: 14
Views: 2312

Re: Concerning the lack of inline functions

Afaik non LTO gcc inline requires to lift the functions from .c to .h ? I don't have much experience with LTO (other than the principle) Sometimes another workaround is to move some of the big loops around the functions to the same compilation unit class. E.g. never call such a function in a loop, b...