|
|
Richard Heathfield wrote:
> santosh said:
>
> <snip>
>
>> He is saying that since the standard guarantees only 16 bits for int,
>> one should use Turbo C to compile their code, to ensure portability
>> to 16 bit systems.
>
> Turbo C is not the only compiler that supports 16-bit code. So do all
> versions of Microsoft C prior to VC2.0.
Yes, but I doubt that many people still have access to copies of MSVC <
v2.0.
> So does Borland C (certainly
> up to 5.02, anyway).
> So does DJGPP (which is also available without charge, by the way).
No, DJGPP only generates 32 bit code.
> There's nothing sacrosanct about Turbo C.
It is however probably the only easily available 16 bit compiler for DOS
at this time. It used to very popular with IT training centres uptil a
few years back, but you'll struggle to find many, even here. Most have
switched over to gcc and MSVC.
As far as checking code for portability to 16 bit systems, yes it's
somewhat useful there, but that not a very compelling advantage to use
it, IMO.
|
|