Re: New backend
Basile Starynkevitch <[email protected]> Wed, 31 Dec 2025 11:29:17 +0100
| Newsgroups | gmane.comp.gcc.help |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 2025-12-31 at 11:02 +0100, BERTRAND Joël via Gcc-help wrote:
> Segher Boessenkool a écrit :
>
> As I obtain errors or segmentation fault, I have tried in a first time
> to port gcc/config/m6809 from gcc 4.3 to 15.2. Of course, build process
> returns a lot of errors. I have fixed a lot of errors but some poisoned
> defineds resist.
>
> RETURN_POPS_ARGS
> FUNCTION_ARG_ADVANCE
> FUNCTION_ARG
> TRAMPOLINE_TEMPLATE
> INITIALIZE_TRAMPOLINE
> LEGITIMATE_CONSTANT_P
> LEGITIMIZE_ADDRESS
> GO_IF_MODE_DEPENDENT_ADDRESS
> FIXUNS_TRUNC_LIKE_FIX_TRUNC
> FLOAT_TYPE_SIZE
> TRULY_NOOP_TRUNCATION
> NOTICE_UPDATE_CC
>
> I can send a tarball (63 KB) but is there somewhere a document to port
> a backend from gcc 4.3 to recent gcc ?
My suggestion would be to make intermediate ports to older versions of GCC, starting from GCC 12.5 or even the unmaintained GCC 10.
If you want to get quickly a non-optimizing C compiler for that target, you could consider porting https://nwcc.sourceforge.net/
or https://github.com/TinyCC
(maybe that was could also increase your compiler writer abilities).
In France you could consider porting compcert.org (it requires some Ocaml skills)
Regards
--
Basile STARYNKEVITCH basile AT starynkevitch DOT net
8 rue de la Faïencerie http://starynkevitch.net/Basile/
92340 Bourg-la-Reine https://github.com/bstarynk
France https://github.com/RefPerSys/RefPerSys
https://orcid.org/0000-0003-0908-5250