|
SL Newsletter
|
| Recieve bi-weekly updates on news, new articles, and more |
|
|
|
|

03-19-01, 08:23 PM
|
|
|
Does anyone out there know what language programming languages are written in?
For example, what language was C++ written in? And so on and so fourth. HELP! Nobody knows the answer to this question!!
>Ryan
|

03-19-01, 10:53 PM
|
 |
Developer
|
|
Join Date: Dec 2000
Location: Port Angeles, WA
Posts: 230
|
|
That's a secret! (I'd tell you.. however, I really would have to kill you.. :)
Ryan
|

03-20-01, 03:43 AM
|
|
|
Serious Questions Only
I would appreciate only serious answers to this question be posted.
If you have a stupid comment like the one above keep it to yourself.
Thanks!
|

03-20-01, 04:16 AM
|
|
Registered User
|
|
Join Date: Mar 2001
Location: Australia
Posts: 13
|
|
what language is c++ written in? i'll explain
C++ is what is called a High-level language, so programs can be written in it, and be understood by people
after you write a program, a compiler converts the program into a language called machine code. you don't have yo worry how it works, just that it does.
If you want to program, you just have to know a high-level language
Now, I have to kill you
__________________
"I never let schooling get in the
way of my education"
-Mark Twain
|

03-20-01, 08:01 AM
|
 |
Developer
|
|
Join Date: Dec 2000
Location: Port Angeles, WA
Posts: 230
|
|
 .. hehe..
Ryan.. (the one that started the thread.. ).. it might be to your benefit to lighten up JUST a touch.. I was going to tell you within a post or two, but I didn't realize that it was such a life & death situation..
Ryan
|

03-20-01, 12:32 PM
|
 |
Dancing Hero
|
|
Join Date: Feb 2001
Location: Over there
Posts: 1,163
|
|
I know the answer...
I had a friend in Operating Systems and Compiler Construction last year.
Now, I think this is really a few separate questions, so I'll answer as necessary.
1. What language are programming languages written in?
#Programming languages are written with whatever syntax and tokens the creator originally intended. A programming language is just a grammar for input. Now, you may be asking how C++ is different from Pascal, and why Java programs run slower than C++ or something like that...
2. What makes one programming language different from another?
#The secret is actually in the compiler. The compiler is a program that knows how to convert instructions written using a particular grammar into machine code. It then outputs the machine code into a file. The machine code is what actually gets executed by a kernel.
Programs are subject to interpretation and different compiling methods, so one language doesn't necessarily do things better than another one (Except maybe in readability or simplicity), but on a whole they may provide for a faster executable due to algorithm handling or any number of different things. If you were a real coding guru (and a masochist), you could write a compiler and the appropriate development tools to make blazing-fast COBOL software. The problem is that COBOL wasn't really designed for that, and as a result, nobody else's compilers will compile your programs, and your compiler may not do theirs as well anymore.
3. What language is a compiler written in?
#Well, again, it doesn't really matter. The compiler could be written in C++ (A likely idea) or a number of different languages. You wouldn't really know, though, because you're just executing the machine code when you run the compiler. And certain languages and their compilers may have their strengths, so you might be able to make an educated guess, but in the end, it doesn't really matter.
And for the record, you do write compiling tools using compiling tools. The first one had to be written in assembly, of course. Boy, is that ever a pain... :-P
__________________
"And knowing is half the battle!"
|

03-20-01, 12:35 PM
|
 |
Dancing Hero
|
|
Join Date: Feb 2001
Location: Over there
Posts: 1,163
|
|
Oh...
If you REALLY wanted to be technical about it, C++ was written in C. 
__________________
"And knowing is half the battle!"
|

03-20-01, 06:57 PM
|
|
|
C++ was actually the "Brain-Child" of Owen L. Astrachan, after getting pretty much fed up with alot of the manual aspect of C. Yes, it was based off of C, and yes, many of the same declarations are exactly the same. However, programming languages are written mostly from the ground up, in an Assembler language. That is pretty much the most "hard-core" programmer you can get to be.
I only know one person who currently writes in Assember, and what he is working on is actually building his own compiler, which will be the most versitile compiler. (He is basically fed up with C++ functions) What the basic theory behind what he is working on is that you use a language properties, your code, witten within these properties, and his own memory management system(completely written in Assember).
I do have to say that this guy is not an average student...he gets horrible grades, however is a genious in any sense that he taught himself assember, C, C++, Java, etc. He has practically based the next few years on completeling this himself... Did I mention he hates PCs, and is in love with his Powerbook? -- However is coding completely cross paltform/cross proccessor.
In any event, if your crazy enought, head over to the website for the project...alot of the completed source code is on the site: http://www.uppermute.com.
Quote:
after you write a program, a compiler converts the program into a language called machine code. you don't have yo worry how it works, just that it does.
If you want to program, you just have to know a high-level language
|
Well, I guess if you want to understand memory swapping, YOU DO need to know the lower levels of machine code that is nearly impossible to read.
Just a quite side note: Machine code is something like 10:1....Every 10 or so lines of machine code, you could use 1 line in a higer level language (C++, C, etc).
Well, I guess that I have alot to say about lower/higher level programming. And that if you EVER decide to start learning Assember, make sure you have ALOT of time...it is complicated.
Lemme know if you have anything else under consideration.
-Massy
|

03-20-01, 06:59 PM
|
|
|
Sorry, made a mistake...the website is:
http://www.uppermute.org
Hey, what happend? Why did I get logged off from being registered on my previous post?
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -8. The time now is 10:48 PM.
Hardware
Reviews, Articles, News, All Reviews...
|
Gaming
Reviews, Articles, News...
|
 |
|
|
Regular Sections
A Guru's World, CPU/Memory Watch, SLDeals...
|
 |
SLBoards
Forums, Register(Free), Todays Discussions...
|
Site Info
Search, About Us, Advertise...
|
 |
|