This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Target FUNCTION_{PRO,EPI}LOGUE question
- To: Joern Rennecke <amylaar at redhat dot com>
- Subject: Re: Target FUNCTION_{PRO,EPI}LOGUE question
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Thu, 28 Jun 2001 19:26:11 +0100
- Cc: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>,Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>, gcc at gcc dot gnu dot org
Neil Booth wrote:-
> [1] My idea would be that we abstract it through something similar to
> a tree, say a tree_int, that is little more than a vtable that amongst
^^^^^^
pointer to a vtable
> other things provides an array of function pointers to do operations
> like add, multiply etc, and contains a suitable target integer
> representation for the host. Then at build time we could set up the
> vtable to the fast, trivial implementations if the host int sizes are
> the same as the target, and other, either multiple-precision or
> losing-precision, implementations if not. This would probably be
> faster, and certainly much easier to read, than the way we handle this
> stuff at present.