Get access to C-backend compiler switches?

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Skipper
User
User
Posts: 57
Joined: Thu Dec 19, 2024 1:26 pm
Location: NW-Europe

Get access to C-backend compiler switches?

Post by Skipper »

Can we please have access to the C-backend's compiler switches without having to resort to external scripts ?
Thanks!

Cheers,
Skipper
<< Win-11 (x64) / Mint linux (x64) / MacOS Monterey (x64) >>
User avatar
idle
Always Here
Always Here
Posts: 5895
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Get access to C-backend compiler switches?

Post by idle »

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)
Post Reply