Solved

History of VC++

Posted on 2001-07-03
3
864 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

939 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

Need Help in Real-Time?

Connect with top rated Experts

3 Experts available now in Live!

Get 1:1 Help Now