This is the mail archive of the
mailing list for the GCC project.
Re: Low overhead looping support
- To: Michael Hayes <m dot hayes at elec dot canterbury dot ac dot nz>
- Subject: Re: Low overhead looping support
- From: Jeffrey A Law <law at hurl dot cygnus dot com>
- Date: Mon, 08 Mar 1999 22:03:44 -0700
- cc: dje at watson dot ibm dot com, egcs-patches at cygnus dot com
- Reply-To: law at cygnus dot com
In message <email@example.com>you writ
> While this is a desirable approach in the long term, it would mean
> that users would have to plaster assert statements throughout their C
> In addition, some of these special looping instructions have other
> caveats (such as disabling interrupts), and as such, their use
> requires a (target specific) compiler option anyway.
An option to control whether or not these instructions are used is fine. it
is not unusual at all to have an option to control the use of complicated
It is not OK to have a flag or pragma which indicates that loops never iterate
more than N times, or loop counters are always unsigned, etc etc.