This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: MSP430 in gcc4.9 ... enable interrupts?
- From: Brian Drummond <brian at shapes dot demon dot co dot uk>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 14 Feb 2014 20:53:19 +0000
- Subject: Re: MSP430 in gcc4.9 ... enable interrupts?
- Authentication-results: sourceware.org; auth=none
- References: <1392372773 dot 17088 dot 27 dot camel at Gannet dot Four> <201402141917 dot s1EJHb0H008351 at greed dot delorie dot com>
- Reply-to: brian at shapes dot demon dot co dot uk
On Fri, 2014-02-14 at 14:17 -0500, DJ Delorie wrote:
> The constructs in the *.md files are for the compiler's internal use
> (i.e. there are function attributes that trigger those). You don't
> need compiler support for these opcodes at the user level; the right
> way is to implement those builtins as inline assembler
> static inline __attribute__((always_inline))
> void __nop()
> {
> asm volatile ("NOP");
> }
Thanks for the answer. I thought I was missing something, but apparently
not. Now it's clear that inline assembler is the official way, I can
adapt that approach to my situation.
- Brian