Georg-Johann Lay schrieb:
Hi,
in machine description expanders the functions copy_to_mode_reg and and
force_reg from explow.c can be used to ensure that an operand lives in a
register.
But what function should be used?
By the way: Are there better places to ask such questions like in gcc-help?
I just wanted to avoid crossposting to severel lists. But maybe no one
here has the time or the knowledge to answer these questions.
GCC internals just mentions force_reg in some places like mov-expander.
copy_to_mode_reg is not mentioned at all.
It's ok for me to browse gcc sources to find out this or that, but it's
simply impossible to learn everything about gcc's innards by reading
millions of source lines of a software in the steady flow...
It's hard to believe that all the existing gcc backends are written by
copy & past and trial & error, rather than by understand & implement.
Concerning the GCC internals: What place is the best to get the most up
to date version of it? The online version has several inconsistencies,
so it is very hard to understand and remove sophisticated backend
problems and defiecencies.
Thanks very much,
Georg-Johann