|Pushes, Pops, NOPS firstname.lastname@example.org (2003-12-03)|
|Re: Pushes, Pops, NOPS Barak.Zalstein@ParthusCeva.com (Barak Zalstein) (2003-12-08)|
|Re: Pushes, Pops, NOPS email@example.com (2003-12-08)|
|Re: Pushes, Pops, NOPS firstname.lastname@example.org (Nick Roberts) (2003-12-08)|
|Re: Pushes, Pops, NOPS email@example.com (Ken Rose) (2003-12-08)|
|Re: Pushes, Pops, NOPS firstname.lastname@example.org (2003-12-08)|
|Re: Pushes, Pops, NOPS email@example.com (Lex Spoon) (2003-12-13)|
|From:||Ken Rose <firstname.lastname@example.org>|
|Date:||8 Dec 2003 00:25:34 -0500|
|Organization:||Posted via Supernews, http://www.supernews.com|
|Posted-Date:||08 Dec 2003 00:25:34 EST|
> If I added some "NOPS" in between each of the instructions above just
> to make the code look bigger, is there any option while compiling with
> GCC which would eliminate all those unnecessary "NOPS" and then
> convert the remaining code to binary?
No. GCC doesn't understand what's inside an asm, beyond the minimum
necessary to substitute operands.
BTW, you should tell it that you've clobbered all those registers. Do
asm("whatever" : : "esi" "eax" "ebx" "ecx" "edx");
so it doesn't fantasize that it knows what's there. (or is the
destination first in x86 GAS? That would remove several of those.)
I may have slightly mangled the syntax, check the manual.
Return to the
Search the comp.compilers archives again.