Solved

History of VC++

Posted on 2001-07-03
3
865 Views
Last Modified: 2006-11-17
Recently I read in "VC++ tip of day" that VC++ is developed using VC++ (may be they are talking about using earlier version). Then how come the first version of VC++ was developed?

Is visual basic developed using VC++ or vice versa (I feel it is difficult to develop VC++ in VB)
0
Comment
Question by:prashant_n_mhatre
3 Comments
 

Expert Comment

by:mkprasad
ID: 6249909
I feel the VC++ IDE is developed using VC++.
0
 
LVL 32

Accepted Solution

by:
jhance earned 75 total points
ID: 6249934
Certainly the first Microsoft C compiler was NOT developed using itself.  Usually there are two approaches:

1) Other language development.  In the case of the first C from MS, I'm sure it was developed using MASM, Microsoft's MACRO ASSEMBLER.  This, and BASIC (not Visual Basic but interpreted BASIC) were about the only two options early on.  Since it was not possible to use the interpreted BASIC to build standalone COM (before EXE there was only COM, not today's COM though...) program.  So MASM would have been the program of choice.

2) Cross development.  Today, this would be the most common technique.  You take a compiler for a particular machine and modify it to create code for another.  Then you compile that compiler for that other machine using itself.  Very clever, but you have to start with the source code for a working compiler.  The popular GCC program is developed this way.

So I'm sure the first Microsoft C was developed using MASM and after that, they used Microsoft C to develop the next version of Microsoft C and later C++ and finally, VC++.  VC++ is developed using VC++.  They will use the old version to develop the new version until the new version is stable enough to complile itself.  That is also a good test of how stable a compiler is.  If it cannot compile itself, it obviously has a problem....
0
 
LVL 22

Expert Comment

by:nietod
ID: 6249963
C is an unusual language in that C compilers and tools are often written in C, this tradition continued into C++. (There are many public domain libraries and algorithms written in C or C++ for parsing C (or C++), performng pre-pricessing, linking etc etc etc.)  As jhance said, this is either done by uysing an older compiler to write a newer one or by using a working compiler from a different platform that produces code for the new platform, not the platform the compiler runs on.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question