Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

History of VC++

Posted on 2001-07-03
3
Medium Priority
?
871 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 300 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

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…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

877 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