LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-21-2003, 12:15 AM   #1
AMDPwred
Member
 
Registered: Dec 2001
Location: Richmond, VA
Posts: 391

Rep: Reputation: 30
If gcc is a C/C++ compiler, what was it written in?


???
 
Old 06-21-2003, 01:11 AM   #2
rmartine
Member
 
Registered: Dec 2002
Location: San Luis Obispo, CA
Distribution: Fedora Core 3
Posts: 618

Rep: Reputation: 30
I'm going to take a stab at this one and say C and assembly.

If you're really curious you could download the source and read it.

Last edited by rmartine; 06-21-2003 at 01:15 AM.
 
Old 06-21-2003, 06:22 AM   #3
chakkerz
Member
 
Registered: Dec 2002
Location: Brisbane, Australia
Distribution: a few...
Posts: 654

Rep: Reputation: 32
C
 
Old 06-21-2003, 06:59 AM   #4
Nerd2
Member
 
Registered: Apr 2003
Location: Brissle, England
Posts: 97

Rep: Reputation: 19
I suspect that a really simple C compiler was made in assembly, then a more advanced compiler was compiler in that, etc etc, until the gcc we know.
 
Old 06-21-2003, 10:33 AM   #5
zetsui
Member
 
Registered: Jun 2003
Location: Jersey City, NJ
Distribution: Mandrake 9.1 is sooooo easy that patrick starr could use it
Posts: 217

Rep: Reputation: 30
heheheheh i never thought of that nice question
 
Old 06-21-2003, 04:30 PM   #6
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Rep: Reputation: 45
I'm running LFS. One of the thing you have to do during the install is installing gcc, from source. Trust me, it has been written in C and probebly some assambler.
 
Old 06-21-2003, 08:49 PM   #7
geoff_f
Member
 
Registered: May 2003
Location: Canberra, Australia
Distribution: openSUSE 11.3
Posts: 445

Rep: Reputation: 31
This is better than the chicken and egg question. schatoor, exactly how is gcc installed from source in LFS? What command does that?
 
Old 06-21-2003, 09:31 PM   #8
ksoma
Member
 
Registered: Jun 2003
Location: Austin,TX most of the year...in Euless,TX the rest of it
Distribution: RH 9.0
Posts: 154

Rep: Reputation: 30
I would say its written in C and comes along with some kind of assembler...or maybe its a bunch of embedded compilers with an assembler at the end.
 
Old 06-22-2003, 02:38 AM   #9
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Rep: Reputation: 30
Quote:
Originally posted by geoff_f
This is better than the chicken and egg question. schatoor, exactly how is gcc installed from source in LFS? What command does that?
When building LFS, your actually using an existing distro while compiling the base binaries...so when you compile gcc for your LFS, you compile it using gcc from the base distro.
 
Old 06-22-2003, 09:57 AM   #10
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Rep: Reputation: 45
Yes Grim Reaper is right. You have to alraidy have an installed linux system in order to install LFS. You build the gcc for LFS with the gcc alraidy installed on the host system.
A bit off topic, but I managed to install LFS without a linux alraidy on my HD. Just used knoppix straight from cd.
 
Old 06-22-2003, 07:24 PM   #11
rmartine
Member
 
Registered: Dec 2002
Location: San Luis Obispo, CA
Distribution: Fedora Core 3
Posts: 618

Rep: Reputation: 30
Killer idea!!! Use Knoppix!

I always wondering what a CD linux version could be useful for.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GCC Compiler..... mani_iips Linux - Newbie 4 08-08-2005 08:55 PM
djgpp c++ cross compiler cannot read library functions written in C back2morrie Linux - General 0 05-31-2005 02:43 AM
gcc compiler canyon289 Linux - Software 3 10-23-2004 10:22 PM
GCC compiler .. pashupathinath Programming 1 10-21-2004 12:20 PM
GCC Compiler HELP Otaking Linux - Newbie 5 04-08-2004 06:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration