Re: Pushes, Pops, NOPS

Lex Spoon <>
13 Dec 2003 21:01:58 -0500

          From comp.compilers

Related articles
Pushes, Pops, NOPS (2003-12-03)
Re: Pushes, Pops, NOPS (Barak Zalstein) (2003-12-08)
Re: Pushes, Pops, NOPS (2003-12-08)
Re: Pushes, Pops, NOPS (Nick Roberts) (2003-12-08)
Re: Pushes, Pops, NOPS (Ken Rose) (2003-12-08)
Re: Pushes, Pops, NOPS (2003-12-08)
Re: Pushes, Pops, NOPS (Lex Spoon) (2003-12-13)
| List of all articles for this month |

From: Lex Spoon <>
Newsgroups: comp.compilers
Date: 13 Dec 2003 21:01:58 -0500
Organization: Georgia Institute of Technology
References: 03-12-032
Keywords: code
Posted-Date: 13 Dec 2003 21:01:58 EST (Kalyan) writes:
> Also are there any open source assemblers which would convert the
> above assembly program to binary by eliminating unnecessary NOPS? My
> objective is to eliminate unnecessary "NOPS" wherever they are and
> also unnecessary pushes and pops, for eg., we hav push eax and
> immediately following that a pop eax. I want to eliminate such
> instructions. Could anyone please tell me if there are any freeware
> or shareware assembler or compiler tools that would eliminate these
> unnecessary instructions?

Judging from the other responses, it sounds like you want to aim one
step before raw assembly, and use some kind of low-level intermediate
representation. For example, you might want to hook into gcc's
backend. Then the compiler's optimizer can help you out.


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.