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.


Device: TMS320C5xx
Category: TI Tools
Detail: Code Generation Tools
Detail2: General
Title: Mixing the Far and Near
Source: Case from the TMS320 Hotline
Date: 4/25/98
GenId: 30032

© Copyright 1998 Texas Instruments Incorporated. All rights reserved.
Trademarks, Important Notice!