In order to speed up a function, I have written a few in-line assembly instructions which works on the input parameters to the function. Depending on the optimization level, these input parameters are located either in the registers or on the stack. This means that the assembly instructions may be different for each optimization level.
Is there a conditional statement like:
#if opt_level == 2
{
compile this
}
#else
{
compile that
}
#endif
Or is there a better way of handling this issue?
Regards,
Magne