2006-03-02 20:19:52

by Gerard J Snitselaar

[permalink] [raw]
Subject: Question about inline assembly for BUG()

For the following asm will anything show up in the actual
code besides the ud2 opcode (0x0f0b) ? Is there any good references
for inline assembly besides "Brennan's Guide to Inline Assembly" ?
Thanks

#define BUG() \
__asm__ __volatile__( "ud2\n" \
"\t.word %c0\n" \
"\t.long %c1\n" \
: : "i" (__LINE__), "i" (__FILE__))


2006-03-02 21:50:33

by Jan Engelhardt

[permalink] [raw]
Subject: Re: Question about inline assembly for BUG()

>
>For the following asm will anything show up in the actual
>code besides the ud2 opcode (0x0f0b) ? Is there any good references
>for inline assembly besides "Brennan's Guide to Inline Assembly" ?
>Thanks
>
What else than an asm book and the gcc info 'handbook'
(/usr/share/info/...) do you need?


Jan Engelhardt
--