Download the Tom's Hardware App from the App Store
The reference for current tech news
Yes No
Ads
Tom's Hardware > Forum > Applications > Programming > How are languages created

How are languages created

Forum Applications : Programming How are languages created

Word :    Username :           
 

Two questions I've never received a good answer on.

First, when a new chip is designed, be it CPU, GPU, or whatever, how is it first coded? How did Intel know how to code the 4004, the 8008, etc.? One can't just throw a bunch of silicon & copper on a chunk of plastic and expect it to do anything.

Second, how are programming languages created? I can understand C# coming out of C++ out of C+ out of C. But how did the originator of Unix know what to write to get it to work on pretty much any cpu? Same for PERL, Ada, Fortran, Ruby on Rails, etc. Or going way back, how did Admiral Hopper know how to program her ballistics computers?

It all sounds like it goes back to the old question, "Which came first? The chicken or the egg?"

Reply to kep55
Register or log in to remove.

Well, the designers - of the chip or the programming language - decide what they want it to do, and then they design the chip, or write the language, accordingly. It's as simple as that (although just a little more difficult in practice).

No chickens or eggs were hurt in the making of this post.

Reply to Ijack

So.. Nvida wanted to melt the ice cap when they designed FEMI, Stallman wanted to investigate what was held in other sections of memory with C and Larry Wall wanted 'Fscking computers' to be a regular expression when he conceived Perl?? ;)

------------------------------ I've been an 8bit baby, a 16bit teenager, a 32bit student and now find myself as 64bit middle aged fart. Moores the pity.
Reply to audiovoodoo

I didn't say they always get the design, or the implementation, right.

Reply to Ijack

But, how do they know the language will work that chip design? It seems like you've cut a key for a lock that doesn't exist.

Reply to kep55

I really don't understand what you're asking. There is no preset chip design for the language to work with. The instruction set is designed, then the chip is built to implement that instruction set. As with locks and keys, you design them together, not in isolation from each other.

Reply to Ijack

kep55 wrote :

But, how do they know the language will work that chip design? It seems like you've cut a key for a lock that doesn't exist.

A programming language is (mostly) platform independant; that means you do not create a language for a specific chip. It's the compiler's job to translate higher level programming language into the chip's specific set of instructions.

Reply to Zenthar

Go to the security now page on the twit.tv podcast network. Listen to episode 223, "Lets Design a Computer". This is the first in a series of upcoming podcasts in which Steve Gibson should answer your question.

Reply to elel
Register or log in to remove.
Tom's Hardware > Forum > Applications > Programming > How are languages created
Go to:

There are 1827 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
  • Ask the community now
  • Publish
Ad
Ads
Latest best answer
Blu-Ray playback software recommendations?
By Rusting In Peace, 1 day ago:

My advice to you would to be avoid getting blu ray on PC it's totally annoying because of...

Best offers
They won a badge
Join us in greeting them
Top experts