This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Scheduling of asm()
- From: mike stump <mrs at windriver dot com>
- To: falk dot hueffner at student dot uni-tuebingen dot de, gcc at gcc dot gnu dot org
- Date: Sat, 5 Jan 2002 15:50:20 -0800 (PST)
- Subject: Re: Scheduling of asm()
> To: gcc@gcc.gnu.org
> From: Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
> Date: 04 Jan 2002 23:38:50 +0100
> When I experimented with some Alpha instructions, I found out there
> seems to be no way to communicate the scheduling class of an asm()
> instruction to gcc, leading to somewhat suboptimal code. Would it be
> reasonably easy to add such a facility?
If the semantics of the instruction can be written in C, then improve
the compiler to notice that it can use the instruction to implement
the required semantics of plain user code. If the semantics are
beyond the reach of normal C, then code it as a built-in and expose it
that way.
Both obviate the need for asm("..."), which is a feature.