 Question: I would like to compile a C source file
to the assembler with mixing the far and near instructions (fcall, fret ...). I use
version 1.20 of CL500 with options
-v548
-o3
void main (void)
{
f_funct1 (); /* this call must be NEAR call : CALL f_funct1 */
f_funct2 (); /* this call must be FAR call : FCALL f_funct2 */ }
Answer: With C code, you have to use the -mf switch during compilation. This will cause the
compiler to use far instructions (i.e. this also means that the compiler will mix near and
far calls efficiently/intelligently). Also remember to use the -v541 switch during
compilation. |