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]

Re: Addition of 6811 assembler target


It appears you're working toward building ELF or a.out files for the 6811.
Isn't this a little premature since there's no OS that can read these that
runs on this processor?

Ian

On Wed, 14 Apr 1999, Stephane Carrez wrote:

> Hi!
> 
> vectro@pipeline.com wrote:
> > 
> > I would like to add the ability to compile into m68xx processors' assembly
> > code. The assemblers for these processors exist, but there is no c++ (and
> > no optimizind c) compiler that can create this assembly code.
> > 
> Great!
> 
> I've started to work on this subject
> - I've already ported the binutils (gas, ld, disassembler,...). I've sent
>   this to Cygnus. Until now, this was blocked for legal problems with FSF
>   (solved now, I think).
> - I've written a simulator for 68hc11 and written the gdb machine dependency
>   for 68hc11. I've a simulation for serial, timer and eeprom devices.
>   (this is based on latest gdb framework)
> - I'm working now on egcs and I've a compiler that starts to work well.
>   Integers are 16-bits or 32-bits depending on -mshort option (as for 68K).
>   I've not worked on floating point yet. gcc has everything so...
> 
> I'm also thinking of a port to the 68hc12 (similar to 68hc11+many improvemnts)
> but I need to get a board first...
> 
> > My questions are...
> > 
> > 1) how much work would this entail? Are targets abstracted sufficiently I
> >    would only have to edit a small amount of code?
> > 
> > 2) could you name in particular what files I would need to edit or create?
> > 
> I only had to write 3 files: .h that defines the processor, .c for specific
> operations and most important .md for definition of instructions.
> More info is available in gcc.info-*
> 
> 
> The biggest problem I'm now facing with, is that the 68hc11 has so fiew
> registers (3 available for gcc), that the reload pass of egcs sometimes
> complains about 'Unable to find a register to spill.'.
> 
> > 3) is it necessary to include 6811 assembly into the gcc assembler?
> > 
> 
> I don't think so. But you probably need an assembler, linker, archiver
> and debugger. The binutils and gdb are excellent.
>  
> > Thanks,
> > 
> > Ian Turner
> 
> Stephane
> 
> -----------------------------------------------------------------------
>          Home                               Office
> E-mail: stcarrez@worldnet.fr               Stephane.Carrez@sun.com
> WWW:    http://home.worldnet.fr/stcarrez   http://www.sun.com
> Mail:   17, rue Foucher Lepelletier        6, avenue Gustave Eiffel
>         92130 Issy Les Moulineaux          78182 Saint Quentin en Yvelines
>         France
> 



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