> > Hi all, > > I maintain a port of gcc for an embedded processor which has a HALT > instruction. This instruction stops the processor, and generates an > appropriate interrupt to indicate to its parent system that it has > stopped. The instruction is accessed by the programmer using a > port-specific builtin, which can then be used, amongst other things, to > implement the `assert' macro.
Why doesn't this HALT instruction map directly to the trap builtin? Isn't that a better way of doing it then using a port specific builtin? -- Pinski