Re: GCC's switch table code generation

2009-10-08 Thread Edd Barrett
On Wed, Oct 07, 2009 at 09:05:48PM -0700, Ian Lance Taylor wrote: > Edd Barrett writes: > > > I would be really interested to know how GCC: > > * Decides whether or not to embed tables in the data segment of the binary. > > * Selects the comparisons in the above tree. > > The relevant code is

Re: GCC's switch table code generation

2009-10-07 Thread Ian Lance Taylor
Edd Barrett writes: > I would be really interested to know how GCC: > * Decides whether or not to embed tables in the data segment of the binary. > * Selects the comparisons in the above tree. The relevant code is expand_case and friends in gcc/stmt.c. Where a jump table should go is decided

GCC's switch table code generation

2009-10-07 Thread Edd Barrett
Hi there, I am new here, so I wish to take a second to introduce myself and what I am working on, then ultimately why I am posting on this list. Also I will apologise if this is the wrong place to post this query. If this is so, perhaps you could point me in the right direction. I have just start