> Load rt, s2(s18)
> Store s2(s18), rc
> 
> However after searching and reading a lot of documentation, I still cannot
> figure out all the files that need to be editted in order for gcc to output
> an instruction and understand how that instruction works. Currently I have
> it detecting the 'store' is an incorrect mnemoic (because I got define_inst
> outputting it). I would like to know if there are any recommended tutorials
> on how to add a instruction to the assembly language, and if there is an
> easier backend port that I should experiment on until I learn how to deal
> with all the components of RTL.

The machine description is responsible for generating the assembly text
(you'll see plenty of obvious examples of this).  Once the compiler is
emitting the right assembly source (compile with -S and inspect), then
you need to move onto the binutils to make the assembler recognise these
mnemonics.

What are you trying to do, exactly? :-)

Cheers, Ben

Reply via email to