New backend
BERTRAND Joël via Gcc-help <[email protected]> Tue, 30 Dec 2025 13:52:09 +0100
| Newsgroups | gmane.comp.gcc.help |
|---|---|
| Message-ID | <[email protected]> |
Hello, I'm trying to add a backend for a synthetizable 6809 (6809 with some improvements. Have a look at https://63f09.systella.fr/cpu-63f09/article/internal-registers). Basically, it's a SoC written in VHDL that contains several CPU cores, a shared FPU (or one FPU by core), memory caches and a lot of stuff. CPU runs at 600 MHz as a regular 6809 (16 bits), 6309 (16 bits with extras registers) or 63F09 (64 bits data / 32 bits addresses), with or without double precision FPU. I have written a asmb (ftp://newton.systella.fr/a09) that runs as expected. Today, this CPU can be programmed with a09 in 8/16 or 32 bits and I would add a backend to gcc. I have downloaded gcc-15.2.0 sources and I have read some documentations to add a m6809 directory in gcc/config. If I have understood, I have to add a m6809 directory for 8/16 bits code and another one (63f09 for example) for 32/64 bits code. In a first time, I only try to add 8/16 bits code in m6809 directory you will find in attachment. gcc was configured with : ../gcc-15.2.0/configure --prefix=/home/bertrand/cvs/gcc/ --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=m6809 --program-prefix=m6809- and build process aborts with : build/genautomata ../../gcc-15.2.0/gcc/common.md ../../gcc-15.2.0/gcc/config/m6809/m6809.md \ insn-conditions.md > tmp-automata.cc genautomata: unit `m6809' is not used genautomata: unit `m6309' is not used make[2]: *** [Makefile:2789: s-automata] Error 1 make[2] : on quitte le répertoire « /home/bertrand/cvs/gcc/build-15.2.0/gcc » make[1]: *** [Makefile:4712: all-gcc] Error 2 make[1] : on quitte le répertoire « /home/bertrand/cvs/gcc/build-15.2.0 » make: *** [Makefile:1058: all] Error 2 hilbert:[~/cvs/gcc/build-15.2.0] > As it's the first time I'm trying to add a backend, I suppose I have done a mistake. Help will be welcome. JB
m6809.tar.gz
(application/gzip, 3.8 KB) - not displayed
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQj8MW8iOsC2RXEznnFW/s/mMLXCAUCaVPK+gAKCRDFW/s/mMLX CLUuAP9yvpcgXZnxFcc7wjH77qImU6UK/6Oye6gpiBlbQUqFuAD+OeahO4+OPlbZ pYUQ2Xl/OSo70XAiAR58WVi5A3vccA4= =jKIF -----END PGP SIGNATURE-----