Search found 3405 matches

by marcov
Dec 23, 2023 17:27
Forum: General
Topic: Parallel for loop in freebasic idea
Replies: 7
Views: 911

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: 911

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: 2054

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: 2623

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: 2335

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: 2335

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: 2335

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...
by marcov
Oct 06, 2023 7:56
Forum: Community Discussion
Topic: Bugs
Replies: 115
Views: 20946

Re: Bugs

Maybe define the loopvar as unsigned ?
by marcov
Sep 27, 2023 16:17
Forum: Community Discussion
Topic: Missing in action.
Replies: 28
Views: 4167

Re: Missing in action.

Also my deepest condolences.
by marcov
Sep 25, 2023 8:59
Forum: Community Discussion
Topic: FreeBASIC for Apple OS
Replies: 20
Views: 3496

Re: FreeBASIC for Apple OS

in MacOS Mojave when trying to build the latest Git repo I get unknown ld option --eh-frame-hdr at the stage of linking fbc, have no idea why eh-frame is afaik support for ELF/Dwarf exception frames. OS X' binary format however, is not ELF, but MachO. Note that therefore the binutils (LD and AS and...
by marcov
Sep 21, 2023 18:58
Forum: Windows
Topic: new ide comming soon
Replies: 13
Views: 2886

Re: new ide comming soon

Yes, sounds Kylixy/CLX
by marcov
Sep 20, 2023 7:54
Forum: Community Discussion
Topic: ChatGPT
Replies: 23
Views: 4288

Re: ChatGPT

Luxan wrote: Sep 20, 2023 2:05 Ask ChatGPT this :

can I use chat gpt to produce an app that competes with chat gpt

to receive an outdated and somewhat ambiguous answer; hinting
that you're allowed to do so .
Which has no legal standing whatsoever. So what you wanted to achieve by asking ChatGPT this, seems a mystery to me.
by marcov
Sep 11, 2023 10:04
Forum: Community Discussion
Topic: Header files license ?
Replies: 5
Views: 1861

Re: Header files license ?

(I'm no lawyer either, but have followed such cases in the news for decades) Even without the Oracle to Google lawsuit, headers rarely generate code, and GPL is a linking license (iow about linking generated code to other generated code). Users using the headers will also link code, but GPL allows t...
by marcov
Sep 01, 2023 8:34
Forum: General
Topic: Working with bits
Replies: 8
Views: 1697

Re: Working with bits

Thanks srvaldez, It worked but it was slower, probably because the ASM interrupts the GCC optimizations. Also: the old bit instructions often can't be parallelized/interleaved as much, and the call alone has overhead too. Operations like AND are the cheapest (single cycle, low latency and supported...
by marcov
Aug 31, 2023 18:22
Forum: Emscripten
Topic: freebasic web (toughts)
Replies: 4
Views: 1554

Re: freebasic web (toughts)

Mysoft wrote: Aug 31, 2023 15:40 i will use the WASI sdk as base which includes clang and i assume a C runtime... https://github.com/WebAssembly/wasi-sdk

so, what you guys think?
Why do you choose all that bloat? Why not directly let FB generate WebAssembler bytecode?