This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: computed gotos and memory requirements.
- To: gcc at gcc dot gnu dot org, lucier at math dot purdue dot edu
- Subject: Re: computed gotos and memory requirements.
- From: Brad Lucier <lucier at math dot purdue dot edu>
- Date: Thu, 28 Oct 1999 16:28:56 -0500 (EST)
- Cc: feeley at iro dot umontreal dot ca
Sorry, I forgot to mention that this was on a Pentium box.
Brad
> From lucier@math.purdue.edu Thu Oct 28 16:14:31 1999
> I'm getting nowhere fast trying to reduce the amount of space that flow
> requires when there are several million edges in the flow graph due to
> several thousand computed gotos and > 1000 labels.
>
> I thought I would try to finesse the issue by replacing the computed
> goto with a volatile asm that the flow analysis would just punt on.
> I tried the simple change:
>
> diff gambit.h lib/
> 2800c2800
> < goto *___host_label;\
> ---
> > asm volatile ("jmp *%0" : : "r" (___host_label)); \
>
> but that doesn't seem to work. Can this work, either in this form or in
> a slightly changed form?
>
> Brad
>