Page 1 of 1
Get access to C-backend compiler switches?
Posted: Thu Sep 04, 2025 10:33 am
by Skipper
Can we please have access to the C-backend's compiler switches without having to resort to external scripts ?
Thanks!
Cheers,
Skipper
Re: Get access to C-backend compiler switches?
Posted: Thu Sep 04, 2025 11:42 pm
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)
Re: Get access to C-backend compiler switches?
Posted: Thu Oct 30, 2025 2:25 am
by Quin
+100
Re: Get access to C-backend compiler switches?
Posted: Thu Oct 30, 2025 1:43 pm
by Skipper
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)
Thanks for pointing this out. Would it work globally, for the entire application too? Going to test later today....
cheers
Skipper
Re: Get access to C-backend compiler switches?
Posted: Thu Oct 30, 2025 7:22 pm
by idle
I don't think it does it globally. you just do it before a function as far as I recall.