This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]