Re: about far & near keywords in c
- From: Jack Klein <jackklein@xxxxxxxxxxx>
- Date: Fri, 23 Feb 2007 22:40:31 -0600
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
.
- Follow-Ups:
- Re: [OT] about far & near keywords in c
- From: CBFalconer
- Re: [OT] about far & near keywords in c
- References:
- about far & near keywords in c
- From: mkausalya
- Re: about far & near keywords in c
- From: santosh
- Re: about far & near keywords in c
- From: Roberto Waltman
- Re: about far & near keywords in c
- From: CBFalconer
- about far & near keywords in c
- Prev by Date: Re: #include behavior
- Next by Date: Re: print 1 to n without any conditional statement, loop or jump.
- Previous by thread: Re: about far & near keywords in c
- Next by thread: Re: [OT] about far & near keywords in c
- Index(es):
Relevant Pages
|