This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Advice needed on GCC port to new (virtual) architecture


The problem is i am not that used to the GCC internals and could benefit a
lot from hacking on some sample code. Is there a simple guide anywhere on
how to produce a new target other than "using and porting gcc"?



On Tue, 5 Jul 2005, Nathan Sidwell wrote:

> gareth@autopia.garethnelson.com wrote:
> > I am currently working on a VM and would like to port gcc to it in order to simplify the creation of software.
> > The VM simulates a processor with a stack pointer (SP), 16 General Purpose Registers, Accumulator and built-in multitasking.
> > The instruction set is turing complete and implements stack, conditional branching, unconditional branching and console I/O.
> >
> > I would like to generate asm code which can be fed into my own custom assembler and then assembled into flat binary files.
> > Does anyone have advice on a similar platform which i can hack on the gcc source for?
>
> do your port from scratch.  attempting to morph an existing port into what you
> want is likely to break in many random bad ways.
>
> nathan
> --
> Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
> nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]