This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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: cgen?


Hi Miles,

I'm going to write GNU toolchain support (binutils/gas/gcc) for a new
micro-controller processor arch, and I'd like to know if it's
recommended these days to use "cgen" or not for the binutils/gas bits,
as opposed to just rolling everything by hand.

It's about 50/50 either way. There are ports that are using it, and there are new ports which are being developed using it and which will be contributed one day. The cgen sources are still being maintained and in general if you like the cgen approach then you can develop a function binutils port quite quickly.


That having been said there are also new ports being contributed which do not use it and which roll everything by hand. The choice is up to you. If you are comfortable using cgen then I would suggest that that is the way to go.

[The processor is vaguely comparable with a z80.]

In which case you may find it easier to start with the z8k port and copy then modify it for your own processor.


Cheers
  Nick


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