Re: about far & near keywords in c



On Thu, 22 Feb 2007 20:48:17 -0500, CBFalconer <cbfalconer@xxxxxxxxx>
wrote in comp.lang.c:

Roberto Waltman wrote:

... snip ...

[OT] The FAR/NEAR keywords were actually introduced by Microsoft,
not Borland, and they quickly spread to every C compiler for the
8086/Intel/DOS world.

Not so. As usual, Microsoft does not innovate. Those keywords
appeared with the assembly language for the 8088/8086, back around
1976. The amazing thing is that Microsoft actually used a
pre-existing standard. This may be tied in with the fact that they
bought their C compiler from somebody else (I forget who).

Sigh...

<off-topic trip down memory lane>

Microsoft's C compiler version prior to Version 3 were Lattice C
repackaged. Microsoft C 3.0 and later were their own in-house
compilers.

Neither Lattice nor Microsoft's pre version 3 compilers supported the
"near" or "far" extension keywords. Nor did they support the "tiny"
or "huge" memory models.

In fact, they did not support mixing pointer types or memory models.
Lattice came with four libraries, for the four possible combinations
of 16/32 bit code/data addressing. It was up to the user to link the
one matched the options passed to the compiler.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~ajo/docs/FAQ-acllc.html
.



Relevant Pages

  • Re: VBA : shrinking a multidimensional array to nothing and restarting again...
    ... >> Gerry Quinn wrote: ... > have been documented (or how would Nash have known of it?). ... We're talking about what Microsoft does, ... >>> certain function not operating as he expected in one compiler. ...
    (comp.programming)
  • Re: To Richard Heathfield: enoughs enough
    ... Abandoning Hungarian notation because it is ... So write you're own compiler for a new language, ... >> I don't own any such books. ... Not even Microsoft claims that anymore. ...
    (comp.programming)
  • Re: [announcement] SYSAPI and SYSSVC for Windows
    ... are 3D GUI objects a Microsoft invention? ... copies to circumvent payment is a nice thing to do, but I think "secure" ... :> "trusted" applications like media player, real player, and its ilk or not ... I don't think small compiler companies will always use dongles. ...
    (comp.lang.ada)
  • Re: Visual C++ 6 support issue
    ... Of course, Eclipse has the ... Apparently there is a discussion group going on in Microsoft which is discussing the tool ... >the same parsing job that the first couple of passes of the compiler ... And the compiler and the IDE are completely orthogonal. ...
    (microsoft.public.vc.mfc)
  • linker mistakes entry point in dll
    ... Microsoft Program Maintenance Utility Version 6.00.8168.0 ... IntelFortran Compiler for 32-bit applications, ... Copyright 1985-2004 Intel Corporation. ...
    (comp.lang.fortran)