Re: custom CPU porting : guidance please

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
     Million thanks for your guidance.  I hope I'm
slowly understanding the big picture.  I got a few
other doubts, guidance will be very helpful.

  (1)  I suppose that 'gas' is much more machine
dependent than gcc.  Please guide me regarding where
can I find documents regarding how to port 'gas' to a
new CPU.

  (2)  Since rest of the utilities in binutils have
more to do with binary format than with architecture,
porting these(ld,nm,ar....) to a new CPU is going to
be farily simple.  Am I right?

  (3)  I like to port GDB also.  Please give me
pointers where I can find the corresponding
documentation.

  (4)  As a first step, I want to develop a gdb
simulator for the new CPU I have in mind.  Where can I
find the documentation describing how to write a
simulator.

  (5)  In porting GCC tool-chain to a new CPU
architecture, or in otherwords developing cross
tool-chain for a new CPU architecture, I assume that
following is the most appropriate sequence:
     (a)  Develop a simulator so that executables for
the new CPU can be run using GDB
     (b)  Port as so that programs can be written in
the assembly language of the CPU and assembled.
     (c)  Port gcc so that c programs can be written
to run on the target CPU
  Is this sequence correct?

Thanks in advance
Srinivasan
 --- Sriharsha <sriharsha.v@xxxxxxxxxxxxxxxxxx> wrote:

> 
> sashti srinivasan wrote:
> 
> >Hello,
> >   I like to port complete gcc tool-chain including
> >gas,gasp,ld,binutils... to a custom CPU.  May I
> >request the mailing list the following:
> >
> >  (1)  I intend doing it as a single man during
> >leisure time.  Please suggest me in approximately
> how
> >much time (in terms of hours) can I expect this
> port
> >to complete.
> >  
> >
> Difficult to suggest how long it would take. It
> depends on a lot of 
> things like your knowledge and experience with
> compilers, C language and 
> computer architecture, the architecture of the
> Processor and the 
> complexity involved. If it is similar to the
> standard processors, then, 
> the port is a fairly simple one.
> 
> >  (2)  Where can I find the documentation and other
> >resources regarding how to do the port.
> >  
> >
> An excellant link is:
>
http://www.le-hacker.org/hacks/projects/microprocessor/compiler.html
> And ofcourse, you always have the colossal
> documentation from gnu site.
> http://gcc.gnu.org/onlinedocs/gcc-2.95.3/gcc.html or
> something similar
> Finally, last but not the least..... try this:
> http://gcc.gnu.org/readings.html where you find
> links to lots of stuff::::
> Of special interest among them is:
> Porting GCC for Dunces by Hans-Peter Nilsson.
> 
> >  (3)  The goal is to port the tool-chain and build
> >operating systems like RTEMS, Linux etc. for this
> CPU.
> >  
> >
> A good idea.
> 
> > I will be very thankful to receive some broad
> >suggestions.
> >  
> >
> You are always welcome.
> 
> 
> Sriharsha
> 
> -- 
>  *****************************
>  * Sriharsha Vedurmudi			
>  * Software Engineer		
>  * 
>  * Redpine Signals Inc.	
>  * Gate #395, Plot 87,88			
>  * Sagar Society, Road #2, 
>  * Banjara Hills,		
>  * Hyderabad - 500 034			
>  * www.redpinesignals.com	
>  *							
>  * +91-40-23559911  (Office)
>  * +91-98851-37338  (Mobile)
>  *****************************
> 
> 
>  

________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux