What is the difference between "far" and "__far"?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What is the difference between "far" and "__far"?

512 Views
AndersJ
Contributor IV

Is "far" and "__far" equivalent?

 

Anders J

Labels (1)
0 Kudos
1 Reply

236 Views
CompilerGuru
NXP Employee
NXP Employee

Two underscores :smileyhappy:

 

Of course they are two different identifiers, so one can be remapped with a define differently than the other.

Also when the command line option -ansi is present, the compiler only recognizes __far. That's the reason I would recommend to use __far exclusively. But when -ansi is not present and no #define maps far or __far, they behave absolutely identical.

 

 

 

0 Kudos