Liste des Groupes | Revenir à cs raspberry-pi |
On 22/08/2024 11:57, Ahem A Rivet's Shot wrote:No I remember the joy of using NEAR and FAR in C for 8086 code. I can remember being forced to use them in zORLAND C/Zortech C++ and Borland C on 8086 code for PCs running DOS and in embedded 80186EB code.On Thu, 22 Aug 2024 11:00:26 +0100I don't recall them ever appearing in C source. They are not part of the C language.
Single Stage to Orbit <alex.buell@munted.eu> wrote:
>FAR and NEAR specifiers used with JMP>
The obscenity was these qualifiers making their way into C source
code - try writing (or even reading) the declaration for a near pointer to a
function returning a far pointer to an array of functions returning near
pointers to integers.
>
Then realise that you *also* wanted this source code to be portable.
>
AIR you could compile for 'small model' or 'large model'
And with the early compilers I used, no attempt was made to think about whether a jump was near or far.
I think you got an assembler or linker error if a target was 'out of range'
Les messages affichés proviennent d'usenet.