0

I am having some trouble compiling my code having __far.

I have read that __far is not a c standard keyword.

furthermore, this is in relation to the use of rl78 compiler.

kimondoe
  • 567
  • 2
  • 9
  • 27

1 Answers1

1

C Implementations for architectures with non-flat address spaces, usually had those two pointer "classes":

  • near pointers that store the offset within a memory segment
  • far pointers that additionally specify what segment

Many compilers implemented the latter using a non-standard __far specifier. The 16-bit x86 used to be such an architecture.

But Cygwin is only available for 32 bit x86 and x86_64 versions of Windows. And on those there is no concept of near and far pointer anymore.

In order to compile your code, you will need to strip away the __fars and hope that the code itself isn't too tightly coupled to your original architecture.

Community
  • 1
  • 1
a3f
  • 8,517
  • 1
  • 41
  • 46