Re: asm in C slightly OT

From: H. Peter Anvin (hpa@transmeta.com)
Date: Mon Jul 24 2000 - 13:28:08 EST


George Anzinger wrote:
> >
> I can live without the register allocation. Its the need to track
> offsets that is bugging me. The same problem appears in
> ...i386/kernel/entry.S. Several answers to this problem have appeared
> from time to time, but all just try to cover up a rather nasty hole in
> the C/asm combination. What is needed is a construct that will allow
> you to evaluate something like (int)&((struct foo *)0)->bar and stuff
> it into an asm statment.
>

Why the heck do you need to insert code outside any function? That
seems to be the fundamental problem here.

        -hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jul 31 2000 - 21:00:17 EST