Can we please have access to the C-backend's compiler switches without having to resort to external scripts ?
Thanks!
Cheers,
Skipper
Get access to C-backend compiler switches?
Get access to C-backend compiler switches?
Using PureBasic 6.21 on:
- Win-11 on x64 XEON
- Mint Linux on x64 i3 and on x64 i5
- MacOS Monterey on x64 MacBook Pro
- Various Raspberry Pi's
Re: Get access to C-backend compiler switches?
would be handy, you could also use pragma to some extent, like if you want to optimize a function or ignore a warning
you can test if it works like this
!#pragma optimize ("-O3");
procedure foo()
or to unroll a loop
!#pragma ivdep;
While(r > #size)
you can test if it works like this
!#pragma optimize ("-O3");
procedure foo()
or to unroll a loop
!#pragma ivdep;
While(r > #size)
Re: Get access to C-backend compiler switches?
Thanks for pointing this out. Would it work globally, for the entire application too? Going to test later today....idle wrote: Thu Sep 04, 2025 11:42 pm would be handy, you could also use pragma to some extent, like if you want to optimize a function or ignore a warning
you can test if it works like this
!#pragma optimize ("-O3");
procedure foo()
or to unroll a loop
!#pragma ivdep;
While(r > #size)
cheers
Skipper
Using PureBasic 6.21 on:
- Win-11 on x64 XEON
- Mint Linux on x64 i3 and on x64 i5
- MacOS Monterey on x64 MacBook Pro
- Various Raspberry Pi's
Re: Get access to C-backend compiler switches?
I don't think it does it globally. you just do it before a function as far as I recall.


