Discussion:
The tale of -mrtd in GCC and Clang
(too old to reply)
John Paul Adrian Glaubitz
2023-05-07 09:10:01 UTC
Permalink
Good Morning!

While working on the RTD issue in the M68k backend in LLVM, Min dug a bit into
the hisstory of the "-mrtd" flag in GCC and Clang and turns out it's actually
much more interesting than we first thought.

See: https://m680x0.github.io/blog/2023/05/the-tale-of-mrtd.html

Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Richard Z
2023-05-10 15:00:01 UTC
Permalink
Hi,

very interesting. Somewhere deep in my memory I have the idea that the mrtd option or rtd instruction was designed for Modula 2 which was modern at that time. It was probably pretty useless for a classical K&R c compiler that didn't even understand prototypes until 1989 or so... I assume GCC -mrtd predated c prototypes.

Richard

Loading...