This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
>-----Original Message----- >From: Manikandan.V [mailto:manikv@hclt.com] >Sent: 04 April 2001 11:44 >If I want to make only a 'C' compiler for new architecture (I mean porting >GCC to new platform). In that case, If I take all the source code of GCC >(which supports C/C++ etc languages), intern it increase my >source code size of my 'C' compiler for new architecture and makes the >maintenance bit complex. Is not it !!. No, I think you have misunderstood. The parts of the compiler that handle c or c++ are separate from the parts that handle the target architecture. You create a new port that translates RTL into the assembler code of the new platform, then it works automatically with C *and* C++ and Java and all the other languages that Gcc supports. For your new port, you would make a new subdirectory under gcc/config/ <name of target>, add the needed files (<target>.h, <target>.c and <target>.md, and perhaps some makefile fragments). Since all the Gcc languages convert into the same kind of RTL, your new back end then works automatically with all the languages. DaveK -- "screams erupted at a Seattle hotel where Microsoft founder Bill Gates was addressing an education and technology conference. He was whisked away as his audience bolted for the exits. Some audience members were knocked down by others trying to get out." -- CNN 2/28/01 ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |