This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: MS/CW-style inline assembly for GCC
- From: <tm_gccmail at kloo dot net>
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: Stan Shebs <shebs at apple dot com>,Mark Mitchell <mark at codesourcery dot com>, Mike Stump <mrs at apple dot com>,gcc at gcc dot gnu dot org
- Date: Mon, 10 May 2004 17:26:24 -0700 (PDT)
- Subject: Re: MS/CW-style inline assembly for GCC
On Fri, 7 May 2004, Daniel Jacobowitz wrote:
> [By the way, I'm surprised to hear that CodeWarrior will schedule
> outside code interleaved with an asm block. That seems like a really
> bad idea!]
It is a really bad idea.
If you're doing driver-level work, then you need barriers to ensure writes
occur in the correct order and are flushed out properly. If you schedule
other code in between, this may not work properly.
Toshi